diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-06-27 00:28:49 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-06-28 16:24:48 +0200 |
commit | 926ff7439cb4298f482e6c73de393550f4827a31 (patch) | |
tree | 276c5d23a6f8c1c468266765a9fafdaebe8b8d49 /assets/build.gradle | |
parent | b6f07387af85687bf957e3e75e664be5ce972bd4 (diff) | |
download | gdx-boardgame-926ff7439cb4298f482e6c73de393550f4827a31.zip gdx-boardgame-926ff7439cb4298f482e6c73de393550f4827a31.tar.gz |
build ./android/assets from ./assets
Diffstat (limited to 'assets/build.gradle')
-rw-r--r-- | assets/build.gradle | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/assets/build.gradle b/assets/build.gradle new file mode 100644 index 0000000..1ef0761 --- /dev/null +++ b/assets/build.gradle @@ -0,0 +1,33 @@ +configurations { + texturePacker +} + +dependencies { + texturePacker "com.badlogicgames.gdx:gdx-tools:$gdxVersion" +} + +defaultTasks 'build' + +task clean(type: Delete) { + delete '../android/assets' +} + +task copyData(type: Copy) { + from 'data' + into '../android/assets/data' +} + +task packLoading(type: JavaExec) { + main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker' + classpath = configurations.texturePacker + args = ['./loading', '../android/assets/data', 'loading'] +} + +/* task buildUI(dependsOn: ["processXHDPI"]) { */ +task build(dependsOn: clean) { + description "Builds the skin at various DPIs" +} + +build.dependsOn { + tasks.findAll { task -> (task.name.startsWith('pack') || task.name.startsWith('copy')) } +} |