forked from Anuken/Mindustry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
44 lines (38 loc) · 1.41 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
include 'desktop', 'core', 'server', 'ios', 'annotations', 'tools', 'tests'
def use = { String name ->
include(name)
project(name).projectDir = new File(settingsDir, "../${name.substring(1).replace(":", "/")}")
}
def properties = new Properties()
if(new File(settingsDir, 'local.properties').exists() && System.getenv("JITPACK") != "true"){
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.")
}
if(!hasProperty("release")){
if(new File(settingsDir, '../Arc').exists()){
use(':Arc')
use(':Arc:arc-core')
use(':Arc:extensions')
use(':Arc:extensions:freetype')
use(':Arc:extensions:recorder')
use(':Arc:extensions:arcnet')
use(':Arc:extensions:packer')
use(':Arc:backends')
use(':Arc:backends:backend-sdl')
use(':Arc:backends:backend-android')
use(':Arc:backends:backend-robovm')
use(':Arc:backends:backend-headless')
}
if(new File(settingsDir, '../Mindustry-Debug').exists()){
include(":debug")
project(":debug").projectDir = new File(settingsDir, "../Mindustry-Debug")
}
}else{
println("Not including local repositories.")
}