1 LOCAL_PATH:= $(call my-dir)
5 LOCAL_MODULE_TAGS := optional
7 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
11 LOCAL_STATIC_JAVA_LIBRARIES += android.support.v8.renderscript
13 LOCAL_RENDERSCRIPT_TARGET_API := 18
14 LOCAL_RENDERSCRIPT_COMPATIBILITY := 18
15 LOCAL_RENDERSCRIPT_FLAGS := -rs-package-name=android.support.v8.renderscript
17 LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src)
18 LOCAL_SRC_FILES += $(call all-java-files-under, src_pd)
19 LOCAL_SRC_FILES += $(call all-java-files-under, ../Camera/src)
21 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
22 LOCAL_RESOURCE_DIR += packages/apps/Camera/res
24 LOCAL_AAPT_FLAGS := --auto-add-overlay \
25 --extra-packages com.android.camera
27 LOCAL_PACKAGE_NAME := Gallery2
29 LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D
31 LOCAL_SDK_VERSION := current
33 # If this is an unbundled build (to install seprately) then include
34 # the libraries in the APK, otherwise just put them in /system/lib and
35 # leave them out of the APK
36 ifneq (,$(TARGET_BUILD_APPS))
37 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters librsjni
39 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters librsjni
42 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
44 include $(BUILD_PACKAGE)
46 include $(call all-makefiles-under, jni)
48 ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
49 # Use the following include to make gallery test apk.
50 include $(call all-makefiles-under, $(LOCAL_PATH))
52 # Use the following include to make camera test apk.
53 include $(call all-makefiles-under, ../Camera)