blob: b1547acc12468859e0f058c339a84013554f8d43 [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
kaiyiz43723fb2014-11-10 14:57:54 +080017LOCAL_CERTIFICATE := platform
Sascha Haeberling30239932013-08-28 14:51:53 -070018
19include $(LOCAL_PATH)/version.mk
20LOCAL_AAPT_FLAGS := \
21 --auto-add-overlay \
22 --version-name "$(version_name_package)" \
23 --version-code $(version_code_package) \
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070024
Sachin Shah89d153b2014-08-15 18:36:44 -070025LOCAL_PACKAGE_NAME := SnapdragonCamera
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
Leena Winterrowd7e199552014-08-13 12:00:39 -070031# If this is an unbundled build (to install separately) then include
Angus Konged15d1a2013-08-19 15:06:12 -070032# the libraries in the APK, otherwise just put them in /system/lib and
33# leave them out of the APK
34ifneq (,$(TARGET_BUILD_APPS))
Leena Winterrowd7e199552014-08-13 12:00:39 -070035 LOCAL_JNI_SHARED_LIBRARIES := libjni_snapcammosaic libjni_snapcamtinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070036else
Leena Winterrowd7e199552014-08-13 12:00:39 -070037 LOCAL_REQUIRED_MODULES := libjni_snapcammosaic libjni_snapcamtinyplanet
Angus Konged15d1a2013-08-19 15:06:12 -070038endif
39
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070040include $(BUILD_PACKAGE)
41
Leena Winterrowd6c0e99e2014-08-21 15:19:33 -070042include $(call all-makefiles-under, $(LOCAL_PATH))