1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_TAGS := optional 6 7LOCAL_STATIC_ANDROID_LIBRARIES := \ 8 androidx.fragment_fragment \ 9 androidx.legacy_legacy-support-core-ui \ 10 androidx.core_core \ 11 androidx.legacy_legacy-support-v13 12 13LOCAL_STATIC_JAVA_LIBRARIES := \ 14 com.android.gallery3d.common2 \ 15 xmp_toolkit \ 16 mp4parser 17 18LOCAL_SRC_FILES := \ 19 $(call all-java-files-under, src) \ 20 $(call all-renderscript-files-under, src) \ 21 $(call all-java-files-under, src_pd) 22 23LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res 24 25LOCAL_USE_AAPT2 := true 26 27LOCAL_PACKAGE_NAME := Gallery2 28 29LOCAL_OVERRIDES_PACKAGES := Gallery Gallery3D GalleryNew3D 30 31LOCAL_SDK_VERSION := current 32 33LOCAL_JNI_SHARED_LIBRARIES := \ 34 libjni_eglfence \ 35 libjni_filtershow_filters \ 36 libjni_jpegstream 37 38LOCAL_PROGUARD_FLAG_FILES := proguard.flags 39 40LOCAL_JAVA_LIBRARIES += org.apache.http.legacy 41 42LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt 43 44include $(BUILD_PACKAGE) 45 46ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),) 47 48# Use the following include to make gallery test apk 49include $(call all-makefiles-under, $(LOCAL_PATH)) 50 51endif 52