mirror of https://github.com/axmolengine/axmol.git
Ensure build native first before compile java code
This commit is contained in:
parent
612710b1b6
commit
3ff5b16847
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,3 +100,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