abouttreesummaryrefslogcommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 782b8db..8c8b6d7 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -92,6 +92,14 @@ android {
}
}
+
+// This raises an error with an informative message instead of the confusing
+// ndk-build errors that occur when submodules are not initialized.
+gradle.projectsEvaluated {
+ if (!file("vendor/cdict/java").exists())
+ throw GradleException("Git submodules not initialized. Run 'git submodule update --init'")
+}
+
val buildKeyboardFont by tasks.registering(Exec::class) {
val `in` = projectDir.resolve("srcs/special_font")
val out = layout.projectDirectory.file("assets/special_font.ttf")