Android.mk 1.65 KB
Newer Older
Owen Lin's avatar
Owen Lin committed
1
LOCAL_PATH:= $(call my-dir)
2

Owen Lin's avatar
Owen Lin committed
3 4 5 6 7
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
8
LOCAL_STATIC_JAVA_LIBRARIES += com.android.gallery3d.common2
9
LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit
10
LOCAL_STATIC_JAVA_LIBRARIES += mp4parser
Owen Lin's avatar
Owen Lin committed
11

nicolasroard's avatar
nicolasroard committed
12
LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src)
Owen Lin's avatar
Owen Lin committed
13
LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
John Reck's avatar
John Reck committed
14
LOCAL_SRC_FILES += $(call all-java-files-under, actionbarsherlock/src)
15 16
LOCAL_SRC_FILES += $(call all-java-files-under, ../Camera/src)

17 18
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res 
LOCAL_RESOURCE_DIR += packages/apps/Camera/res
John Reck's avatar
John Reck committed
19
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/actionbarsherlock/res
20 21

LOCAL_AAPT_FLAGS := --auto-add-overlay \
John Reck's avatar
John Reck committed
22
    --extra-packages com.android.camera:com.actionbarsherlock
Owen Lin's avatar
Owen Lin committed
23 24 25 26 27

LOCAL_PACKAGE_NAME := Gallery2

LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D

28
LOCAL_SDK_VERSION := current
29

30 31 32 33 34 35 36 37
# If this is an unbundled build (to install seprately) then include
# the libraries in the APK, otherwise just put them in /system/lib and
# leave them out of the APK
ifneq (,$(TARGET_BUILD_APPS))
  LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
else
  LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters
endif
Owen Lin's avatar
Owen Lin committed
38 39 40 41 42

LOCAL_PROGUARD_FLAG_FILES := proguard.flags

include $(BUILD_PACKAGE)

43 44
include $(call all-makefiles-under, jni)

45 46
ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
# Use the following include to make gallery test apk.
47
include $(call all-makefiles-under, $(LOCAL_PATH))
48 49 50

# Use the following include to make camera test apk.
include $(call all-makefiles-under, ../Camera)
51

52
endif