Skip to content
Snippets Groups Projects
Commit af48a8da authored by Adrien Béraud's avatar Adrien Béraud
Browse files

build: run make-swig once, before kotlin

Change-Id: I143a33c8dc43d84e07607088638cd4c2bb72c67a
parent 3b081d93
No related branches found
No related tags found
No related merge requests found
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlin_version: String by rootProject.extra
val hilt_version: String by rootProject.extra
val dokka_version: String by rootProject.extra
......@@ -28,7 +30,7 @@ android {
arguments += listOf(
"-DANDROID_STL=c++_shared",
"-DBUILD_CONTRIB=ON",
"-DBUILD_EXTRA_TOOLS=ON",
"-DBUILD_EXTRA_TOOLS=OFF",
"-DJAMI_TESTS=OFF",
"-DBUILD_TESTING=OFF",
"-DJAMI_JNI=ON",
......@@ -184,3 +186,9 @@ if (buildFirebase) {
println ("apply plugin $buildFirebase")
apply(plugin = "com.google.gms.google-services")
}
// Make sure the native build runs before the Kotlin/Java build
afterEvaluate {
val cmakeTasks = tasks.matching { it.name.startsWith("buildCMake") }
tasks.withType<KotlinCompile>().configureEach { dependsOn(cmakeTasks) }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment