You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
730 B
Kotlin
22 lines
730 B
Kotlin
val texturePackerSource = "src/main/textures"
|
|
val texturePackerResources = "$buildDir/generated/sources/texturePacker/resources/main"
|
|
val texturePackerGeneratedSources = "$buildDir/generated/sources/texturePacker/java/main"
|
|
|
|
sourceSets.main.get().java.srcDir(texturePackerGeneratedSources)
|
|
sourceSets.main.get().resources.srcDir(texturePackerResources)
|
|
|
|
tasks {
|
|
val packTextures = register<TexturePackerTask>("packTextures") {
|
|
input.set(file(texturePackerSource))
|
|
resourceOutput.set(file(texturePackerResources))
|
|
generatedSourceOutput.set(file(texturePackerGeneratedSources))
|
|
}
|
|
|
|
processResources {
|
|
dependsOn(packTextures)
|
|
}
|
|
|
|
compileJava {
|
|
dependsOn(packTextures)
|
|
}
|
|
} |