forked from jsettlers/settlers-remake
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
34 lines (29 loc) · 1.11 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
// We cannot share much more with gradle.
gradle.ext.projectsWithExtraTest = []
include ':go.graphics'
include ':go.graphics.swing'
include ':jsettlers.buildingcreator'
include ':jsettlers.common'
include ':jsettlers.graphics'
include ':jsettlers.graphics:layoutbuilder'
include ':jsettlers.graphics.swing'
include ':jsettlers.logic'
include ':jsettlers.main.swing'
include ':jsettlers.mapcreator'
include ':jsettlers.network'
include ':jsettlers.tests'
include ':jsettlers.testutils'
include ':jsettlers.tools'
// Android projects
// Android is automatically disabled if SDK is not set.
def androidFile = new File(rootProject.dir, 'local.properties');
if (System.env.ANDROID_HOME || androidFile.isFile() && androidFile.text.matches('(?s)^(.*\\n)?\\s*sdk.dir=.*')) {
include ':go.graphics.android'
include ':jsettlers.graphics.androidui'
include ':jsettlers.main.android'
} else {
println 'WARNING: Android is disabled.'
println 'To enable Android build, download the Android SDK. Then create a file local.properties with the following content:'
println ' sdk.dir=<path to sdk>'
}
rootProject.name = 'settlers-remake'