blob: b3b921f329d169e46a57c5f57e0b397128c84478 [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 := \
29 libcamera_client \
30 libcamera_metadata \
31 libcutils \
32 liblog \
33 libsync \
34 libutils \
35
36LOCAL_STATIC_LIBRARIES :=
37
38LOCAL_C_INCLUDES += \
39 $(call include-path-for, camera)
40
41LOCAL_SRC_FILES := \
42 Camera.cpp \
43 Stream.cpp \
44 V4L2Camera.cpp \
45 V4L2CameraHAL.cpp \
46
47LOCAL_CFLAGS += -Wall -Wextra -fvisibility=hidden
48
49include $(BUILD_SHARED_LIBRARY)