Commit | Line | Data |
---|---|---|
cd9434cc T |
1 | # Copyright (C) 2015 The Android Open Source Project |
2 | # | |
3 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
4 | # you may not use this file except in compliance with the License. | |
5 | # You may obtain a copy of the License at | |
6 | # | |
7 | # http://www.apache.org/licenses/LICENSE-2.0 | |
8 | # | |
9 | # Unless required by applicable law or agreed to in writing, software | |
10 | # distributed under the License is distributed on an "AS IS" BASIS, | |
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | # See the License for the specific language governing permissions and | |
13 | # limitations under the License. | |
14 | ||
15 | LOCAL_PATH:= $(call my-dir) | |
16 | ||
17 | ################# | |
18 | # camera.exynos7570.so | |
19 | ||
20 | include $(CLEAR_VARS) | |
21 | ||
22 | ######## System LSI ONLY ######## | |
23 | BOARD_CAMERA_GED_FEATURE := true | |
24 | ################################# | |
25 | ||
26 | # HAL module implemenation stored in | |
27 | # hw/<COPYPIX_HARDWARE_MODULE_ID>.<ro.product.board>.so | |
28 | LOCAL_MODULE_RELATIVE_PATH := hw | |
29 | ||
30 | ifeq ($(BOARD_CAMERA_GED_FEATURE), true) | |
31 | LOCAL_C_INCLUDES += \ | |
32 | $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \ | |
33 | $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libcamera \ | |
34 | $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libcamera/Vendor \ | |
35 | $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libcamera3 \ | |
36 | $(TOP)/system/media/camera/include \ | |
37 | $(TOP)/system/core/libion/include \ | |
38 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/34xx \ | |
39 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/34xx/hal1 \ | |
40 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/34xx/hal3 \ | |
41 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2 \ | |
42 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/SensorInfos \ | |
43 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/Pipes2 \ | |
44 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/MCPipes \ | |
45 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/Activities \ | |
46 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/Buffers \ | |
47 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/Sec \ | |
48 | $(TOP)/hardware/samsung_slsi/exynos/include \ | |
49 | $(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \ | |
50 | frameworks/native/include \ | |
51 | $(TOP)/external/libcxx/include \ | |
52 | $(TOP)/bionic | |
53 | else | |
54 | LOCAL_C_INCLUDES += \ | |
55 | $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \ | |
56 | $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libcameraSec \ | |
57 | $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libcameraSec/Vendor \ | |
58 | $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libcamera3Sec \ | |
59 | $(TOP)/system/media/camera/include \ | |
60 | $(TOP)/system/core/libion/include \ | |
61 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/34xx \ | |
62 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/34xx/hal1 \ | |
63 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/34xx/hal3 \ | |
64 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2 \ | |
65 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/SensorInfos \ | |
66 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/Pipes2 \ | |
67 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/MCPipes \ | |
68 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/Activities \ | |
69 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/Buffers \ | |
70 | $(TOP)/hardware/samsung_slsi/exynos/libcamera/common_v2/Sec \ | |
71 | $(TOP)/hardware/samsung_slsi/exynos/include \ | |
72 | $(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \ | |
73 | frameworks/native/include \ | |
74 | $(TOP)/external/libcxx/include \ | |
75 | $(TOP)/bionic \ | |
76 | $(TOP)/hardware/camera/SensorListener \ | |
77 | $(TOP)/hardware/camera/UniPlugin/include | |
78 | endif | |
79 | ||
80 | ifneq ($(LOCAL_PROJECT_DIR),) | |
81 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libcameraSec/$(LOCAL_PROJECT_DIR) | |
82 | else | |
83 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libcamera/SensorInfos | |
84 | endif | |
85 | ||
86 | ifeq ($(BOARD_CAMERA_HAL3_FEATURE), true) | |
87 | LOCAL_SRC_FILES:= \ | |
88 | ../../exynos/libcamera/common_v2/ExynosCamera3Interface.cpp | |
89 | else | |
90 | LOCAL_SRC_FILES:= \ | |
91 | ../../exynos/libcamera/common_v2/ExynosCameraInterface.cpp | |
92 | endif | |
93 | ||
94 | LOCAL_CFLAGS += -DBACK_ROTATION=$(BOARD_BACK_CAMERA_ROTATION) | |
95 | LOCAL_CFLAGS += -DFRONT_ROTATION=$(BOARD_FRONT_CAMERA_ROTATION) | |
96 | ||
97 | ifeq ($(BOARD_CAMERA_GED_FEATURE), true) | |
98 | LOCAL_CFLAGS += -DCAMERA_GED_FEATURE | |
99 | endif | |
100 | ifeq ($(BOARD_CAMERA_HAL3_FEATURE), true) | |
101 | LOCAL_CFLAGS += -DUSE_CAMERA2_API_SUPPORT | |
102 | endif | |
103 | ||
104 | LOCAL_SHARED_LIBRARIES:= libutils libcutils libbinder liblog libcamera_client libhardware | |
105 | LOCAL_SHARED_LIBRARIES += libexynosutils libhwjpeg libexynosv4l2 libcsc libion libcamera_metadata libexynoscamera | |
106 | ||
107 | ifeq ($(BOARD_CAMERA_HAL3_FEATURE), true) | |
108 | LOCAL_SHARED_LIBRARIES += libexynoscamera3 | |
109 | endif | |
110 | ||
111 | $(foreach file,$(LOCAL_SRC_FILES),$(shell touch '$(LOCAL_PATH)/$(file)')) | |
112 | ||
113 | ifeq ($(BOARD_CAMERA_GED_FEATURE), true) | |
114 | LOCAL_MODULE := camera.$(TARGET_BOOTLOADER_BOARD_NAME) | |
115 | else | |
116 | LOCAL_MODULE := camera.$(TARGET_BOOTLOADER_BOARD_NAME) | |
117 | # Temporary modified | |
118 | #LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM) | |
119 | endif | |
120 | LOCAL_MODULE_TAGS := optional | |
121 | ||
122 | LOCAL_CFLAGS += -D$(shell echo $(project_camera) | tr a-z A-Z)_CAMERA | |
123 | ||
124 | include $(TOP)/hardware/samsung_slsi/exynos/BoardConfigCFlags.mk | |
125 | include $(BUILD_SHARED_LIBRARY) | |
126 | ||
127 | $(warning #####################################) | |
128 | $(warning ######## libcamera I/F ########) | |
129 | $(warning #####################################) |