Mindustry/settings.gradle

34 lines
1.1 KiB
Groovy
Raw Normal View History

2018-10-31 06:15:12 +07:00
include 'desktop', 'core', 'kryonet', 'server', 'ios', 'annotations', 'tools', 'tests'
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"){
2017-12-25 08:50:00 +07:00
if (new File(settingsDir, '../uCore').exists()) {
include ':uCore'
project(':uCore').projectDir = new File(settingsDir, '../uCore')
}
2017-12-22 09:56:01 +07:00
2017-12-25 08:50:00 +07:00
if (new File(settingsDir, '../GDXGifRecorder').exists()) {
include ':GDXGifRecorder'
project(':GDXGifRecorder').projectDir = new File(settingsDir, '../GDXGifRecorder')
}
2018-09-11 06:33:12 +07:00
if (new File(settingsDir, '../debug').exists()) {
include ':debug'
project(':debug').projectDir = new File(settingsDir, '../debug')
}
2017-12-25 08:50:00 +07:00
}else{
println("Not including local repositories.")
2017-12-22 09:56:01 +07:00
}