You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.5 KiB
41 lines
1.5 KiB
7 months ago
|
LOCAL_PATH:= $(call my-dir)
|
||
|
|
||
|
############################## Miracast.apk begin ##############################
|
||
|
include $(CLEAR_VARS)
|
||
|
|
||
|
LOCAL_PACKAGE_NAME := Miracast
|
||
|
|
||
|
ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) < 21 ))" )))
|
||
|
ALL_DEFAULT_INSTALLED_MODULES += $(LOCAL_PACKAGE_NAME)
|
||
|
endif
|
||
|
|
||
|
LOCAL_MULTILIB := 32
|
||
|
LOCAL_MODULE_TAGS := optional
|
||
|
LOCAL_PROGUARD_ENABLED := disabled
|
||
|
LOCAL_CERTIFICATE := platform
|
||
|
LOCAL_OVERRIDES_PACKAGES := platform
|
||
|
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||
|
LOCAL_PRIVILEGED_MODULE := true
|
||
|
SOURCE_DIR:=app/src/main/
|
||
|
ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) < 30 ))" )))
|
||
|
LOCAL_SRC_FILES := $(call all-java-files-under, $(SOURCE_DIR)/java/)
|
||
|
LOCAL_SRC_FILES += $(call all-java-files-under, $(SOURCE_DIR)/java10/)
|
||
|
else
|
||
|
LOCAL_SRC_FILES := $(call all-java-files-under, $(SOURCE_DIR)/java/)
|
||
|
LOCAL_SRC_FILES += $(call all-java-files-under, $(SOURCE_DIR)/java12/)
|
||
|
endif
|
||
|
|
||
|
#指定Res路径
|
||
|
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/$(SOURCE_DIR)/res
|
||
|
#指定清单配置文件
|
||
|
LOCAL_FULL_MANIFEST_FILE := $(LOCAL_PATH)/$(SOURCE_DIR)/AndroidManifest.xml
|
||
|
|
||
|
LOCAL_STATIC_JAVA_LIBRARIES += androidx.localbroadcastmanager_localbroadcastmanager
|
||
|
LOCAL_STATIC_JAVA_LIBRARIES += androidx.arch.core_core-common
|
||
|
LOCAL_STATIC_JAVA_LIBRARIES += androidx.arch.core_core-runtime
|
||
|
LOCAL_STATIC_JAVA_LIBRARIES += androidx.appcompat_appcompat
|
||
|
include $(BUILD_PACKAGE)
|
||
|
############################### Miracast.apk end ###############################
|
||
|
|
||
|
include $(call all-makefiles-under, $(LOCAL_PATH))
|