blob: ea71b3958fe9795b5158abd5aef3db1c10aa18a6 [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
8LOCAL_STATIC_JAVA_LIBRARIES += com.android.gallery3d.common2
9
10LOCAL_SRC_FILES := $(call all-java-files-under, src)
11LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
Chih-Chung Chang63764782012-03-08 20:10:53 +080012LOCAL_SRC_FILES += $(call all-java-files-under, ../Camera/src)
13
14LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res packages/apps/Camera/res
15LOCAL_AAPT_FLAGS := --auto-add-overlay --extra-packages com.android.camera
Owen Linf9a0a432011-08-17 22:07:43 +080016
17LOCAL_PACKAGE_NAME := Gallery2
18
19LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D
20
Chih-Chung Chang63764782012-03-08 20:10:53 +080021#LOCAL_SDK_VERSION := current
22
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070023LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence
Chih-Chung Chang63764782012-03-08 20:10:53 +080024
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070025LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence
Owen Linf9a0a432011-08-17 22:07:43 +080026
27LOCAL_PROGUARD_FLAG_FILES := proguard.flags
28
29include $(BUILD_PACKAGE)
30
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070031include $(call all-makefiles-under, jni)
32
Chih-Chung Chang63764782012-03-08 20:10:53 +080033ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
34# Use the following include to make gallery test apk.
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070035include $(call all-makefiles-under, $(LOCAL_PATH))
Chih-Chung Chang63764782012-03-08 20:10:53 +080036
37# Use the following include to make camera test apk.
38include $(call all-makefiles-under, ../Camera)
Ruei-sung Line5c8ed72012-05-31 11:59:31 -070039
Chih-Chung Chang63764782012-03-08 20:10:53 +080040endif