1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_TAGS := optional
6
7LOCAL_STATIC_ANDROID_LIBRARIES := \
8    android-support-v13 \
9    android-support-v4 \
10    android-support-compat
11
12LOCAL_STATIC_JAVA_LIBRARIES := android-ex-camera2-portability
13LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit
14LOCAL_STATIC_JAVA_LIBRARIES += glide
15LOCAL_STATIC_JAVA_LIBRARIES += guava
16LOCAL_STATIC_JAVA_LIBRARIES += jsr305
17
18LOCAL_SRC_FILES := $(call all-java-files-under, src)
19LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
20LOCAL_SRC_FILES += $(call all-java-files-under, src_pd_gcam)
21
22LOCAL_RESOURCE_DIR += \
23	$(LOCAL_PATH)/res \
24	$(LOCAL_PATH)/res_p
25
26include $(LOCAL_PATH)/version.mk
27
28LOCAL_AAPT_FLAGS := \
29        --auto-add-overlay \
30        --version-name "$(version_name_package)" \
31        --version-code $(version_code_package) \
32
33LOCAL_USE_AAPT2 := true
34
35LOCAL_PACKAGE_NAME := Camera2
36
37LOCAL_SDK_VERSION := current
38
39LOCAL_PROGUARD_FLAG_FILES := proguard.flags
40
41# Guava uses deprecated org.apache.http.legacy classes.
42LOCAL_JAVA_LIBRARIES += org.apache.http.legacy
43
44LOCAL_JNI_SHARED_LIBRARIES := libjni_tinyplanet libjni_jpegutil
45
46include $(BUILD_PACKAGE)
47
48include $(call all-makefiles-under, $(LOCAL_PATH))
49