Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE_TAGS := optional |
| 6 | |
| 7 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13 |
Jack Yoo | 2fceef1 | 2016-06-30 14:16:44 -0700 | [diff] [blame] | 8 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 |
zhuw | 9c8110f | 2018-08-07 10:38:26 +0800 | [diff] [blame] | 9 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview |
jinwu | bfab142 | 2018-09-21 18:33:37 +0800 | [diff] [blame] | 10 | LOCAL_STATIC_JAVA_LIBRARIES += androidx.heifwriter_heifwriter |
Alexander Martinz | 21e6b3e | 2020-09-12 18:13:41 +0200 | [diff] [blame] | 11 | LOCAL_STATIC_JAVA_LIBRARIES += com.shift.camera |
| 12 | LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit |
Joey Rizzoli | 5b7dae2 | 2017-12-15 17:13:21 +0100 | [diff] [blame] | 13 | LOCAL_STATIC_JAVA_LIBRARIES += zxing-core |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 14 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 15 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 16 | LOCAL_SRC_FILES += $(call all-java-files-under, src_pd) |
Ruben Brunk | 283beaf | 2013-09-23 10:59:38 -0700 | [diff] [blame] | 17 | LOCAL_SRC_FILES += $(call all-java-files-under, src_pd_gcam) |
weijiew | 21a4a7c | 2017-03-17 15:04:06 +0800 | [diff] [blame] | 18 | LOCAL_SRC_FILES += $(call all-java-files-under, src_wrapper) |
Joey Rizzoli | 5b7dae2 | 2017-12-15 17:13:21 +0100 | [diff] [blame] | 19 | LOCAL_SRC_FILES += $(call all-java-files-under, quickReader/src) |
Jack Yoo | a02710a | 2016-04-06 16:07:22 -0700 | [diff] [blame] | 20 | LOCAL_SRC_FILES += $(call all-renderscript-files-under, rs) |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 21 | |
| 22 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res |
Joey Rizzoli | 5b7dae2 | 2017-12-15 17:13:21 +0100 | [diff] [blame] | 23 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/quickReader/res |
zhuw | 9c8110f | 2018-08-07 10:38:26 +0800 | [diff] [blame] | 24 | LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 25 | |
Sascha Haeberling | 3023993 | 2013-08-28 14:51:53 -0700 | [diff] [blame] | 26 | include $(LOCAL_PATH)/version.mk |
| 27 | LOCAL_AAPT_FLAGS := \ |
| 28 | --auto-add-overlay \ |
| 29 | --version-name "$(version_name_package)" \ |
| 30 | --version-code $(version_code_package) \ |
Joey Rizzoli | 5b7dae2 | 2017-12-15 17:13:21 +0100 | [diff] [blame] | 31 | --extra-packages me.dm7.barcodescanner.core \ |
| 32 | --extra-packages me.dm7.barcodescanner.zxing |
| 33 | |
| 34 | LOCAL_STATIC_JAVA_AAR_LIBRARIES += \ |
| 35 | qreader-core \ |
| 36 | qreader-zxing |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 37 | |
Alexander Martinz | 68f9b09 | 2020-04-23 14:06:24 +0200 | [diff] [blame] | 38 | LOCAL_JAVA_LIBRARIES := com.shiftos.platform.internal |
Michael Bestas | e2067a8 | 2013-11-05 16:43:50 +0200 | [diff] [blame] | 39 | |
Alexander Martinz | 68f9b09 | 2020-04-23 14:06:24 +0200 | [diff] [blame] | 40 | LOCAL_PACKAGE_NAME := SnapdragonCamera |
Jack Yoo | 382e2cb | 2016-07-13 12:56:36 -0700 | [diff] [blame] | 41 | LOCAL_PRIVILEGED_MODULE := true |
codeworkx | e303fd5 | 2018-08-22 14:24:30 +0200 | [diff] [blame] | 42 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 43 | LOCAL_CERTIFICATE := platform |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 44 | |
Alexander Martinz | 68f9b09 | 2020-04-23 14:06:24 +0200 | [diff] [blame] | 45 | #LOCAL_AAPT_FLAGS += --rename-manifest-package com.shiftos.snap |
Michael Bestas | 6423d74 | 2015-08-29 01:00:36 +0300 | [diff] [blame] | 46 | |
Alok Kediya | aed6525 | 2013-09-23 14:31:42 +0530 | [diff] [blame] | 47 | #LOCAL_SDK_VERSION := current |
Jack Yoo | a02710a | 2016-04-06 16:07:22 -0700 | [diff] [blame] | 48 | LOCAL_RENDERSCRIPT_TARGET_API := 23 |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 49 | |
Alexander Martinz | 68f9b09 | 2020-04-23 14:06:24 +0200 | [diff] [blame] | 50 | LOCAL_OVERRIDES_PACKAGES := Camera2 Snap |
Sai Kumar Sanagavarapu | 99670f2 | 2014-12-01 10:15:54 +0530 | [diff] [blame] | 51 | |
Anton Hansson | 813ca62 | 2019-01-11 14:47:39 +0000 | [diff] [blame] | 52 | LOCAL_PRODUCT_MODULE := true |
| 53 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 54 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 55 | |
Leena Winterrowd | 7e19955 | 2014-08-13 12:00:39 -0700 | [diff] [blame] | 56 | # If this is an unbundled build (to install separately) then include |
Angus Kong | ed15d1a | 2013-08-19 15:06:12 -0700 | [diff] [blame] | 57 | # the libraries in the APK, otherwise just put them in /system/lib and |
| 58 | # leave them out of the APK |
junjiez | cfdc874 | 2017-09-22 13:44:33 +0800 | [diff] [blame] | 59 | |
xianming wang | 1f2a3dd | 2018-03-16 17:27:59 +0800 | [diff] [blame] | 60 | ifneq (,$(TARGET_BUILD_APPS)) |
Michael Bestas | 6423d74 | 2015-08-29 01:00:36 +0300 | [diff] [blame] | 61 | LOCAL_JNI_SHARED_LIBRARIES := libjni_snapmosaic libjni_snaptinyplanet libjni_snapimageutil |
xianming wang | 1f2a3dd | 2018-03-16 17:27:59 +0800 | [diff] [blame] | 62 | else |
Michael Bestas | 6423d74 | 2015-08-29 01:00:36 +0300 | [diff] [blame] | 63 | LOCAL_REQUIRED_MODULES := libjni_snapmosaic libjni_snaptinyplanet libjni_snapimageutil |
xianming wang | 1f2a3dd | 2018-03-16 17:27:59 +0800 | [diff] [blame] | 64 | endif |
Angus Kong | ed15d1a | 2013-08-19 15:06:12 -0700 | [diff] [blame] | 65 | |
Alexander Martinz | 68f9b09 | 2020-04-23 14:06:24 +0200 | [diff] [blame] | 66 | LOCAL_REQUIRED_MODULES += privapp_whitelist_org.codeaurora.snapcam.xml |
Michael Bestas | bda9013 | 2020-05-06 20:46:17 +0300 | [diff] [blame] | 67 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 68 | include $(BUILD_PACKAGE) |
| 69 | |
Joey Rizzoli | 5b7dae2 | 2017-12-15 17:13:21 +0100 | [diff] [blame] | 70 | include $(CLEAR_VARS) |
Alexander Martinz | 68f9b09 | 2020-04-23 14:06:24 +0200 | [diff] [blame] | 71 | LOCAL_MODULE := privapp_whitelist_org.codeaurora.snapcam.xml |
Michael Bestas | bda9013 | 2020-05-06 20:46:17 +0300 | [diff] [blame] | 72 | LOCAL_MODULE_CLASS := ETC |
| 73 | LOCAL_MODULE_TAGS := optional |
Anton Hansson | 813ca62 | 2019-01-11 14:47:39 +0000 | [diff] [blame] | 74 | LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/permissions |
| 75 | LOCAL_PRODUCT_MODULE := true |
Michael Bestas | bda9013 | 2020-05-06 20:46:17 +0300 | [diff] [blame] | 76 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 77 | include $(BUILD_PREBUILT) |
| 78 | |
| 79 | include $(CLEAR_VARS) |
Joey Rizzoli | 5b7dae2 | 2017-12-15 17:13:21 +0100 | [diff] [blame] | 80 | |
| 81 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES += \ |
Luca Stefani | f86cde6 | 2018-12-25 12:32:21 +0100 | [diff] [blame] | 82 | 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 Rizzoli | 5b7dae2 | 2017-12-15 17:13:21 +0100 | [diff] [blame] | 85 | |
| 86 | include $(BUILD_MULTI_PREBUILT) |
| 87 | |
Leena Winterrowd | 6c0e99e | 2014-08-21 15:19:33 -0700 | [diff] [blame] | 88 | include $(call all-makefiles-under, $(LOCAL_PATH)) |