Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 2 | |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE_TAGS := optional |
| 6 | |
| 7 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13 |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 8 | LOCAL_STATIC_JAVA_LIBRARIES += com.android.gallery3d.common2 |
Sascha Haeberling | 7a5dedf | 2012-10-23 13:38:52 -0700 | [diff] [blame] | 9 | LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 10 | LOCAL_STATIC_JAVA_LIBRARIES += mp4parser |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 11 | |
nicolasroard | 5448bf8 | 2012-10-02 21:57:22 -0700 | [diff] [blame] | 12 | LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src) |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 13 | LOCAL_SRC_FILES += $(call all-java-files-under, src_pd) |
John Reck | 3721529 | 2012-10-30 17:34:20 -0700 | [diff] [blame] | 14 | LOCAL_SRC_FILES += $(call all-java-files-under, actionbarsherlock/src) |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 15 | LOCAL_SRC_FILES += $(call all-java-files-under, ../Camera/src) |
| 16 | |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 17 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res |
| 18 | LOCAL_RESOURCE_DIR += packages/apps/Camera/res |
John Reck | 3721529 | 2012-10-30 17:34:20 -0700 | [diff] [blame] | 19 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/actionbarsherlock/res |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 20 | |
| 21 | LOCAL_AAPT_FLAGS := --auto-add-overlay \ |
John Reck | 3721529 | 2012-10-30 17:34:20 -0700 | [diff] [blame] | 22 | --extra-packages com.android.camera:com.actionbarsherlock |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 23 | |
| 24 | LOCAL_PACKAGE_NAME := Gallery2 |
| 25 | |
| 26 | LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D |
| 27 | |
Wu-cheng Li | 9b67237 | 2012-10-07 03:29:50 +0800 | [diff] [blame] | 28 | LOCAL_SDK_VERSION := current |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 29 | |
Bart Sears | ec6034e | 2012-09-28 10:40:05 -0700 | [diff] [blame] | 30 | # If this is an unbundled build (to install seprately) then include |
| 31 | # the libraries in the APK, otherwise just put them in /system/lib and |
| 32 | # leave them out of the APK |
| 33 | ifneq (,$(TARGET_BUILD_APPS)) |
| 34 | LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters |
| 35 | else |
| 36 | LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters |
| 37 | endif |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 38 | |
| 39 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 40 | |
| 41 | include $(BUILD_PACKAGE) |
| 42 | |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 43 | include $(call all-makefiles-under, jni) |
| 44 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 45 | ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),) |
| 46 | # Use the following include to make gallery test apk. |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 47 | include $(call all-makefiles-under, $(LOCAL_PATH)) |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 48 | |
| 49 | # Use the following include to make camera test apk. |
| 50 | include $(call all-makefiles-under, ../Camera) |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 51 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 52 | endif |