2019-09-08 03:55:09 +07:00
|
|
|
include 'desktop', 'core', 'server', 'ios', 'annotations', 'tools', 'tests'
|
2018-10-25 00:07:51 +07:00
|
|
|
|
2019-07-24 10:29:48 +07:00
|
|
|
def use = { String name ->
|
2018-12-27 01:22:31 +07:00
|
|
|
include(name)
|
2019-07-24 10:29:48 +07:00
|
|
|
project(name).projectDir = new File(settingsDir, "../${name.substring(1).replace(":", "/")}")
|
2018-12-27 01:22:31 +07:00
|
|
|
}
|
|
|
|
|
2019-08-26 09:02:00 +07:00
|
|
|
def properties = new Properties()
|
2018-10-25 00:07:51 +07:00
|
|
|
|
2019-08-29 09:07:08 +07:00
|
|
|
if(new File(settingsDir, 'local.properties').exists() && System.getenv("JITPACK") != "true"){
|
2018-10-25 00:07:51 +07:00
|
|
|
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
|
|
|
|
2019-03-24 00:40:13 +07:00
|
|
|
if(!hasProperty("release")){
|
2019-04-08 20:03:18 +07:00
|
|
|
if(new File(settingsDir, '../Arc').exists()){
|
2019-07-24 10:29:48 +07:00
|
|
|
use(':Arc')
|
|
|
|
use(':Arc:arc-core')
|
|
|
|
use(':Arc:extensions')
|
|
|
|
use(':Arc:extensions:freetype')
|
|
|
|
use(':Arc:extensions:recorder')
|
2019-08-25 05:29:21 +07:00
|
|
|
use(':Arc:extensions:arcnet')
|
2019-07-24 10:29:48 +07:00
|
|
|
use(':Arc:extensions:packer')
|
2019-12-25 09:45:53 +07:00
|
|
|
use(':Arc:extensions:g3d')
|
2020-03-09 08:53:19 +07:00
|
|
|
use(':Arc:extensions:fx')
|
2019-07-24 10:29:48 +07:00
|
|
|
use(':Arc:backends')
|
2019-07-25 22:45:49 +07:00
|
|
|
use(':Arc:backends:backend-sdl')
|
2019-07-24 10:29:48 +07:00
|
|
|
use(':Arc:backends:backend-android')
|
|
|
|
use(':Arc:backends:backend-robovm')
|
|
|
|
use(':Arc:backends:backend-headless')
|
2017-12-25 08:50:00 +07:00
|
|
|
}
|
2019-08-08 05:16:51 +07:00
|
|
|
|
2019-09-22 03:44:47 +07:00
|
|
|
if(new File(settingsDir, '../Mindustry-Debug').exists()){
|
|
|
|
include(":debug")
|
|
|
|
project(":debug").projectDir = new File(settingsDir, "../Mindustry-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
|
|
|
}
|