Mindustry/settings.gradle

41 lines
1.5 KiB
Groovy
Raw Normal View History

2018-12-27 05:38:40 +07:00
include 'desktop', 'core', 'net', 'server', 'ios', 'annotations', 'tools', 'tests'
2018-12-27 01:22:31 +07:00
def use = { String name, String path ->
include(name)
project(name).projectDir = new File(settingsDir, path)
}
Properties properties = new Properties()
if(new File(settingsDir, 'local.properties').exists()){
properties.load(new File(settingsDir, 'local.properties').newDataInputStream())
if(properties.containsKey("sdk.dir")){
include 'android'
}else{
println("No android SDK dir found Not loading Android module.")
}
}else{
println("No local.properties found. Not loading Android module.")
}
2017-12-22 04:46:33 +07:00
2018-10-06 22:56:39 +07:00
if(System.properties["release"] == null || System.properties["release"] == "false"){
2018-12-20 23:49:32 +07:00
if (new File(settingsDir, '../Arc').exists()) {
2018-12-27 01:22:31 +07:00
use(':Arc', '../Arc')
use(':Arc:arc-core', '../Arc/arc-core')
use(':Arc:extensions', '../Arc/extensions')
use(':Arc:extensions:freetype', '../Arc/extensions/freetype')
2019-01-28 00:31:14 +07:00
use(':Arc:extensions:recorder', '../Arc/extensions/recorder')
2018-12-27 05:38:40 +07:00
use(':Arc:backends', '../Arc/backends')
use(':Arc:backends:backend-lwjgl3', '../Arc/backends/backend-lwjgl3')
2018-12-28 03:47:17 +07:00
use(':Arc:backends:backend-android', '../Arc/backends/backend-android')
use(':Arc:backends:backend-robovm', '../Arc/backends/backend-robovm')
use(':Arc:backends:backend-headless', '../Arc/backends/backend-headless')
2017-12-25 08:50:00 +07:00
}
2018-09-11 06:33:12 +07:00
if (new File(settingsDir, '../debug').exists()) {
2018-12-27 01:22:31 +07:00
use(':debug', '../debug')
2018-09-11 06:33:12 +07:00
}
2017-12-25 08:50:00 +07:00
}else{
println("Not including local repositories.")
2017-12-22 09:56:01 +07:00
}