Add support for building libsignal from source

This commit is contained in:
Jordan Rose 2024-08-28 12:19:55 -07:00
parent a5898ecd6e
commit 879a8f7b85
2 changed files with 12 additions and 0 deletions

2
gradle.properties Normal file
View File

@ -0,0 +1,2 @@
# Uncomment this to build libsignal from source.
# libsignalClientPath=../libsignal

10
settings.gradle.kts Normal file
View File

@ -0,0 +1,10 @@
// To build libsignal from source, set the libsignalClientPath property in gradle.properties.
val libsignalClientPath = if (extra.has("libsignalClientPath")) extra.get("libsignalClientPath") else null
if (libsignalClientPath is String) {
includeBuild(rootDir.resolve(libsignalClientPath + "/java")) {
name = "libsignal-client"
dependencySubstitution {
substitute(module("org.signal:libsignal-client")).using(project(":client"))
}
}
}