-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroid.mk
More file actions
57 lines (40 loc) · 1.54 KB
/
Android.mk
File metadata and controls
57 lines (40 loc) · 1.54 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
LOCAL_PATH := $(call my-dir)
## Make libcamera
# When zero we link against libmmcamera; when 1, we dlopen libmmcamera.
DLOPEN_LIBMMCAMERA:=1
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES:= QualcommCameraHardware.cpp
LOCAL_CFLAGS:= -DDLOPEN_LIBMMCAMERA=$(DLOPEN_LIBMMCAMERA)
## Can be raised to 6 to improve framerate, at the cost of allocating
## more ADSP memory. Use 0xa68000 as pool size in kernel to test
LOCAL_CFLAGS+= -DNUM_PREVIEW_BUFFERS=3 -D_ANDROID_
LOCAL_C_INCLUDES+= \
$(TARGET_OUT_HEADERS)/mm-camera \
$(TARGET_OUT_HEADERS)/mm-still/jpeg \
LOCAL_SHARED_LIBRARIES:= libutils libui libcamera_client liblog libcutils
LOCAL_SHARED_LIBRARIES+= libbinder
ifneq ($(DLOPEN_LIBMMCAMERA),1)
LOCAL_SHARED_LIBRARIES+= liboemcamera
else
LOCAL_SHARED_LIBRARIES+= libdl
endif
LOCAL_MODULE:= libcamera
include $(BUILD_SHARED_LIBRARY)
## Make camera wrapper
include $(CLEAR_VARS)
LOCAL_C_FLAGS += -O3
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SRC_FILES := cameraHal.cpp
LOCAL_PRELINK_MODULE := false
LOCAL_SHARED_LIBRARIES := liblog libdl libutils libcamera_client libbinder libcutils libhardware libcamera
LOCAL_C_INCLUDES := frameworks/base/services \
frameworks/base/include \
hardware/libhardware/include \
hardware/qcom/display/libgralloc
ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),cooper)
LOCAL_MODULE := camera.cooper
include $(BUILD_SHARED_LIBRARY)
endif