From 0525ea8f06bd182022da190d7ccd01515cedfd7d Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 29 Aug 2023 13:53:04 +0200 Subject: [PATCH] Reorganising build.gradle for CUDA 12 Signed-off-by: brian --- cavis-native/cavis-native-lib/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cavis-native/cavis-native-lib/build.gradle b/cavis-native/cavis-native-lib/build.gradle index 72b325ac8..01694611e 100644 --- a/cavis-native/cavis-native-lib/build.gradle +++ b/cavis-native/cavis-native-lib/build.gradle @@ -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" }