Android.mk revision 6ce9b9f0f18363eeb15d07e3b5aefa4273c345fa
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 11LOCAL_STATIC_JAVA_LIBRARIES += android-support-v8-renderscript 12 13LOCAL_RENDERSCRIPT_TARGET_API := 18 14LOCAL_RENDERSCRIPT_COMPATIBILITY := 18 15LOCAL_RENDERSCRIPT_FLAGS := -rs-package-name=android.support.v8.renderscript 16 17# Keep track of previously compiled RS files too (from bundled GalleryGoogle). 18prev_compiled_rs_files := $(call all-renderscript-files-under, src) 19 20# We already have these files from GalleryGoogle, so don't install them. 21LOCAL_RENDERSCRIPT_SKIP_INSTALL := $(prev_compiled_rs_files) 22 23LOCAL_SRC_FILES := $(call all-java-files-under, src) $(prev_compiled_rs_files) 24LOCAL_SRC_FILES += $(call all-java-files-under, src_pd) 25 26LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res 27 28LOCAL_AAPT_FLAGS := --auto-add-overlay 29 30LOCAL_PACKAGE_NAME := Gallery2 31 32LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D 33 34LOCAL_SDK_VERSION := current 35 36# If this is an unbundled build (to install seprately) then include 37# the libraries in the APK, otherwise just put them in /system/lib and 38# leave them out of the APK 39ifneq (,$(TARGET_BUILD_APPS)) 40 LOCAL_JNI_SHARED_LIBRARIES := libjni_mosaic libjni_eglfence libjni_filtershow_filters librsjni 41else 42 LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_eglfence libjni_filtershow_filters 43endif 44 45LOCAL_PROGUARD_FLAG_FILES := proguard.flags 46 47include $(BUILD_PACKAGE) 48 49include $(call all-makefiles-under, jni) 50 51ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),) 52 53# Use the following include to make gallery test apk and the mosaic library 54include $(call all-makefiles-under, $(LOCAL_PATH)) 55 56endif 57