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 | |
| 7 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13 |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 8 | LOCAL_STATIC_JAVA_LIBRARIES += com.android.gallery3d.common2 |
Sascha Haeberling | 7a5dedf | 2012-10-23 13:38:52 -0700 | [diff] [blame] | 9 | LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 10 | LOCAL_STATIC_JAVA_LIBRARIES += mp4parser |
Stephen Hines | 79f4335 | 2013-05-28 17:52:03 -0700 | [diff] [blame] | 11 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v8-renderscript |
Tim Murray | a640516 | 2013-02-04 13:09:27 -0800 | [diff] [blame] | 12 | |
| 13 | LOCAL_RENDERSCRIPT_TARGET_API := 18 |
| 14 | LOCAL_RENDERSCRIPT_COMPATIBILITY := 18 |
| 15 | LOCAL_RENDERSCRIPT_FLAGS := -rs-package-name=android.support.v8.renderscript |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 16 | |
Stephen Hines | 52fa646 | 2013-02-07 18:41:27 -0800 | [diff] [blame] | 17 | # Keep track of previously compiled RS files too (from bundled GalleryGoogle). |
| 18 | prev_compiled_rs_files := $(call all-renderscript-files-under, src) |
| 19 | |
| 20 | # We already have these files from GalleryGoogle, so don't install them. |
| 21 | LOCAL_RENDERSCRIPT_SKIP_INSTALL := $(prev_compiled_rs_files) |
| 22 | |
| 23 | 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] | 24 | LOCAL_SRC_FILES += $(call all-java-files-under, src_pd) |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 25 | |
Michael Kolb | 8af7bb6 | 2013-01-29 14:03:06 -0800 | [diff] [blame] | 26 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 27 | |
John Reck | a3dc2c0 | 2013-02-15 15:51:30 -0800 | [diff] [blame] | 28 | LOCAL_AAPT_FLAGS := --auto-add-overlay |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 29 | |
| 30 | LOCAL_PACKAGE_NAME := Gallery2 |
| 31 | |
| 32 | LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D |
| 33 | |
Bart Sears | ec6034e | 2012-09-28 10:40:05 -0700 | [diff] [blame] | 34 | # If this is an unbundled build (to install seprately) then include |
| 35 | # the libraries in the APK, otherwise just put them in /system/lib and |
| 36 | # leave them out of the APK |
| 37 | ifneq (,$(TARGET_BUILD_APPS)) |
Tim Murray | a640516 | 2013-02-04 13:09:27 -0800 | [diff] [blame] | 38 | LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters librsjni |
Bart Sears | ec6034e | 2012-09-28 10:40:05 -0700 | [diff] [blame] | 39 | else |
Tim Murray | 33f2a88 | 2013-05-13 15:47:58 -0700 | [diff] [blame] | 40 | LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters |
Bart Sears | ec6034e | 2012-09-28 10:40:05 -0700 | [diff] [blame] | 41 | endif |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 42 | |
| 43 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 44 | |
| 45 | include $(BUILD_PACKAGE) |
| 46 | |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 47 | include $(call all-makefiles-under, jni) |
| 48 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 49 | ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),) |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 50 | |
Michael Kolb | 25668cd | 2013-01-29 10:33:22 -0800 | [diff] [blame] | 51 | # Use the following include to make gallery test apk and the mosaic library |
| 52 | include $(call all-makefiles-under, $(LOCAL_PATH)) |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 53 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 54 | endif |