blob: fca49616305cb1f4fa691f04e1bc96af0877499e [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
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -07008LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit
9
10
11LOCAL_SRC_FILES := $(call all-java-files-under, src)
12LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
Ruben Brunk283beaf2013-09-23 10:59:38 -070013LOCAL_SRC_FILES += $(call all-java-files-under, src_pd_gcam)
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070014
15LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
16
Sascha Haeberling30239932013-08-28 14:51:53 -070017
18include $(LOCAL_PATH)/version.mk
19LOCAL_AAPT_FLAGS := \
20 --auto-add-overlay \
21 --version-name "$(version_name_package)" \
22 --version-code $(version_code_package) \
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070023
24LOCAL_PACKAGE_NAME := Camera2
Michael Bestas3efe00b2014-01-20 20:40:32 +020025LOCAL_CERTIFICATE := platform
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070026
Alok Kediyaaed65252013-09-23 14:31:42 +053027#LOCAL_SDK_VERSION := current
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070028
29LOCAL_PROGUARD_FLAG_FILES := proguard.flags
30
Angus Konged15d1a2013-08-19 15:06:12 -070031# If this is an unbundled build (to install seprately) then include
32# the libraries in the APK, otherwise just put them in /system/lib and
33# leave them out of the APK
34ifneq (,$(TARGET_BUILD_APPS))
Sascha Haeberlinga5a08d72013-09-11 20:30:52 -070035 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_tinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070036else
Sascha Haeberlinga5a08d72013-09-11 20:30:52 -070037 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_tinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070038endif
39
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070040include $(BUILD_PACKAGE)
41
Sascha Haeberling30239932013-08-28 14:51:53 -070042include $(call all-makefiles-under, $(LOCAL_PATH))