blob: 5704f5cc9d2d196414bb5fcec3a7005313f9b90d [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
Jack Yoo2fceef12016-06-30 14:16:44 -07008LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
zhuw9c8110f2018-08-07 10:38:26 +08009LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
jinwubfab1422018-09-21 18:33:37 +080010LOCAL_STATIC_JAVA_LIBRARIES += androidx.heifwriter_heifwriter
Alexander Martinz21e6b3e2020-09-12 18:13:41 +020011LOCAL_STATIC_JAVA_LIBRARIES += com.shift.camera
12LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010013LOCAL_STATIC_JAVA_LIBRARIES += zxing-core
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070014
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070015LOCAL_SRC_FILES := $(call all-java-files-under, src)
16LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
Ruben Brunk283beaf2013-09-23 10:59:38 -070017LOCAL_SRC_FILES += $(call all-java-files-under, src_pd_gcam)
weijiew21a4a7c2017-03-17 15:04:06 +080018LOCAL_SRC_FILES += $(call all-java-files-under, src_wrapper)
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010019LOCAL_SRC_FILES += $(call all-java-files-under, quickReader/src)
Jack Yooa02710a2016-04-06 16:07:22 -070020LOCAL_SRC_FILES += $(call all-renderscript-files-under, rs)
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070021
22LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010023LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/quickReader/res
zhuw9c8110f2018-08-07 10:38:26 +080024LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070025
Sascha Haeberling30239932013-08-28 14:51:53 -070026include $(LOCAL_PATH)/version.mk
27LOCAL_AAPT_FLAGS := \
28 --auto-add-overlay \
29 --version-name "$(version_name_package)" \
30 --version-code $(version_code_package) \
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010031 --extra-packages me.dm7.barcodescanner.core \
32 --extra-packages me.dm7.barcodescanner.zxing
33
34LOCAL_STATIC_JAVA_AAR_LIBRARIES += \
35 qreader-core \
36 qreader-zxing
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070037
Alexander Martinz68f9b092020-04-23 14:06:24 +020038LOCAL_JAVA_LIBRARIES := com.shiftos.platform.internal
Michael Bestase2067a82013-11-05 16:43:50 +020039
Alexander Martinz68f9b092020-04-23 14:06:24 +020040LOCAL_PACKAGE_NAME := SnapdragonCamera
Jack Yoo382e2cb2016-07-13 12:56:36 -070041LOCAL_PRIVILEGED_MODULE := true
codeworkxe303fd52018-08-22 14:24:30 +020042LOCAL_PRIVATE_PLATFORM_APIS := true
43LOCAL_CERTIFICATE := platform
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070044
Alexander Martinz68f9b092020-04-23 14:06:24 +020045#LOCAL_AAPT_FLAGS += --rename-manifest-package com.shiftos.snap
Michael Bestas6423d742015-08-29 01:00:36 +030046
Alok Kediyaaed65252013-09-23 14:31:42 +053047#LOCAL_SDK_VERSION := current
Jack Yooa02710a2016-04-06 16:07:22 -070048LOCAL_RENDERSCRIPT_TARGET_API := 23
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070049
Alexander Martinz68f9b092020-04-23 14:06:24 +020050LOCAL_OVERRIDES_PACKAGES := Camera2 Snap
Sai Kumar Sanagavarapu99670f22014-12-01 10:15:54 +053051
Anton Hansson813ca622019-01-11 14:47:39 +000052LOCAL_PRODUCT_MODULE := true
53
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070054LOCAL_PROGUARD_FLAG_FILES := proguard.flags
55
Leena Winterrowd7e199552014-08-13 12:00:39 -070056# If this is an unbundled build (to install separately) then include
Angus Konged15d1a2013-08-19 15:06:12 -070057# the libraries in the APK, otherwise just put them in /system/lib and
58# leave them out of the APK
junjiezcfdc8742017-09-22 13:44:33 +080059
xianming wang1f2a3dd2018-03-16 17:27:59 +080060ifneq (,$(TARGET_BUILD_APPS))
Michael Bestas6423d742015-08-29 01:00:36 +030061 LOCAL_JNI_SHARED_LIBRARIES := libjni_snapmosaic libjni_snaptinyplanet libjni_snapimageutil
xianming wang1f2a3dd2018-03-16 17:27:59 +080062else
Michael Bestas6423d742015-08-29 01:00:36 +030063 LOCAL_REQUIRED_MODULES := libjni_snapmosaic libjni_snaptinyplanet libjni_snapimageutil
xianming wang1f2a3dd2018-03-16 17:27:59 +080064endif
Angus Konged15d1a2013-08-19 15:06:12 -070065
Alexander Martinz68f9b092020-04-23 14:06:24 +020066LOCAL_REQUIRED_MODULES += privapp_whitelist_org.codeaurora.snapcam.xml
Michael Bestasbda90132020-05-06 20:46:17 +030067
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070068include $(BUILD_PACKAGE)
69
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010070include $(CLEAR_VARS)
Alexander Martinz68f9b092020-04-23 14:06:24 +020071LOCAL_MODULE := privapp_whitelist_org.codeaurora.snapcam.xml
Michael Bestasbda90132020-05-06 20:46:17 +030072LOCAL_MODULE_CLASS := ETC
73LOCAL_MODULE_TAGS := optional
Anton Hansson813ca622019-01-11 14:47:39 +000074LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/permissions
75LOCAL_PRODUCT_MODULE := true
Michael Bestasbda90132020-05-06 20:46:17 +030076LOCAL_SRC_FILES := $(LOCAL_MODULE)
77include $(BUILD_PREBUILT)
78
79include $(CLEAR_VARS)
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010080
81LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES += \
Luca Stefanif86cde62018-12-25 12:32:21 +010082 qreader-core:quickReader/libs/core-1.9.8.aar \
83 qreader-zxing:quickReader/libs/zxing-1.9.8.aar \
84 zxing-core:quickReader/libs/zxing-core-g-3.3.3.jar
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010085
86include $(BUILD_MULTI_PREBUILT)
87
Leena Winterrowd6c0e99e2014-08-21 15:19:33 -070088include $(call all-makefiles-under, $(LOCAL_PATH))