forked from Evervolv/android_hardware_qcom_camera
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Android.mk
34 lines (24 loc) · 1.06 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$(shell mkdir -p $(OUT)/obj/SHARED_LIBRARIES/libcamera_intermediates/)
$(shell touch $(OUT)/obj/SHARED_LIBRARIES/libcamera_intermediates/export_includes)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
ifneq (,$(findstring $(TARGET_BOARD_PLATFORM),qsd8k msm7k))
LOCAL_C_FLAGS += -O3
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
LOCAL_SRC_FILES := QcomCamera.cpp
LOCAL_SHARED_LIBRARIES := liblog libdl libutils libcamera_client libbinder \
libcutils libhardware libui libcamera
LOCAL_C_INCLUDES := frameworks/base/services \
frameworks/base/include \
hardware/libhardware/include
ifeq ($(TARGET_BOARD_PLATFORM),msm7k)
LOCAL_C_INCLUDES += hardware/libhardware/modules/gralloc
LOCAL_CFLAGS := -DPREVIEW_MSM7K
else
LOCAL_C_INCLUDES += hardware/qcom/display/libgralloc
endif
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
endif