1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_TAGS := optional 6 7LOCAL_STATIC_ANDROID_LIBRARIES := \ 8 androidx.legacy_legacy-support-v13 \ 9 androidx.legacy_legacy-support-v4 \ 10 androidx.core_core 11 12LOCAL_STATIC_JAVA_LIBRARIES := android-ex-camera2-portability 13LOCAL_STATIC_JAVA_LIBRARIES += xmp_toolkit 14LOCAL_STATIC_JAVA_LIBRARIES += glide 15LOCAL_STATIC_JAVA_LIBRARIES += guava 16LOCAL_STATIC_JAVA_LIBRARIES += jsr305 17 18LOCAL_USES_LIBRARIES := org.apache.http.legacy 19 20LOCAL_SRC_FILES := $(call all-java-files-under, src) 21LOCAL_SRC_FILES += $(call all-java-files-under, src_pd) 22LOCAL_SRC_FILES += $(call all-java-files-under, src_pd_gcam) 23 24LOCAL_RESOURCE_DIR += \ 25 $(LOCAL_PATH)/res \ 26 $(LOCAL_PATH)/res_p 27 28include $(LOCAL_PATH)/version.mk 29 30LOCAL_AAPT_FLAGS := \ 31 --auto-add-overlay \ 32 --version-name "$(version_name_package)" \ 33 --version-code $(version_code_package) \ 34 35LOCAL_USE_AAPT2 := true 36 37LOCAL_PACKAGE_NAME := Camera2 38LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 39LOCAL_LICENSE_CONDITIONS := notice 40 41LOCAL_SDK_VERSION := current 42 43LOCAL_PRODUCT_MODULE := true 44 45LOCAL_PROGUARD_FLAG_FILES := proguard.flags 46 47# Guava uses deprecated org.apache.http.legacy classes. 48LOCAL_JAVA_LIBRARIES += org.apache.http.legacy 49 50LOCAL_JNI_SHARED_LIBRARIES := libjni_tinyplanet libjni_jpegutil 51 52include $(BUILD_PACKAGE) 53 54include $(call all-makefiles-under, $(LOCAL_PATH)) 55