blob: 8b131834be740a3567eb6653f92c1f258074160e [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
Owen Linf9a0a432011-08-17 22:07:43 +080011
nicolasroard5448bf82012-10-02 21:57:22 -070012LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src)
Owen Linf9a0a432011-08-17 22:07:43 +080013LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
Chih-Chung Chang63764782012-03-08 20:10:53 +080014
Michael Kolb8af7bb62013-01-29 14:03:06 -080015LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
Owen Lin8a861a02012-08-24 15:09:42 +080016
17LOCAL_AAPT_FLAGS := --auto-add-overlay \
John Reck2abaaf72012-12-12 13:43:43 -080018 --extra-packages com.android.camera
Owen Linf9a0a432011-08-17 22:07:43 +080019
20LOCAL_PACKAGE_NAME := Gallery2
21
22LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D
23
Wu-cheng Li9b672372012-10-07 03:29:50 +080024LOCAL_SDK_VERSION := current
Chih-Chung Chang63764782012-03-08 20:10:53 +080025
Bart Searsec6034e2012-09-28 10:40:05 -070026# If this is an unbundled build (to install seprately) then include
27# the libraries in the APK, otherwise just put them in /system/lib and
28# leave them out of the APK
29ifneq (,$(TARGET_BUILD_APPS))
Stephen Hines24063432013-01-23 18:38:42 +000030 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
Bart Searsec6034e2012-09-28 10:40:05 -070031else
Stephen Hines24063432013-01-23 18:38:42 +000032 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
Bart Searsec6034e2012-09-28 10:40:05 -070033endif
Owen Linf9a0a432011-08-17 22:07:43 +080034
35LOCAL_PROGUARD_FLAG_FILES := proguard.flags
36
37include $(BUILD_PACKAGE)
38
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070039include $(call all-makefiles-under, jni)
40
Chih-Chung Chang63764782012-03-08 20:10:53 +080041ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
Chih-Chung Chang63764782012-03-08 20:10:53 +080042
Michael Kolb25668cd2013-01-29 10:33:22 -080043# Use the following include to make gallery test apk and the mosaic library
44include $(call all-makefiles-under, $(LOCAL_PATH))
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070045
Chih-Chung Chang63764782012-03-08 20:10:53 +080046endif