Move config to buildSrc

This commit is contained in:
vvb2060
2021-09-08 00:45:15 +08:00
committed by John Wu
parent 9bf835e810
commit 810cf4dee8
8 changed files with 103 additions and 120 deletions

View File

@ -2,8 +2,9 @@ plugins {
id("com.android.library")
}
android {
setupCommon()
android {
externalNativeBuild {
ndkBuild {
path("jni/Android.mk")
@ -15,7 +16,7 @@ android {
ndkBuild {
// Pass arguments to ndk-build.
arguments("B_MAGISK=1", "B_INIT=1", "B_BOOT=1", "B_TEST=1",
"MAGISK_DEBUG=1", "MAGISK_VERSION=debug", "MAGISK_VER_CODE=INT_MAX")
"MAGISK_DEBUG=1", "MAGISK_VERSION=debug", "MAGISK_VER_CODE=INT_MAX")
}
}
}