blob: 074f9c2fcb5e67ea6dfea2c4ec256a97516e69c1 [file] [log] [blame]
Ari Hausman-Cohen73442152016-06-08 15:50:49 -07001#
2# Copyright 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18include $(CLEAR_VARS)
19
20LOCAL_MODULE := camera.v4l2
21LOCAL_MODULE_RELATIVE_PATH := hw
22
23LOCAL_CFLAGS += -fno-short-enums
24
25# Note: see V4L2 HALv1 implementation when adding YUV support,
26# some various unexpected variables had to be set.
27
28LOCAL_SHARED_LIBRARIES := \
Ari Hausman-Cohen345bd3a2016-06-13 15:33:53 -070029 libbase \
Ari Hausman-Cohen73442152016-06-08 15:50:49 -070030 libcamera_client \
31 libcamera_metadata \
32 libcutils \
33 liblog \
Ari Hausman-Cohen345bd3a2016-06-13 15:33:53 -070034 libnativehelper \
Ari Hausman-Cohen73442152016-06-08 15:50:49 -070035 libsync \
36 libutils \
37
38LOCAL_STATIC_LIBRARIES :=
39
40LOCAL_C_INCLUDES += \
41 $(call include-path-for, camera)
42
43LOCAL_SRC_FILES := \
44 Camera.cpp \
45 Stream.cpp \
46 V4L2Camera.cpp \
47 V4L2CameraHAL.cpp \
48
49LOCAL_CFLAGS += -Wall -Wextra -fvisibility=hidden
50
51include $(BUILD_SHARED_LIBRARY)