2017-04-30 08:25:59 +07:00
|
|
|
apply plugin: "java"
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
2017-07-28 00:27:11 +07:00
|
|
|
sourceSets.main.java.srcDirs = ["src/"]
|
2017-08-09 07:18:31 +07:00
|
|
|
|
|
|
|
def TEXPACK_DIR = "$System.env.TEXPACK_DIR"
|
|
|
|
|
|
|
|
task packSprites(type: Exec){
|
|
|
|
commandLine "java", "-cp", TEXPACK_DIR, "com.badlogic.gdx.tools.texturepacker.TexturePacker", "assets-raw/sprites/", "assets/sprites/", "sprites.atlas"
|
|
|
|
}
|
|
|
|
|
|
|
|
task packUI(type: Exec){
|
|
|
|
commandLine "java", "-cp", TEXPACK_DIR, "com.badlogic.gdx.tools.texturepacker.TexturePacker", "assets-raw/ui/", "assets/ui/", "uiskin.atlas"
|
|
|
|
}
|
|
|
|
|
|
|
|
task pack(){
|
|
|
|
dependsOn 'packSprites'
|
|
|
|
dependsOn 'packUI'
|
|
|
|
}
|
|
|
|
|
2017-04-30 08:25:59 +07:00
|
|
|
eclipse.project {
|
|
|
|
name = appName + "-core"
|
2017-07-28 00:27:11 +07:00
|
|
|
}
|