Tachiyomi-Extensions/settings.gradle.kts
Draff 5c8cb75e9a
All checks were successful
CI / Prepare job (push) Successful in 3s
CI / Build multisrc modules (push) Successful in 8m10s
CI / Build individual modules (push) Successful in 38s
CI / Publish repo (push) Successful in 1m39s
come up to date with keiyoushi builds
2024-01-22 21:19:41 +00:00

35 lines
1.0 KiB
Plaintext

include(":core")
// Load all modules under /lib
File(rootDir, "lib").eachDir { include("lib:${it.name}") }
// Local development (full project build)
include(":multisrc")
project(":multisrc").projectDir = File("multisrc")
loadAllIndividualExtensions()
loadAllGeneratedMultisrcExtensions()
fun loadAllIndividualExtensions() {
File(rootDir, "src").eachDir { dir ->
dir.eachDir { subdir ->
val name = ":extensions:individual:${dir.name}:${subdir.name}"
include(name)
project(name).projectDir = File("src/${dir.name}/${subdir.name}")
}
}
}
fun loadAllGeneratedMultisrcExtensions() {
File(rootDir, "generated-src").eachDir { dir ->
dir.eachDir { subdir ->
val name = ":extensions:multisrc:${dir.name}:${subdir.name}"
include(name)
project(name).projectDir = File("generated-src/${dir.name}/${subdir.name}")
}
}
}
fun File.eachDir(block: (File) -> Unit) {
listFiles()?.filter { it.isDirectory }?.forEach { block(it) }
}