1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_TAGS := optional 6 7LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13 8LOCAL_STATIC_JAVA_LIBRARIES += com.android.gallery3d.common2 9LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit 10LOCAL_STATIC_JAVA_LIBRARIES += mp4parser 11 12LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src) 13LOCAL_SRC_FILES += $(call all-java-files-under, src_pd) 14LOCAL_SRC_FILES += $(call all-java-files-under, ../Camera/src) 15 16LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res 17LOCAL_RESOURCE_DIR += packages/apps/Camera/res 18 19LOCAL_AAPT_FLAGS := --auto-add-overlay \ 20 --extra-packages com.android.camera 21 22LOCAL_PACKAGE_NAME := Gallery2 23 24LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D 25 26LOCAL_SDK_VERSION := current 27 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 31ifneq (,$(TARGET_BUILD_APPS)) 32 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters 33else 34 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters 35endif 36 37LOCAL_PROGUARD_FLAG_FILES := proguard.flags 38 39include $(BUILD_PACKAGE) 40 41include $(call all-makefiles-under, jni) 42 43ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),) 44# Use the following include to make gallery test apk. 45include $(call all-makefiles-under, $(LOCAL_PATH)) 46 47# Use the following include to make camera test apk. 48include $(call all-makefiles-under, ../Camera) 49 50endif 51