OSDN Git Service

Improve display of ActionBar album mode switcher
[android-x86/packages-apps-Gallery2.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 include $(CLEAR_VARS)
4
5 LOCAL_MODULE_TAGS := optional
6
7 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
8 LOCAL_STATIC_JAVA_LIBRARIES += com.android.gallery3d.common2
9 LOCAL_STATIC_JAVA_LIBRARIES += mp4parser
10
11 LOCAL_SRC_FILES := $(call all-java-files-under, src)
12 LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
13 LOCAL_SRC_FILES += $(call all-java-files-under, actionbarsherlock/src)
14 LOCAL_SRC_FILES += $(call all-java-files-under, ../Camera/src)
15
16 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res 
17 LOCAL_RESOURCE_DIR += packages/apps/Camera/res
18 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/actionbarsherlock/res
19
20 LOCAL_AAPT_FLAGS := --auto-add-overlay \
21     --extra-packages com.android.camera:com.actionbarsherlock
22
23 LOCAL_PACKAGE_NAME := Gallery2
24
25 LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D
26
27 LOCAL_SDK_VERSION := 16
28
29 # If this is an unbundled build (to install seprately) then include
30 # the libraries in the APK, otherwise just put them in /system/lib and
31 # leave them out of the APK
32 ifneq (,$(TARGET_BUILD_APPS))
33   LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
34 else
35   LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
36 endif
37
38 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
39
40 include $(BUILD_PACKAGE)
41
42 include $(call all-makefiles-under, jni)
43
44 ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
45 # Use the following include to make gallery test apk.
46 include $(call all-makefiles-under, $(LOCAL_PATH))
47
48 # Use the following include to make camera test apk.
49 include $(call all-makefiles-under, ../Camera)
50
51 endif