2011-01-31 06:06:14 +00:00
|
|
|
ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),bahamas)
|
2011-01-12 07:42:14 +00:00
|
|
|
BUILD_LIBCAMERA:= true
|
|
|
|
ifeq ($(BUILD_LIBCAMERA),true)
|
|
|
|
|
|
|
|
# When zero we link against libmmcamera; when 1, we dlopen libmmcamera.
|
|
|
|
DLOPEN_LIBMMCAMERA:=1
|
|
|
|
|
|
|
|
ifneq ($(BUILD_TINY_ANDROID),true)
|
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS:=optional
|
|
|
|
|
2011-02-09 17:58:14 +00:00
|
|
|
LOCAL_SRC_FILES:= QualcommCameraHardware.cpp exifwriter.c jdatadst.cpp jpegConvert.cpp
|
2011-01-12 07:42:14 +00:00
|
|
|
|
|
|
|
LOCAL_CFLAGS:= -DDLOPEN_LIBMMCAMERA=$(DLOPEN_LIBMMCAMERA)
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES+= \
|
2011-02-09 17:58:14 +00:00
|
|
|
vendor/qcom/proprietary/mm-camera/common \
|
|
|
|
vendor/qcom/proprietary/mm-camera/apps/appslib \
|
|
|
|
external/jhead \
|
|
|
|
external/jpeg \
|
|
|
|
vendor/qcom/proprietary/mm-camera/jpeg/inc
|
2011-01-12 07:42:14 +00:00
|
|
|
|
2011-02-09 17:58:14 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES:= libbinder libutils libcamera_client liblog libjpeg
|
2011-01-12 07:42:14 +00:00
|
|
|
|
|
|
|
ifneq ($(DLOPEN_LIBMMCAMERA),1)
|
|
|
|
LOCAL_SHARED_LIBRARIES+= libmmcamera libmm-qcamera-tgt
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES+= libdl libexif
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libcamera
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
endif # BUILD_TINY_ANDROID
|
|
|
|
endif # BUILD_LIBCAMERA
|
|
|
|
endif # BOARD_USES_OLD_CAMERA_HACK
|