Reorganising build.gradle for CUDA 12

Signed-off-by: brian <brian@brutex.de>
CUDA12
Brian Rosenberger 2023-08-29 13:53:04 +02:00
parent 47771d5509
commit 0525ea8f06
1 changed files with 4 additions and 1 deletions

View File

@ -384,12 +384,15 @@ chipList.each { String thisChip ->
tasks.named("compileJava").configure {enabled false}
chipList.each { String thisChip ->
//ensure full build process is running on "build"
tasks.named("build").configure {
dependsOn "javacpp${thisChip.capitalize()}SupportBuildCompiler"
}
//Compiles and links the generated jni code with the underlying native library
tasks.named("javacpp${thisChip.capitalize()}SupportBuildCompiler").configure {
dependsOn "javacpp${thisChip.capitalize()}SupportBuildParser"
}
//Generates the jni interface sources
tasks.named("javacpp${thisChip.capitalize()}SupportBuildParser").configure {
dependsOn "javacpp${thisChip.capitalize()}SupportBuildCommand"
}
@ -397,11 +400,11 @@ chipList.each { String thisChip ->
tasks.named("javacpp${thisChip.capitalize()}SupportBuildCommand").configure {
}
//Compile the generates jni interface (java portion)
tasks.named("compile${thisChip.capitalize()}Java").configure {
dependsOn "javacpp${thisChip.capitalize()}SupportBuildParser"
}
tasks.named("${thisChip}Jar").configure {
dependsOn "javacpp${thisChip.capitalize()}SupportBuildCompiler"
}