blob: c51a8a6334cb99bd45ca41ffd964e13f7854751d [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
Sachin Shah89d153b2014-08-15 18:36:44 -070024LOCAL_PACKAGE_NAME := SnapdragonCamera
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070025
Alok Kediyaaed65252013-09-23 14:31:42 +053026#LOCAL_SDK_VERSION := current
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070027
28LOCAL_PROGUARD_FLAG_FILES := proguard.flags
29
Leena Winterrowd7e199552014-08-13 12:00:39 -070030# If this is an unbundled build (to install separately) then include
Angus Konged15d1a2013-08-19 15:06:12 -070031# the libraries in the APK, otherwise just put them in /system/lib and
32# leave them out of the APK
33ifneq (,$(TARGET_BUILD_APPS))
Leena Winterrowd7e199552014-08-13 12:00:39 -070034 LOCAL_JNI_SHARED_LIBRARIES := libjni_snapcammosaic libjni_snapcamtinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070035else
Leena Winterrowd7e199552014-08-13 12:00:39 -070036 LOCAL_REQUIRED_MODULES := libjni_snapcammosaic libjni_snapcamtinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070037endif
38
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070039include $(BUILD_PACKAGE)
40
Sachin Shah89d153b2014-08-15 18:36:44 -070041#include $(call all-makefiles-under, $(LOCAL_PATH))