1 BUILD_OLD_LIBCAMERA:= 2 ifeq ($(BUILD_OLD_LIBCAMERA),true) 3 4 # When zero we link against libqcamera; when 1, we dlopen libqcamera. 5 DLOPEN_LIBQCAMERA:=1 6 7 ifneq ($(BUILD_TINY_ANDROID),true) 8 9 LOCAL_PATH:= $(call my-dir) 10 11 include $(CLEAR_VARS) 12 13 LOCAL_CFLAGS:=-fno-short-enums 14 LOCAL_CFLAGS+=-DDLOPEN_LIBQCAMERA=$(DLOPEN_LIBQCAMERA) 15 16 LOCAL_SRC_FILES:= QualcommCameraHardware.cpp 17 18 LOCAL_SHARED_LIBRARIES:= libutils libbinder libui liblog libcamera_client 19 ifneq ($(DLOPEN_LIBQCAMERA),1) 20 LOCAL_SHARED_LIBRARIES+= liboemcamera 21 else 22 LOCAL_SHARED_LIBRARIES+= libdl 23 endif 24 25 LOCAL_MODULE:= libcamera 26 27 include $(BUILD_SHARED_LIBRARY) 28 29 endif # not BUILD_TINY_ANDROID 30 endif # not BUILD_OLD_LIBCAMERA 31