summaryrefslogtreecommitdiff
path: root/vircam/Android.mk (plain)
blob: d40e73fbc23d2a9d4b7336c75999836a955f51f3
1ifneq ( true, true)
2ifneq ($(strip $(USE_CAMERA_STUB)),true)
3
4LOCAL_PATH:= $(call my-dir)
5
6CAMERA_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
18CAMERA_COMMON_SRC:= \
19 CameraParameters.cpp \
20 ExCameraParameters.cpp \
21 CameraHalCommon.cpp
22
23CAMERA_V4L_SRC:= \
24 BaseCameraAdapter.cpp \
25 V4LCameraAdapter/V4LCameraAdapter.cpp
26
27CAMERA_UTILS_SRC:= \
28 utils/ErrorUtils.cpp \
29 utils/MessageQueue.cpp \
30 utils/Semaphore.cpp \
31 utils/util.cpp
32
33CAMERA_HAL_VERTURAL_CAMERA_SRC:= \
34 VirtualCamHal.cpp \
35 AppCbNotifier.cpp \
36 V4LCamAdpt.cpp
37
38include $(CLEAR_VARS)
39
40LOCAL_SRC_FILES:= \
41 $(CAMERA_HAL_SRC) \
42 $(CAMERA_V4L_SRC) \
43 $(CAMERA_COMMON_SRC) \
44 $(CAMERA_UTILS_SRC)
45
46LOCAL_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
59LOCAL_SHARED_LIBRARIES:= \
60 libui \
61 libbinder \
62 libutils \
63 libcutils \
64 libcamera_client \
65 libexif \
66 libjpeg \
67 libgui
68
69LOCAL_CFLAGS := -fno-short-enums -DCOPY_IMAGE_BUFFER
70
71ifeq ($(BOARD_HAVE_FRONT_CAM),true)
72 LOCAL_CFLAGS += -DAMLOGIC_FRONT_CAMERA_SUPPORT
73endif
74
75ifeq ($(BOARD_HAVE_BACK_CAM),true)
76 LOCAL_CFLAGS += -DAMLOGIC_BACK_CAMERA_SUPPORT
77endif
78
79ifeq ($(IS_CAM_NONBLOCK),true)
80LOCAL_CFLAGS += -DAMLOGIC_CAMERA_NONBLOCK_SUPPORT
81endif
82
83ifeq ($(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
86ifeq ($(BOARD_USB_CAMREA_DECREASE_FRAMES), true)
87 LOCAL_CFLAGS += -DAMLOGIC_USB_CAMERA_DECREASE_FRAMES
88endif
89ifeq ($(BOARD_USBCAM_IS_TWOCH),true)
90 LOCAL_CFLAGS += -DAMLOGIC_TWO_CH_UVC
91endif
92else
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
99endif
100
101ifeq ($(BOARD_ENABLE_VIDEO_SNAPSHOT),true)
102 LOCAL_CFLAGS += -DAMLOGIC_ENABLE_VIDEO_SNAPSHOT
103endif
104
105ifeq ($(BOARD_HAVE_VIRTUAL_CAMERA),true)
106 LOCAL_CFLAGS += -DAMLOGIC_VIRTUAL_CAMERA_SUPPORT
107 LOCAL_SRC_FILES+= \
108 $(CAMERA_HAL_VERTURAL_CAMERA_SRC)
109endif
110
111LOCAL_MODULE_RELATIVE_PATH := hw
112LOCAL_MODULE:= camera.amlogic
113LOCAL_MODULE_TAGS:= optional
114
115#include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
116include $(BUILD_SHARED_LIBRARY)
117endif
118endif
119