Ricardo Cerqueira | bf4502e | 2014-05-20 10:09:52 +0100 | [diff] [blame] | 1 | ifneq ($(TARGET_PROVIDES_CAMERA_HAL),true) |
| 2 | |
codeworkx | 62f02ba | 2012-05-20 12:00:36 +0200 | [diff] [blame] | 3 | LOCAL_PATH:= $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | # HAL module implemenation stored in |
| 7 | # hw/<COPYPIX_HARDWARE_MODULE_ID>.<ro.product.board>.so |
| 8 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 9 | |
Howard Su | a420230 | 2014-11-12 06:09:59 +0000 | [diff] [blame^] | 10 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include \ |
| 11 | system/media/camera/include |
codeworkx | 62f02ba | 2012-05-20 12:00:36 +0200 | [diff] [blame] | 12 | |
| 13 | LOCAL_SRC_FILES:= \ |
| 14 | SecCamera.cpp SecCameraHWInterface.cpp |
| 15 | |
| 16 | LOCAL_SHARED_LIBRARIES:= libutils libcutils libbinder liblog libcamera_client libhardware |
| 17 | |
| 18 | ifeq ($(TARGET_SOC), exynos4210) |
| 19 | LOCAL_SHARED_LIBRARIES += libs5pjpeg |
| 20 | LOCAL_CFLAGS += -DSAMSUNG_EXYNOS4210 |
| 21 | endif |
| 22 | |
| 23 | ifeq ($(TARGET_SOC), exynos4x12) |
| 24 | LOCAL_SHARED_LIBRARIES += libhwjpeg |
| 25 | LOCAL_CFLAGS += -DSAMSUNG_EXYNOS4x12 |
| 26 | endif |
| 27 | |
| 28 | ifeq ($(BOARD_USE_V4L2), true) |
| 29 | LOCAL_CFLAGS += -DBOARD_USE_V4L2 |
| 30 | endif |
| 31 | |
| 32 | ifeq ($(BOARD_USE_V4L2_ION), true) |
| 33 | LOCAL_CFLAGS += -DBOARD_USE_V4L2 |
| 34 | LOCAL_CFLAGS += -DBOARD_USE_V4L2_ION |
| 35 | endif |
| 36 | |
| 37 | LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM) |
| 38 | |
| 39 | LOCAL_MODULE_TAGS := optional |
| 40 | |
| 41 | include $(BUILD_SHARED_LIBRARY) |
Ricardo Cerqueira | bf4502e | 2014-05-20 10:09:52 +0100 | [diff] [blame] | 42 | |
| 43 | endif |