Mindustry/settings.gradle
Anuken be50997f94 Merge branches '6.0' and 'splinterface-impl' of https://github.com/Anuken/Mindustry into splinterface-impl
# Conflicts:
#	core/assets/sprites/block_colors.png
#	core/assets/sprites/sprites.atlas
#	core/assets/sprites/sprites.png
#	core/assets/sprites/sprites3.png
#	core/assets/sprites/sprites5.png
#	core/src/mindustry/Vars.java
#	core/src/mindustry/entities/traits/SaveTrait.java
#	core/src/mindustry/maps/generators/MapGenerator.java
#	core/src/mindustry/ui/dialogs/DeployDialog.java
#	core/src/mindustry/world/blocks/Floor.java
#	desktop/src/mindustry/desktop/DesktopLauncher.java
#	gradle.properties
2020-02-04 12:25:18 -05:00

46 lines
1.4 KiB
Groovy

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:extensions:g3d')
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.")
}