blob: 4f187895ff0719711dea3121b8e15f5738a0b1d2 [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
Sam Judd4021c892014-03-17 12:57:50 -07009LOCAL_STATIC_JAVA_LIBRARIES += glide
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070010
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070011LOCAL_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
Erin Dahlgrena706c942014-02-10 12:38:37 -080015LOCAL_RESOURCE_DIR += \
16 $(LOCAL_PATH)/res \
17 $(LOCAL_PATH)/res_p
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070018
Sascha Haeberling30239932013-08-28 14:51:53 -070019
20include $(LOCAL_PATH)/version.mk
21LOCAL_AAPT_FLAGS := \
22 --auto-add-overlay \
23 --version-name "$(version_name_package)" \
24 --version-code $(version_code_package) \
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070025
26LOCAL_PACKAGE_NAME := Camera2
27
28LOCAL_SDK_VERSION := current
29
30LOCAL_PROGUARD_FLAG_FILES := proguard.flags
31
Angus Konged15d1a2013-08-19 15:06:12 -070032# If this is an unbundled build (to install seprately) then include
33# the libraries in the APK, otherwise just put them in /system/lib and
34# leave them out of the APK
35ifneq (,$(TARGET_BUILD_APPS))
Angus Kong4583f052013-12-05 14:19:15 -080036 LOCAL_JNI_SHARED_LIBRARIES := libjni_tinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070037else
Angus Kong4583f052013-12-05 14:19:15 -080038 LOCAL_REQUIRED_MODULES := libjni_tinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070039endif
40
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070041include $(BUILD_PACKAGE)
42
Sascha Haeberling30239932013-08-28 14:51:53 -070043include $(call all-makefiles-under, $(LOCAL_PATH))