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_SRC_FILES := $(call all-java-files-under, src) 19LOCAL_SRC_FILES += $(call all-java-files-under, src_pd) 20LOCAL_SRC_FILES += $(call all-java-files-under, src_pd_gcam) 21 22LOCAL_RESOURCE_DIR += \ 23 $(LOCAL_PATH)/res \ 24 $(LOCAL_PATH)/res_p 25 26include $(LOCAL_PATH)/version.mk 27 28LOCAL_AAPT_FLAGS := \ 29 --auto-add-overlay \ 30 --version-name "$(version_name_package)" \ 31 --version-code $(version_code_package) \ 32 33LOCAL_USE_AAPT2 := true 34 35LOCAL_PACKAGE_NAME := Camera2 36 37LOCAL_SDK_VERSION := current 38 39LOCAL_PRODUCT_MODULE := true 40 41LOCAL_PROGUARD_FLAG_FILES := proguard.flags 42 43# Guava uses deprecated org.apache.http.legacy classes. 44LOCAL_JAVA_LIBRARIES += org.apache.http.legacy 45 46LOCAL_JNI_SHARED_LIBRARIES := libjni_tinyplanet libjni_jpegutil 47 48include $(BUILD_PACKAGE) 49 50include $(call all-makefiles-under, $(LOCAL_PATH)) 51