android_device_htc_click/libcamera/Android.mk
KalimochoAz 0290e2e643 Kernel upgrade to 2.6.35
Based on the new kernel started by Arne Cucheron ( ARCO ) We are moving
from very old HTC kernel 2.6.29 to new 2.6.35 kernel. All those files need
to be changed for this change

Change-Id: Ieb8b01c8f5e323480a95db4f0faf0ae3a6c1d746
2011-08-12 00:14:16 +02:00

41 lines
1.0 KiB
Makefile

ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),bahamas)
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
LOCAL_SRC_FILES:= QualcommCameraHardware.cpp exifwriter.c jdatadst.cpp jpegConvert.cpp
LOCAL_CFLAGS:= -DDLOPEN_LIBMMCAMERA=$(DLOPEN_LIBMMCAMERA)
LOCAL_C_INCLUDES+= \
vendor/qcom/proprietary/mm-camera/common \
vendor/qcom/proprietary/mm-camera/apps/appslib \
external/jhead \
external/jpeg \
vendor/qcom/proprietary/mm-camera/jpeg/inc
LOCAL_SHARED_LIBRARIES:= libbinder libutils libcamera_client liblog libjpeg
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