2012-01-11 03:35:15 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
LIBCAMERA_BUILD := nexus
|
|
|
|
include $(call all-subdir-makefiles)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2012-02-09 00:17:30 +00:00
|
|
|
LOCAL_C_FLAGS += -O3
|
2012-01-11 03:35:15 +00:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
|
|
|
|
LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
|
|
|
|
LOCAL_SRC_FILES := cameraHal.cpp
|
|
|
|
LOCAL_PRELINK_MODULE := false
|
|
|
|
CAMERA_LIB := camera-inc
|
|
|
|
|
|
|
|
ifeq ($(LIBCAMERA_BUILD),nexus)
|
|
|
|
CAMERA_LIB := camera-nexus
|
|
|
|
endif
|
|
|
|
|
|
|
|
TARGET_GLOBAL_LD_DIRS += -L$(LOCAL_PATH) -l${CAMERA_LIB}
|
2012-05-04 21:38:15 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := liblog libdl libutils libcamera_client libbinder libcutils libhardware libui
|
2012-01-11 03:35:15 +00:00
|
|
|
LOCAL_C_INCLUDES := frameworks/base/services/ frameworks/base/include
|
2012-05-04 21:38:15 +00:00
|
|
|
LOCAL_C_INCLUDES += hardware/libhardware/include/ hardware
|
2012-01-11 03:35:15 +00:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|