Home | History | Annotate | Download | only in gdx-tools
      1 project.ext.particles2DMainClass = "com.badlogic.gdx.tools.particleeditor.ParticleEditor"
      2 project.ext.particles3DMainClass = "com.badlogic.gdx.tools.flame.FlameMain"
      3 project.ext.hieroMainClass = "com.badlogic.gdx.tools.hiero.Hiero"
      4 project.ext.texturePackerMainClass = "com.badlogic.gdx.tools.texturepacker.TexturePacker"
      5 
      6 project.ext.toolsAssetsDir = ["assets"]
      7 
      8 task dist2DParticles (type: Jar) {
      9     from files(sourceSets.main.output.classesDir)
     10     from files(sourceSets.main.output.resourcesDir)
     11     from {configurations.compile.collect {zipTree(it)}}
     12     from files(project.toolsAssetsDir);
     13 
     14     baseName = "runnable-2D-particles"
     15     version = ""
     16 
     17     manifest {
     18         attributes 'Main-Class': project.particles2DMainClass
     19     }
     20 }
     21 
     22 task dist3DParticles (type: Jar) {
     23     from files(sourceSets.main.output.classesDir)
     24     from files(sourceSets.main.output.resourcesDir)
     25     from {configurations.compile.collect {zipTree(it)}}
     26     from files(project.toolsAssetsDir)
     27 
     28     baseName = "runnable-3D-particles"
     29     version = ""
     30 
     31     manifest {
     32         attributes 'Main-Class': project.particles3DMainClass
     33     }
     34 }
     35 
     36 task distHiero (type: Jar) {
     37     from files(sourceSets.main.output.classesDir)
     38     from files(sourceSets.main.output.resourcesDir)
     39     from {configurations.compile.collect {zipTree(it)}}
     40     from files(project.toolsAssetsDir);
     41 
     42     baseName = "runnable-hiero"
     43     version = ""
     44 
     45     manifest {
     46         attributes 'Main-Class': project.hieroMainClass
     47     }
     48 }
     49 
     50 task distTexturePacker (type: Jar) {
     51     from files(sourceSets.main.output.classesDir)
     52     from files(sourceSets.main.output.resourcesDir)
     53     from {configurations.compile.collect {zipTree(it)}}
     54     from files(project.toolsAssetsDir);
     55 
     56     baseName = "runnable-texturepacker"
     57     version = ""
     58 
     59     manifest {
     60         attributes 'Main-Class': project.texturePackerMainClass
     61     }
     62 }
     63 
     64 task buildRunnables (dependsOn: [classes, dist2DParticles, dist3DParticles, distHiero, distTexturePacker]) << {
     65     println "Building ye runnables"
     66 }