blob: a197ed0507b4aafac05285d0009aae42cea0b76a [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)
weijiew21a4a7c2017-03-17 15:04:06 +080017LOCAL_SRC_FILES += $(call all-java-files-under, src_wrapper)
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010018LOCAL_SRC_FILES += $(call all-java-files-under, quickReader/src)
Jack Yooa02710a2016-04-06 16:07:22 -070019LOCAL_SRC_FILES += $(call all-renderscript-files-under, rs)
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070020
21LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010022LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/quickReader/res
zhuw9c8110f2018-08-07 10:38:26 +080023LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070024
Sascha Haeberling30239932013-08-28 14:51:53 -070025include $(LOCAL_PATH)/version.mk
26LOCAL_AAPT_FLAGS := \
27 --auto-add-overlay \
28 --version-name "$(version_name_package)" \
29 --version-code $(version_code_package) \
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010030 --extra-packages me.dm7.barcodescanner.core \
31 --extra-packages me.dm7.barcodescanner.zxing
32
33LOCAL_STATIC_JAVA_AAR_LIBRARIES += \
34 qreader-core \
35 qreader-zxing
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070036
Alexander Martinz68f9b092020-04-23 14:06:24 +020037LOCAL_JAVA_LIBRARIES := com.shiftos.platform.internal
Michael Bestase2067a82013-11-05 16:43:50 +020038
Alexander Martinz68f9b092020-04-23 14:06:24 +020039LOCAL_PACKAGE_NAME := SnapdragonCamera
Jack Yoo382e2cb2016-07-13 12:56:36 -070040LOCAL_PRIVILEGED_MODULE := true
codeworkxe303fd52018-08-22 14:24:30 +020041LOCAL_PRIVATE_PLATFORM_APIS := true
42LOCAL_CERTIFICATE := platform
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070043
Alexander Martinz68f9b092020-04-23 14:06:24 +020044#LOCAL_AAPT_FLAGS += --rename-manifest-package com.shiftos.snap
Michael Bestas6423d742015-08-29 01:00:36 +030045
Alok Kediyaaed65252013-09-23 14:31:42 +053046#LOCAL_SDK_VERSION := current
Jack Yooa02710a2016-04-06 16:07:22 -070047LOCAL_RENDERSCRIPT_TARGET_API := 23
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070048
Alexander Martinz68f9b092020-04-23 14:06:24 +020049LOCAL_OVERRIDES_PACKAGES := Camera2 Snap
Sai Kumar Sanagavarapu99670f22014-12-01 10:15:54 +053050
Anton Hansson813ca622019-01-11 14:47:39 +000051LOCAL_PRODUCT_MODULE := true
52
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070053LOCAL_PROGUARD_FLAG_FILES := proguard.flags
54
Leena Winterrowd7e199552014-08-13 12:00:39 -070055# If this is an unbundled build (to install separately) then include
Angus Konged15d1a2013-08-19 15:06:12 -070056# the libraries in the APK, otherwise just put them in /system/lib and
57# leave them out of the APK
junjiezcfdc8742017-09-22 13:44:33 +080058
Alexander Martinz16e6c3e2021-04-07 21:02:57 +020059# only include jni libraries on user builds to allow easier development
60ifeq ($(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 wang1f2a3dd2018-03-16 17:27:59 +080066endif
Alexander Martinz68f9b092020-04-23 14:06:24 +020067LOCAL_REQUIRED_MODULES += privapp_whitelist_org.codeaurora.snapcam.xml
Michael Bestasbda90132020-05-06 20:46:17 +030068
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070069include $(BUILD_PACKAGE)
70
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010071include $(CLEAR_VARS)
Alexander Martinz68f9b092020-04-23 14:06:24 +020072LOCAL_MODULE := privapp_whitelist_org.codeaurora.snapcam.xml
Michael Bestasbda90132020-05-06 20:46:17 +030073LOCAL_MODULE_CLASS := ETC
74LOCAL_MODULE_TAGS := optional
Anton Hansson813ca622019-01-11 14:47:39 +000075LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/permissions
76LOCAL_PRODUCT_MODULE := true
Michael Bestasbda90132020-05-06 20:46:17 +030077LOCAL_SRC_FILES := $(LOCAL_MODULE)
78include $(BUILD_PREBUILT)
79
80include $(CLEAR_VARS)
Joey Rizzoli5b7dae22017-12-15 17:13:21 +010081
82LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES += \
Luca Stefanif86cde62018-12-25 12:32:21 +010083 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 Rizzoli5b7dae22017-12-15 17:13:21 +010086
87include $(BUILD_MULTI_PREBUILT)
88
Leena Winterrowd6c0e99e2014-08-21 15:19:33 -070089include $(call all-makefiles-under, $(LOCAL_PATH))