blob: c17ee04214ded88aed0033511cfd07db9610cf5e [file] [log] [blame]
Owen Linf9a0a432011-08-17 22:07:43 +08001LOCAL_PATH:= $(call my-dir)
Ruei-sung Line5c8ed72012-05-31 11:59:31 -07002
Owen Linf9a0a432011-08-17 22:07:43 +08003include $(CLEAR_VARS)
4
5LOCAL_MODULE_TAGS := optional
6
7LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
Teng-Hui Zhu15ff1b12012-09-23 15:02:56 -07008LOCAL_STATIC_JAVA_LIBRARIES += com.android.gallery3d.common2
Sascha Haeberling7a5dedf2012-10-23 13:38:52 -07009LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit
Teng-Hui Zhu15ff1b12012-09-23 15:02:56 -070010LOCAL_STATIC_JAVA_LIBRARIES += mp4parser
Stephen Hines6ce9b9f2013-05-29 11:33:16 -070011LOCAL_STATIC_JAVA_LIBRARIES += android-support-v8-renderscript
Tim Murraya6405162013-02-04 13:09:27 -080012
13LOCAL_RENDERSCRIPT_TARGET_API := 18
14LOCAL_RENDERSCRIPT_COMPATIBILITY := 18
15LOCAL_RENDERSCRIPT_FLAGS := -rs-package-name=android.support.v8.renderscript
Owen Linf9a0a432011-08-17 22:07:43 +080016
Stephen Hines52fa6462013-02-07 18:41:27 -080017# Keep track of previously compiled RS files too (from bundled GalleryGoogle).
18prev_compiled_rs_files := $(call all-renderscript-files-under, src)
19
20# We already have these files from GalleryGoogle, so don't install them.
21LOCAL_RENDERSCRIPT_SKIP_INSTALL := $(prev_compiled_rs_files)
22
23LOCAL_SRC_FILES := $(call all-java-files-under, src) $(prev_compiled_rs_files)
Owen Linf9a0a432011-08-17 22:07:43 +080024LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
Chih-Chung Chang63764782012-03-08 20:10:53 +080025
Michael Kolb8af7bb62013-01-29 14:03:06 -080026LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
Owen Lin8a861a02012-08-24 15:09:42 +080027
John Recka3dc2c02013-02-15 15:51:30 -080028LOCAL_AAPT_FLAGS := --auto-add-overlay
Owen Linf9a0a432011-08-17 22:07:43 +080029
30LOCAL_PACKAGE_NAME := Gallery2
31
32LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D
33
Wu-cheng Li9b672372012-10-07 03:29:50 +080034LOCAL_SDK_VERSION := current
Chih-Chung Chang63764782012-03-08 20:10:53 +080035
Bart Searsec6034e2012-09-28 10:40:05 -070036# If this is an unbundled build (to install seprately) then include
37# the libraries in the APK, otherwise just put them in /system/lib and
38# leave them out of the APK
39ifneq (,$(TARGET_BUILD_APPS))
Tim Murraya6405162013-02-04 13:09:27 -080040 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters librsjni
Bart Searsec6034e2012-09-28 10:40:05 -070041else
Tim Murray33f2a882013-05-13 15:47:58 -070042 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
Bart Searsec6034e2012-09-28 10:40:05 -070043endif
Owen Linf9a0a432011-08-17 22:07:43 +080044
45LOCAL_PROGUARD_FLAG_FILES := proguard.flags
46
47include $(BUILD_PACKAGE)
48
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070049include $(call all-makefiles-under, jni)
50
Chih-Chung Chang63764782012-03-08 20:10:53 +080051ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
Chih-Chung Chang63764782012-03-08 20:10:53 +080052
Michael Kolb25668cd2013-01-29 10:33:22 -080053# Use the following include to make gallery test apk and the mosaic library
54include $(call all-makefiles-under, $(LOCAL_PATH))
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070055
Chih-Chung Chang63764782012-03-08 20:10:53 +080056endif