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) |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 14 | LOCAL_SRC_FILES += $(call all-java-files-under, ../Camera/src) |
| 15 | |
Stephen Hines | 2406343 | 2013-01-23 18:38:42 +0000 | [diff] [blame] | 16 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 17 | LOCAL_RESOURCE_DIR += packages/apps/Camera/res |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 18 | |
| 19 | LOCAL_AAPT_FLAGS := --auto-add-overlay \ |
John Reck | 2abaaf7 | 2012-12-12 13:43:43 -0800 | [diff] [blame] | 20 | --extra-packages com.android.camera |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 21 | |
| 22 | LOCAL_PACKAGE_NAME := Gallery2 |
| 23 | |
| 24 | LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D |
| 25 | |
Wu-cheng Li | 9b67237 | 2012-10-07 03:29:50 +0800 | [diff] [blame] | 26 | LOCAL_SDK_VERSION := current |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 27 | |
Bart Sears | ec6034e | 2012-09-28 10:40:05 -0700 | [diff] [blame] | 28 | # 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 |
| 31 | ifneq (,$(TARGET_BUILD_APPS)) |
Stephen Hines | 2406343 | 2013-01-23 18:38:42 +0000 | [diff] [blame] | 32 | LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters |
Bart Sears | ec6034e | 2012-09-28 10:40:05 -0700 | [diff] [blame] | 33 | else |
Stephen Hines | 2406343 | 2013-01-23 18:38:42 +0000 | [diff] [blame] | 34 | LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters |
Bart Sears | ec6034e | 2012-09-28 10:40:05 -0700 | [diff] [blame] | 35 | endif |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 36 | |
| 37 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 38 | |
| 39 | include $(BUILD_PACKAGE) |
| 40 | |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 41 | include $(call all-makefiles-under, jni) |
| 42 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 43 | ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),) |
| 44 | # Use the following include to make gallery test apk. |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 45 | include $(call all-makefiles-under, $(LOCAL_PATH)) |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 46 | |
| 47 | # Use the following include to make camera test apk. |
| 48 | include $(call all-makefiles-under, ../Camera) |
Ruei-sung Lin | e5c8ed7 | 2012-05-31 11:59:31 -0700 | [diff] [blame] | 49 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 50 | endif |