blob: 285e59543148b59c8e4bbcee952f75538fb1a98e [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)
13
14LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
15
Sascha Haeberling30239932013-08-28 14:51:53 -070016
17include $(LOCAL_PATH)/version.mk
18LOCAL_AAPT_FLAGS := \
19 --auto-add-overlay \
20 --version-name "$(version_name_package)" \
21 --version-code $(version_code_package) \
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070022
23LOCAL_PACKAGE_NAME := Camera2
24
25LOCAL_SDK_VERSION := current
26
27LOCAL_PROGUARD_FLAG_FILES := proguard.flags
28
Angus Konged15d1a2013-08-19 15:06:12 -070029# If this is an unbundled build (to install seprately) then include
30# the libraries in the APK, otherwise just put them in /system/lib and
31# leave them out of the APK
32ifneq (,$(TARGET_BUILD_APPS))
Sascha Haeberlinga5a08d72013-09-11 20:30:52 -070033 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_tinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070034else
Sascha Haeberlinga5a08d72013-09-11 20:30:52 -070035 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_tinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070036endif
37
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070038include $(BUILD_PACKAGE)
39
Sascha Haeberling30239932013-08-28 14:51:53 -070040include $(call all-makefiles-under, $(LOCAL_PATH))