Clean template_override directory before build
This commit is contained in:
parent
e1ccb12eac
commit
d546ecd81c
|
|
@ -18,7 +18,12 @@ buildscript {
|
||||||
allprojects {
|
allprojects {
|
||||||
ext {
|
ext {
|
||||||
templateRootPath = project(":edxp-core").projectDir.path + "/template_override/"
|
templateRootPath = project(":edxp-core").projectDir.path + "/template_override/"
|
||||||
|
templateSystemPath = templateRootPath + "/system/"
|
||||||
|
templateSystemx86Path = templateRootPath + "/system_x86/"
|
||||||
templateFrameworkPath = templateRootPath + "/system/framework/"
|
templateFrameworkPath = templateRootPath + "/system/framework/"
|
||||||
|
templateLibPath = templateRootPath + "/system/lib/"
|
||||||
|
templateLib64Path = templateRootPath + "/system/lib64/"
|
||||||
|
templateEtcPath = templateRootPath + "/system/etc/"
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,6 @@
|
||||||
/libs
|
/libs
|
||||||
/obj
|
/obj
|
||||||
/release
|
/release
|
||||||
/template_override/system/framework/edxp.jar
|
/template_override/system
|
||||||
|
/template_override/system_x86
|
||||||
*.iml
|
*.iml
|
||||||
|
|
@ -59,6 +59,10 @@ task copyDexmakerJar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task cleanTemplate(type: Delete) {
|
||||||
|
delete file(templateSystemPath), file(templateSystemx86Path)
|
||||||
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
|
||||||
android.libraryVariants.all { variant ->
|
android.libraryVariants.all { variant ->
|
||||||
|
|
@ -72,7 +76,7 @@ afterEvaluate {
|
||||||
def backendLowered = backend.toLowerCase()
|
def backendLowered = backend.toLowerCase()
|
||||||
|
|
||||||
def zipTask = task("zip${backendCapped}${variantCapped}", type: Exec) {
|
def zipTask = task("zip${backendCapped}${variantCapped}", type: Exec) {
|
||||||
dependsOn copyDalvikdxJar, copyDexmakerJar
|
dependsOn cleanTemplate, copyDalvikdxJar, copyDexmakerJar
|
||||||
dependsOn tasks.getByPath(":edxp-${backendLowered}:makeAndCopy${variantCapped}")
|
dependsOn tasks.getByPath(":edxp-${backendLowered}:makeAndCopy${variantCapped}")
|
||||||
workingDir '..'
|
workingDir '..'
|
||||||
commandLine 'sh', 'build.sh', project.name,
|
commandLine 'sh', 'build.sh', project.name,
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
/build
|
/build
|
||||||
|
/template_override/system/framework/edxp.jar
|
||||||
|
|
@ -54,10 +54,19 @@ afterEvaluate {
|
||||||
def variantNameCapped = variant.name.capitalize()
|
def variantNameCapped = variant.name.capitalize()
|
||||||
def variantNameLowered = variant.name.toLowerCase()
|
def variantNameLowered = variant.name.toLowerCase()
|
||||||
|
|
||||||
|
def myTemplatePath = "${projectDir}/template_override/"
|
||||||
|
|
||||||
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
||||||
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
||||||
destinationDir file(templateFrameworkPath)
|
destinationDir file(myTemplatePath + "system/framework/")
|
||||||
baseName "edxp"
|
baseName "edxp"
|
||||||
|
doLast {
|
||||||
|
copy {
|
||||||
|
from file(myTemplatePath)
|
||||||
|
into file(templateRootPath)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
outputs.upToDateWhen { false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
libsandhook.edxp.so
|
libsandhook.edxp.so
|
||||||
libwhale.edxp.so
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
version=90.0-sandhook-0.3.1.6-beta-SNAPSHOT
|
||||||
|
arch=arm64
|
||||||
|
minsdk=23
|
||||||
|
maxsdk=28
|
||||||
|
requires:fbe_aware=1
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
/build
|
/build
|
||||||
|
/template_override/system/framework/edxp.jar
|
||||||
|
|
@ -52,10 +52,19 @@ afterEvaluate {
|
||||||
def variantNameCapped = variant.name.capitalize()
|
def variantNameCapped = variant.name.capitalize()
|
||||||
def variantNameLowered = variant.name.toLowerCase()
|
def variantNameLowered = variant.name.toLowerCase()
|
||||||
|
|
||||||
|
def myTemplatePath = "${projectDir}/template_override/"
|
||||||
|
|
||||||
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
||||||
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
||||||
destinationDir file(templateFrameworkPath)
|
destinationDir file(myTemplatePath + "system/framework/")
|
||||||
baseName "edxp"
|
baseName "edxp"
|
||||||
|
doLast {
|
||||||
|
copy {
|
||||||
|
from file(myTemplatePath)
|
||||||
|
into file(templateRootPath)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
outputs.upToDateWhen { false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
libwhale.edxp.so
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
version=90.0-0.3.1.6-beta-SNAPSHOT
|
version=90.0-0.3.1.6-whale-beta-SNAPSHOT
|
||||||
arch=arm64
|
arch=arm64
|
||||||
minsdk=23
|
minsdk=23
|
||||||
maxsdk=28
|
maxsdk=28
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1,2 @@
|
||||||
/build
|
/build
|
||||||
|
/template_override/system/framework/edxp.jar
|
||||||
|
|
@ -53,10 +53,19 @@ afterEvaluate {
|
||||||
def variantNameCapped = variant.name.capitalize()
|
def variantNameCapped = variant.name.capitalize()
|
||||||
def variantNameLowered = variant.name.toLowerCase()
|
def variantNameLowered = variant.name.toLowerCase()
|
||||||
|
|
||||||
|
def myTemplatePath = "${projectDir}/template_override/"
|
||||||
|
|
||||||
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
||||||
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
||||||
destinationDir file(templateFrameworkPath)
|
destinationDir file(myTemplatePath + "system/framework/")
|
||||||
baseName "edxp"
|
baseName "edxp"
|
||||||
|
doLast {
|
||||||
|
copy {
|
||||||
|
from file(myTemplatePath)
|
||||||
|
into file(templateRootPath)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
outputs.upToDateWhen { false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
version=90.0-yahfa-0.3.1.6-beta-SNAPSHOT
|
||||||
|
arch=arm64
|
||||||
|
minsdk=23
|
||||||
|
maxsdk=28
|
||||||
|
requires:fbe_aware=1
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue