Tachiyomi-Extensions/settings.gradle.kts

35 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-12-20 17:16:23 +00:00
include(":core")
2020-06-26 02:45:45 +00:00
// Load all modules under /lib
2024-01-22 21:19:41 +00:00
File(rootDir, "lib").eachDir { include("lib:${it.name}") }
2021-02-13 00:05:45 +00:00
2024-01-22 21:19:41 +00:00
// Local development (full project build)
include(":multisrc")
project(":multisrc").projectDir = File("multisrc")
2021-02-13 00:05:45 +00:00
2024-01-22 21:19:41 +00:00
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}")
}
}
}
2024-01-22 21:19:41 +00:00
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}")
}
}
}
2022-06-05 00:55:39 +00:00
fun File.eachDir(block: (File) -> Unit) {
2020-06-26 02:45:45 +00:00
listFiles()?.filter { it.isDirectory }?.forEach { block(it) }
2024-01-09 03:14:00 +00:00
}