blob: 9643f324f6aaa1559336ddb3f163ae99a36f5f04 [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 Hines79f43352013-05-28 17:52:03 -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
Bart Searsec6034e2012-09-28 10:40:05 -070034# 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
37ifneq (,$(TARGET_BUILD_APPS))
Tim Murraya6405162013-02-04 13:09:27 -080038 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters librsjni
Bart Searsec6034e2012-09-28 10:40:05 -070039else
Tim Murray33f2a882013-05-13 15:47:58 -070040 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
Bart Searsec6034e2012-09-28 10:40:05 -070041endif
Owen Linf9a0a432011-08-17 22:07:43 +080042
43LOCAL_PROGUARD_FLAG_FILES := proguard.flags
44
45include $(BUILD_PACKAGE)
46
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070047include $(call all-makefiles-under, jni)
48
Chih-Chung Chang63764782012-03-08 20:10:53 +080049ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
Chih-Chung Chang63764782012-03-08 20:10:53 +080050
Michael Kolb25668cd2013-01-29 10:33:22 -080051# Use the following include to make gallery test apk and the mosaic library
52include $(call all-makefiles-under, $(LOCAL_PATH))
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070053
Chih-Chung Chang63764782012-03-08 20:10:53 +080054endif