blob: a5efe5500a6e5686a7be5c40205c265030413a28 [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 +080014LOCAL_SRC_FILES += $(call all-java-files-under, ../Camera/src)
15
Stephen Hines24063432013-01-23 18:38:42 +000016LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
Owen Lin8a861a02012-08-24 15:09:42 +080017LOCAL_RESOURCE_DIR += packages/apps/Camera/res
Owen Lin8a861a02012-08-24 15:09:42 +080018
19LOCAL_AAPT_FLAGS := --auto-add-overlay \
John Reck2abaaf72012-12-12 13:43:43 -080020 --extra-packages com.android.camera
Owen Linf9a0a432011-08-17 22:07:43 +080021
22LOCAL_PACKAGE_NAME := Gallery2
23
24LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D
25
Wu-cheng Li9b672372012-10-07 03:29:50 +080026LOCAL_SDK_VERSION := current
Chih-Chung Chang63764782012-03-08 20:10:53 +080027
Bart Searsec6034e2012-09-28 10:40:05 -070028# If this is an unbundled build (to install seprately) then include
29# the libraries in the APK, otherwise just put them in /system/lib and
30# leave them out of the APK
31ifneq (,$(TARGET_BUILD_APPS))
Stephen Hines24063432013-01-23 18:38:42 +000032 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
Bart Searsec6034e2012-09-28 10:40:05 -070033else
Stephen Hines24063432013-01-23 18:38:42 +000034 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
Bart Searsec6034e2012-09-28 10:40:05 -070035endif
Owen Linf9a0a432011-08-17 22:07:43 +080036
37LOCAL_PROGUARD_FLAG_FILES := proguard.flags
38
39include $(BUILD_PACKAGE)
40
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070041include $(call all-makefiles-under, jni)
42
Chih-Chung Chang63764782012-03-08 20:10:53 +080043ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
44# Use the following include to make gallery test apk.
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070045include $(call all-makefiles-under, $(LOCAL_PATH))
Chih-Chung Chang63764782012-03-08 20:10:53 +080046
47# Use the following include to make camera test apk.
48include $(call all-makefiles-under, ../Camera)
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070049
Chih-Chung Chang63764782012-03-08 20:10:53 +080050endif