summaryrefslogtreecommitdiffstats
path: root/libcamera/Android.mk
blob: ebbd37b6e08d546f4ee075cc52e7339ebd57bd3c (plain)
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
ifeq ($(TARGET_DEVICE),crespo)
# When zero we link against libqcamera; when 1, we dlopen libqcamera.
ifeq ($(BOARD_CAMERA_LIBRARIES),libcamera)

DLOPEN_LIBSECCAMERA:=1

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_CFLAGS:=-fno-short-enums
LOCAL_CFLAGS+=-DDLOPEN_LIBSECCAMERA=$(DLOPEN_LIBSECCAMERA)
LOCAL_CFLAGS += -DSWP1_CAMERA_ADD_ADVANCED_FUNCTION


LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libs3cjpeg


LOCAL_SRC_FILES:= \
	SecCamera.cpp \
	SecCameraHWInterface.cpp


LOCAL_SHARED_LIBRARIES:= libutils libui liblog libbinder libcutils
LOCAL_SHARED_LIBRARIES+= libs3cjpeg
LOCAL_SHARED_LIBRARIES+= libcamera_client

#Enable the below code to show the video output (without GUI) on TV
#ifeq ($(BOARD_USES_HDMI), true)
#LOCAL_CFLAGS+=-DENABLE_HDMI_DISPLAY \
#        -DBOARD_HDMI_STD=$(BOARD_HDMI_STD)
#
#LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
#LOCAL_SHARED_LIBRARIES+= libhdmi
#endif

ifeq ($(BOARD_USES_OVERLAY),true)
LOCAL_CFLAGS += -DBOARD_USES_OVERLAY
endif

ifeq ($(DLOPEN_LIBSECCAMERA),1)
LOCAL_SHARED_LIBRARIES+= libdl
endif

LOCAL_MODULE:= libcamera

LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)

endif
endif