Ari Hausman-Cohen | 7344215 | 2016-06-08 15:50:49 -0700 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | include $(CLEAR_VARS) |
| 19 | |
| 20 | LOCAL_MODULE := camera.v4l2 |
| 21 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 22 | |
| 23 | LOCAL_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 | |
| 28 | LOCAL_SHARED_LIBRARIES := \ |
Ari Hausman-Cohen | 345bd3a | 2016-06-13 15:33:53 -0700 | [diff] [blame] | 29 | libbase \ |
Ari Hausman-Cohen | 7344215 | 2016-06-08 15:50:49 -0700 | [diff] [blame] | 30 | libcamera_client \ |
| 31 | libcamera_metadata \ |
| 32 | libcutils \ |
| 33 | liblog \ |
Ari Hausman-Cohen | 345bd3a | 2016-06-13 15:33:53 -0700 | [diff] [blame] | 34 | libnativehelper \ |
Ari Hausman-Cohen | 7344215 | 2016-06-08 15:50:49 -0700 | [diff] [blame] | 35 | libsync \ |
| 36 | libutils \ |
| 37 | |
| 38 | LOCAL_STATIC_LIBRARIES := |
| 39 | |
| 40 | LOCAL_C_INCLUDES += \ |
| 41 | $(call include-path-for, camera) |
| 42 | |
| 43 | LOCAL_SRC_FILES := \ |
| 44 | Camera.cpp \ |
| 45 | Stream.cpp \ |
| 46 | V4L2Camera.cpp \ |
| 47 | V4L2CameraHAL.cpp \ |
Ari Hausman-Cohen | 7344215 | 2016-06-08 15:50:49 -0700 | [diff] [blame] | 48 | |
| 49 | LOCAL_CFLAGS += -Wall -Wextra -fvisibility=hidden |
| 50 | |
| 51 | include $(BUILD_SHARED_LIBRARY) |