1 ifneq ($(filter crespo crespo4g,$(TARGET_DEVICE)),) 2 3 # When zero we link against libqcamera; when 1, we dlopen libqcamera. 4 ifeq ($(BOARD_CAMERA_LIBRARIES),libcamera) 5 6 DLOPEN_LIBSECCAMERA:=1 7 8 LOCAL_PATH:= $(call my-dir) 9 include $(CLEAR_VARS) 10 11 LOCAL_CFLAGS:=-fno-short-enums 12 LOCAL_CFLAGS+=-DDLOPEN_LIBSECCAMERA=$(DLOPEN_LIBSECCAMERA) 13 14 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include 15 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libs3cjpeg 16 17 18 LOCAL_SRC_FILES:= \ 19 SecCamera.cpp \ 20 SecCameraHWInterface.cpp 21 22 23 LOCAL_SHARED_LIBRARIES:= libutils libui liblog libbinder libcutils 24 LOCAL_SHARED_LIBRARIES+= libs3cjpeg 25 LOCAL_SHARED_LIBRARIES+= libcamera_client 26 27 ifeq ($(BOARD_USES_OVERLAY),true) 28 LOCAL_CFLAGS += -DBOARD_USES_OVERLAY 29 endif 30 31 ifeq ($(DLOPEN_LIBSECCAMERA),1) 32 LOCAL_SHARED_LIBRARIES+= libdl 33 endif 34 35 LOCAL_MODULE:= libcamera 36 37 LOCAL_MODULE_TAGS := optional 38 39 include $(BUILD_SHARED_LIBRARY) 40 41 endif 42 endif 43