blob: d40e73fbc23d2a9d4b7336c75999836a955f51f3
1 | ifneq ( true, true) |
2 | ifneq ($(strip $(USE_CAMERA_STUB)),true) |
3 | |
4 | LOCAL_PATH:= $(call my-dir) |
5 | |
6 | CAMERA_HAL_SRC := \ |
7 | CameraHal_Module.cpp \ |
8 | CameraHal.cpp \ |
9 | CameraHalUtilClasses.cpp \ |
10 | AppCallbackNotifier.cpp \ |
11 | ANativeWindowDisplayAdapter.cpp \ |
12 | CameraProperties.cpp \ |
13 | MemoryManager.cpp \ |
14 | Encoder_libjpeg.cpp \ |
15 | SensorListener.cpp \ |
16 | NV12_resize.c |
17 | |
18 | CAMERA_COMMON_SRC:= \ |
19 | CameraParameters.cpp \ |
20 | ExCameraParameters.cpp \ |
21 | CameraHalCommon.cpp |
22 | |
23 | CAMERA_V4L_SRC:= \ |
24 | BaseCameraAdapter.cpp \ |
25 | V4LCameraAdapter/V4LCameraAdapter.cpp |
26 | |
27 | CAMERA_UTILS_SRC:= \ |
28 | utils/ErrorUtils.cpp \ |
29 | utils/MessageQueue.cpp \ |
30 | utils/Semaphore.cpp \ |
31 | utils/util.cpp |
32 | |
33 | CAMERA_HAL_VERTURAL_CAMERA_SRC:= \ |
34 | VirtualCamHal.cpp \ |
35 | AppCbNotifier.cpp \ |
36 | V4LCamAdpt.cpp |
37 | |
38 | include $(CLEAR_VARS) |
39 | |
40 | LOCAL_SRC_FILES:= \ |
41 | $(CAMERA_HAL_SRC) \ |
42 | $(CAMERA_V4L_SRC) \ |
43 | $(CAMERA_COMMON_SRC) \ |
44 | $(CAMERA_UTILS_SRC) |
45 | |
46 | LOCAL_C_INCLUDES += \ |
47 | $(LOCAL_PATH)/inc/ \ |
48 | $(LOCAL_PATH)/utils \ |
49 | $(LOCAL_PATH)/inc/V4LCameraAdapter \ |
50 | frameworks/native/include/ui \ |
51 | frameworks/native/include/utils \ |
52 | frameworks/base/include/media/stagefright \ |
53 | external/jhead/ \ |
54 | external/jpeg/ \ |
55 | hardware/libhardware/modules/gralloc/ \ |
56 | frameworks/native/include/media/hardware |
57 | |
58 | |
59 | LOCAL_SHARED_LIBRARIES:= \ |
60 | libui \ |
61 | libbinder \ |
62 | libutils \ |
63 | libcutils \ |
64 | libcamera_client \ |
65 | libexif \ |
66 | libjpeg \ |
67 | libgui |
68 | |
69 | LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER |
70 | |
71 | ifeq ($(BOARD_HAVE_FRONT_CAM),true) |
72 | LOCAL_CFLAGS += -DAMLOGIC_FRONT_CAMERA_SUPPORT |
73 | endif |
74 | |
75 | ifeq ($(BOARD_HAVE_BACK_CAM),true) |
76 | LOCAL_CFLAGS += -DAMLOGIC_BACK_CAMERA_SUPPORT |
77 | endif |
78 | |
79 | ifeq ($(IS_CAM_NONBLOCK),true) |
80 | LOCAL_CFLAGS += -DAMLOGIC_CAMERA_NONBLOCK_SUPPORT |
81 | endif |
82 | |
83 | ifeq ($(BOARD_USE_USB_CAMERA),true) |
84 | LOCAL_CFLAGS += -DAMLOGIC_USB_CAMERA_SUPPORT |
85 | #descrease the number of camera captrue frames,and let skype run smoothly |
86 | ifeq ($(BOARD_USB_CAMREA_DECREASE_FRAMES), true) |
87 | LOCAL_CFLAGS += -DAMLOGIC_USB_CAMERA_DECREASE_FRAMES |
88 | endif |
89 | ifeq ($(BOARD_USBCAM_IS_TWOCH),true) |
90 | LOCAL_CFLAGS += -DAMLOGIC_TWO_CH_UVC |
91 | endif |
92 | else |
93 | ifeq ($(BOARD_HAVE_MULTI_CAMERAS),true) |
94 | LOCAL_CFLAGS += -DAMLOGIC_MULTI_CAMERA_SUPPORT |
95 | endif |
96 | ifeq ($(BOARD_HAVE_FLASHLIGHT),true) |
97 | LOCAL_CFLAGS += -DAMLOGIC_FLASHLIGHT_SUPPORT |
98 | endif |
99 | endif |
100 | |
101 | ifeq ($(BOARD_ENABLE_VIDEO_SNAPSHOT),true) |
102 | LOCAL_CFLAGS += -DAMLOGIC_ENABLE_VIDEO_SNAPSHOT |
103 | endif |
104 | |
105 | ifeq ($(BOARD_HAVE_VIRTUAL_CAMERA),true) |
106 | LOCAL_CFLAGS += -DAMLOGIC_VIRTUAL_CAMERA_SUPPORT |
107 | LOCAL_SRC_FILES+= \ |
108 | $(CAMERA_HAL_VERTURAL_CAMERA_SRC) |
109 | endif |
110 | |
111 | LOCAL_MODULE_RELATIVE_PATH := hw |
112 | LOCAL_MODULE:= camera.amlogic |
113 | LOCAL_MODULE_TAGS:= optional |
114 | |
115 | #include $(BUILD_HEAPTRACKED_SHARED_LIBRARY) |
116 | include $(BUILD_SHARED_LIBRARY) |
117 | endif |
118 | endif |
119 |