blob: ca6d26a50b4e857c9ad1e81b70fd4cb067ea925b [file] [log] [blame]
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -07001LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_TAGS := optional
6
7LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
Sol Boucher5a344962014-06-17 14:05:08 -07008LOCAL_STATIC_JAVA_LIBRARIES += android-ex-camera2-portability
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -07009LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit
Sam Judd4021c892014-03-17 12:57:50 -070010LOCAL_STATIC_JAVA_LIBRARIES += glide
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070011
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070012LOCAL_SRC_FILES := $(call all-java-files-under, src)
13LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
Ruben Brunk283beaf2013-09-23 10:59:38 -070014LOCAL_SRC_FILES += $(call all-java-files-under, src_pd_gcam)
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070015
Erin Dahlgrena706c942014-02-10 12:38:37 -080016LOCAL_RESOURCE_DIR += \
17 $(LOCAL_PATH)/res \
18 $(LOCAL_PATH)/res_p
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070019
Sascha Haeberling30239932013-08-28 14:51:53 -070020
21include $(LOCAL_PATH)/version.mk
22LOCAL_AAPT_FLAGS := \
23 --auto-add-overlay \
24 --version-name "$(version_name_package)" \
25 --version-code $(version_code_package) \
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070026
27LOCAL_PACKAGE_NAME := Camera2
28
29LOCAL_SDK_VERSION := current
30
31LOCAL_PROGUARD_FLAG_FILES := proguard.flags
32
Angus Konged15d1a2013-08-19 15:06:12 -070033# If this is an unbundled build (to install seprately) then include
34# the libraries in the APK, otherwise just put them in /system/lib and
35# leave them out of the APK
36ifneq (,$(TARGET_BUILD_APPS))
Angus Kong4583f052013-12-05 14:19:15 -080037 LOCAL_JNI_SHARED_LIBRARIES := libjni_tinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070038else
Angus Kong4583f052013-12-05 14:19:15 -080039 LOCAL_REQUIRED_MODULES := libjni_tinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070040endif
41
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070042include $(BUILD_PACKAGE)
43
Sascha Haeberling30239932013-08-28 14:51:53 -070044include $(call all-makefiles-under, $(LOCAL_PATH))