mirror of https://github.com/axmolengine/axmol.git
Ensure build native first before compile java code
This commit is contained in:
parent
e6467fac7b
commit
c2596efd04
|
@ -94,3 +94,12 @@ dependencies {
|
|||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation project(':libcocos2dx')
|
||||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
if (tasks.findByName("externalNativeBuildDebug")) {
|
||||
compileDebugJavaWithJavac.dependsOn externalNativeBuildDebug
|
||||
}
|
||||
if (tasks.findByName("externalNativeBuildRelease")) {
|
||||
compileReleaseJavaWithJavac.dependsOn externalNativeBuildRelease
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,6 +101,15 @@ android.applicationVariants.all { variant ->
|
|||
tasks.getByName("pre${targetName}Build").dependsOn copyTaskName
|
||||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
if (tasks.findByName("externalNativeBuildDebug")) {
|
||||
compileDebugJavaWithJavac.dependsOn externalNativeBuildDebug
|
||||
}
|
||||
if (tasks.findByName("externalNativeBuildRelease")) {
|
||||
compileReleaseJavaWithJavac.dependsOn externalNativeBuildRelease
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation project(':libcocos2dx')
|
||||
|
|
|
@ -91,3 +91,12 @@ dependencies {
|
|||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation project(':libcocos2dx')
|
||||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
if (tasks.findByName("externalNativeBuildDebug")) {
|
||||
compileDebugJavaWithJavac.dependsOn externalNativeBuildDebug
|
||||
}
|
||||
if (tasks.findByName("externalNativeBuildRelease")) {
|
||||
compileReleaseJavaWithJavac.dependsOn externalNativeBuildRelease
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,3 +93,12 @@ dependencies {
|
|||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation project(':libcocos2dx')
|
||||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
if (tasks.findByName("externalNativeBuildDebug")) {
|
||||
compileDebugJavaWithJavac.dependsOn externalNativeBuildDebug
|
||||
}
|
||||
if (tasks.findByName("externalNativeBuildRelease")) {
|
||||
compileReleaseJavaWithJavac.dependsOn externalNativeBuildRelease
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,3 +108,12 @@ dependencies {
|
|||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation project(':libcocos2dx')
|
||||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
if (tasks.findByName("externalNativeBuildDebug")) {
|
||||
compileDebugJavaWithJavac.dependsOn externalNativeBuildDebug
|
||||
}
|
||||
if (tasks.findByName("externalNativeBuildRelease")) {
|
||||
compileReleaseJavaWithJavac.dependsOn externalNativeBuildRelease
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue