Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 2 | |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE_TAGS := optional |
| 6 | |
Likai Ding | d42e6dc | 2013-08-19 16:33:24 +0800 | [diff] [blame] | 7 | LOCAL_JAVA_LIBRARIES := telephony-common |
| 8 | |
Alan Viverette | 4dbb89d | 2017-05-09 15:46:16 -0400 | [diff] [blame] | 9 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 10 | android-support-v4 \ |
| 11 | android-support-v13 |
Likai Ding | c83b5b7 | 2016-05-25 14:48:41 +0800 | [diff] [blame] | 12 | LOCAL_STATIC_JAVA_LIBRARIES += org.codeaurora.gallery.common |
Sascha Haeberling | 7a5dedf | 2012-10-23 13:38:52 -0700 | [diff] [blame] | 13 | LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 14 | LOCAL_STATIC_JAVA_LIBRARIES += mp4parser |
Anand Chaudhari | 922a2fa | 2015-09-23 18:01:06 +0530 | [diff] [blame] | 15 | #LOCAL_STATIC_JAVA_LIBRARIES += android-support-v8-renderscript |
junjiez | c6d1b33 | 2018-09-10 15:34:32 +0800 | [diff] [blame] | 16 | LOCAL_STATIC_JAVA_LIBRARIES += androidx.heifwriter_heifwriter |
Tim Murray | a640516 | 2013-02-04 13:09:27 -0800 | [diff] [blame] | 17 | |
Abhishek Panjikar | 9775cc3 | 2015-11-06 17:30:50 +0530 | [diff] [blame] | 18 | #LOCAL_RENDERSCRIPT_TARGET_API := 18 |
Anand Chaudhari | 922a2fa | 2015-09-23 18:01:06 +0530 | [diff] [blame] | 19 | #LOCAL_RENDERSCRIPT_COMPATIBILITY := 18 |
| 20 | #LOCAL_RENDERSCRIPT_FLAGS := -rs-package-name=android.support.v8.renderscript |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 21 | |
Stephen Hines | 52fa646 | 2013-02-07 18:41:27 -0800 | [diff] [blame] | 22 | # Keep track of previously compiled RS files too (from bundled GalleryGoogle). |
| 23 | prev_compiled_rs_files := $(call all-renderscript-files-under, src) |
| 24 | |
Anand Chaudhari | 922a2fa | 2015-09-23 18:01:06 +0530 | [diff] [blame] | 25 | |
Stephen Hines | 52fa646 | 2013-02-07 18:41:27 -0800 | [diff] [blame] | 26 | # We already have these files from GalleryGoogle, so don't install them. |
| 27 | LOCAL_RENDERSCRIPT_SKIP_INSTALL := $(prev_compiled_rs_files) |
Anand Chaudhari | 922a2fa | 2015-09-23 18:01:06 +0530 | [diff] [blame] | 28 | # $(warning Anand Commend LOCAL_RENDERSCRIPT_SKIP_INSTALL is $(LOCAL_RENDERSCRIPT_SKIP_INSTALL)) |
Stephen Hines | 52fa646 | 2013-02-07 18:41:27 -0800 | [diff] [blame] | 29 | |
| 30 | LOCAL_SRC_FILES := $(call all-java-files-under, src) $(prev_compiled_rs_files) |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 31 | LOCAL_SRC_FILES += $(call all-java-files-under, src_pd) |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 32 | |
Anand Chaudhari | 922a2fa | 2015-09-23 18:01:06 +0530 | [diff] [blame] | 33 | # $(warning Anand Commend LOCAL_RENDERSCRIPT_SKIP_INSTALL is $(LOCAL_RENDERSCRIPT_SKIP_INSTALL)) |
| 34 | |
Alan Viverette | 76063e3 | 2017-04-27 15:16:37 -0400 | [diff] [blame] | 35 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res \ |
Colin Cross | 8ae4143 | 2017-09-25 13:40:55 -0700 | [diff] [blame] | 36 | $(LOCAL_PATH)/../../../frameworks/support/compat/res \ |
| 37 | $(LOCAL_PATH)/../../../frameworks/support/media-compat/res \ |
| 38 | $(LOCAL_PATH)/../../../frameworks/support/core-ui/res |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 39 | |
John Reck | a3dc2c0 | 2013-02-15 15:51:30 -0800 | [diff] [blame] | 40 | LOCAL_AAPT_FLAGS := --auto-add-overlay |
Colin Cross | 8ae4143 | 2017-09-25 13:40:55 -0700 | [diff] [blame] | 41 | LOCAL_AAPT_FLAGS += \ |
| 42 | --extra-packages android.support.compat \ |
| 43 | --extra-packages android.support.mediacompat \ |
| 44 | --extra-packages android.support.coreui \ |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 45 | |
Likai Ding | c83b5b7 | 2016-05-25 14:48:41 +0800 | [diff] [blame] | 46 | LOCAL_PACKAGE_NAME := SnapdragonGallery |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 47 | |
Chao Zhang | d22a160 | 2016-04-19 10:43:08 +0800 | [diff] [blame] | 48 | LOCAL_PRIVILEGED_MODULE := true |
| 49 | |
jinwu | ebfe113 | 2018-04-14 16:05:32 +0800 | [diff] [blame] | 50 | LOCAL_PRIVATE_PLATFORM_APIS:=true |
| 51 | |
Likai Ding | c83b5b7 | 2016-05-25 14:48:41 +0800 | [diff] [blame] | 52 | LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D Gallery2 |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 53 | |
jinwu | ebfe113 | 2018-04-14 16:05:32 +0800 | [diff] [blame] | 54 | #LOCAL_SDK_VERSION := current |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 55 | |
Likai Ding | 1417b18 | 2016-06-21 12:50:27 +0800 | [diff] [blame] | 56 | LOCAL_JNI_SHARED_LIBRARIES := libjni_gallery_eglfence libjni_gallery_filters libjni_gallery_jpegstream |
jinwu | 4fafa7a | 2017-04-07 13:27:48 +0800 | [diff] [blame] | 57 | LOCAL_SHARED_LIBRARIES += libjni_dualcamera libjni_trueportrait libjni_filtergenerator |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 58 | |
Jay Wang | 9c76a77 | 2016-01-27 16:47:50 -0800 | [diff] [blame] | 59 | LOCAL_REQUIRED_MODULES := libts_detected_face_jni libts_face_beautify_jni |
Zhang Zhenzhen | 38478f2 | 2015-03-10 16:40:13 +0800 | [diff] [blame] | 60 | |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 61 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 62 | |
Narayan Kamath | dd0ab3f | 2015-02-13 10:23:11 +0000 | [diff] [blame] | 63 | LOCAL_JAVA_LIBRARIES += org.apache.http.legacy |
Andreas Gampe | c9f714b | 2014-04-18 15:50:07 -0700 | [diff] [blame] | 64 | |
Jiyong Park | 935fb6e | 2018-04-05 16:12:39 +0900 | [diff] [blame] | 65 | LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt |
| 66 | |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 67 | include $(BUILD_PACKAGE) |
| 68 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 69 | ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),) |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 70 | |
Doris Liu | b7f4482 | 2013-06-20 18:32:26 -0700 | [diff] [blame] | 71 | # Use the following include to make gallery test apk |
Michael Kolb | 25668cd | 2013-01-29 10:33:22 -0800 | [diff] [blame] | 72 | include $(call all-makefiles-under, $(LOCAL_PATH)) |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 73 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 74 | endif |