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