blob: f4a09e8351316639add176ab7e4039002a0ffcf0 [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
Tim Murraya6405162013-02-04 13:09:27 -080011LOCAL_STATIC_JAVA_LIBRARIES += android.support.v8.renderscript
12
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
28LOCAL_AAPT_FLAGS := --auto-add-overlay \
John Reck2abaaf72012-12-12 13:43:43 -080029 --extra-packages com.android.camera
Owen Linf9a0a432011-08-17 22:07:43 +080030
31LOCAL_PACKAGE_NAME := Gallery2
32
33LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D
34
Wu-cheng Li9b672372012-10-07 03:29:50 +080035LOCAL_SDK_VERSION := current
Chih-Chung Chang63764782012-03-08 20:10:53 +080036
Bart Searsec6034e2012-09-28 10:40:05 -070037# If this is an unbundled build (to install seprately) then include
38# the libraries in the APK, otherwise just put them in /system/lib and
39# leave them out of the APK
40ifneq (,$(TARGET_BUILD_APPS))
Tim Murraya6405162013-02-04 13:09:27 -080041 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters librsjni
Bart Searsec6034e2012-09-28 10:40:05 -070042else
Tim Murraya6405162013-02-04 13:09:27 -080043 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters librsjni
Bart Searsec6034e2012-09-28 10:40:05 -070044endif
Owen Linf9a0a432011-08-17 22:07:43 +080045
46LOCAL_PROGUARD_FLAG_FILES := proguard.flags
47
48include $(BUILD_PACKAGE)
49
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070050include $(call all-makefiles-under, jni)
51
Chih-Chung Chang63764782012-03-08 20:10:53 +080052ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
Chih-Chung Chang63764782012-03-08 20:10:53 +080053
Michael Kolb25668cd2013-01-29 10:33:22 -080054# Use the following include to make gallery test apk and the mosaic library
55include $(call all-makefiles-under, $(LOCAL_PATH))
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070056
Chih-Chung Chang63764782012-03-08 20:10:53 +080057endif