1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := \
6        QCamera3Factory.cpp \
7        QCamera3Hal.cpp \
8        QCamera3HWI.cpp \
9        QCamera3Mem.cpp \
10        QCamera3Stream.cpp \
11        QCamera3Channel.cpp \
12        QCamera3PostProc.cpp \
13        ../util/QCameraCmdThread.cpp \
14        ../util/QCameraQueue.cpp
15
16LOCAL_CFLAGS := -Wall -Werror
17LOCAL_CFLAGS += -DHAS_MULTIMEDIA_HINTS
18
19LOCAL_C_INCLUDES := \
20        $(LOCAL_PATH)/../stack/common \
21        frameworks/native/include/media/openmax \
22        frameworks/native/include \
23        frameworks/av/include \
24        hardware/qcom/media/libstagefrighthw \
25        system/media/camera/include \
26        $(LOCAL_PATH)/../../mm-image-codec/qexif \
27        $(LOCAL_PATH)/../../mm-image-codec/qomx_core \
28        $(LOCAL_PATH)/../util
29
30ifneq ($(filter msm8974 msm8x74,$(TARGET_BOARD_PLATFORM)),)
31LOCAL_C_INCLUDES += \
32        hardware/qcom/display/msm8974/libgralloc
33else
34LOCAL_C_INCLUDES += \
35        hardware/qcom/display/msm8960/libgralloc
36endif
37
38LOCAL_SHARED_LIBRARIES := libcamera_client liblog libhardware libutils libcutils libdl
39LOCAL_SHARED_LIBRARIES += libmmcamera_interface libmmjpeg_interface libui libcamera_metadata
40
41LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
42#LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
43LOCAL_MODULE := camera.$(TARGET_DEVICE)
44LOCAL_MODULE_TAGS := optional
45
46include $(BUILD_SHARED_LIBRARY)
47
48#include $(LOCAL_PATH)/test/Android.mk
49