LOCAL_PATH:= $(call my-dir)
#Build the OtaBackupUpdate APK include $(CLEAR_VARS) LOCAL_PACKAGE_NAME := OtaBackupUpdate #app模块名 LOCAL_CERTIFICATE := platform #使用平台签名 LOCAL_PRIVILEGED_MODULE := true LOCAL_SDK_VERSION := current #指定SDK版本 LOCAL_STATIC_JAVA_LIBRARIES := \ #依赖的jar包 android-support-v4 android-support-v13 android-support-v7-recyclerview android-support-v7-preference android-support-v7-appcompat android-support-v14-preference gson_jar #依赖的第三方jar包 LOCAL_MODULE_TAGS := optional LOCAL_STATIC_ANDROID_LIBRARIES := com.google.android.material_material LOCAL_SRC_FILES := $(call all-java-files-under, src) #指定app编译目录 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \ #指定app资源文件 frameworks/support/v7/preference/res frameworks/support/v14/preference/res frameworks/support/v7/appcompat/res frameworks/support/v7/recyclerview/res include $(BUILD_PACKAGE)
#以下导入一个第三方jar包 include $(CLEAR_VARS) LOCAL_MODULE := gson_jar #定义第三方jar包名称 LOCAL_MODULE_CLASS := JAVA_LIBRARIES LOCAL_SDK_VERSION := current LOCAL_SRC_FILES := libs/gson-2.8.4.jar #指定第三方jar报路径,以当前Android.mk文件所在目录为起点 LOCAL_UNINSTALLABLE_MODULE := true include $(BUILD_PREBUILT)
include
(
c
a
l
l
a
l
l
?
m
a
k
e
f
i
l
e
s
?
u
n
d
e
r
,
(call all-makefiles-under,
(callall?makefiles?under,(LOCAL_PATH))
|