Single gradle asset copy task

This commit is contained in:
saschawillems 2018-05-01 14:01:02 +02:00
parent 5fe9f91529
commit 20367d512a

View file

@ -36,24 +36,24 @@ android {
} }
} }
task copyRes(type: Copy) { task copyTask << {
copy {
from '../../common/res/drawable' from '../../common/res/drawable'
into "src/main/res/drawable" into "src/main/res/drawable"
include 'icon.png' include 'icon.png'
} }
task copyBaseShaders(type: Copy) { copy {
from '../../../data/shaders/base' from '../../../data/shaders/base'
into "assets/shaders/base" into "assets/shaders/base"
include '*.spv' include '*.spv'
} }
task copyShaders(type: Copy) { copy {
from '../../../data/shaders/triangle' from '../../../data/shaders/triangle'
into "assets/shaders/triangle" into "assets/shaders/triangle"
include '*.spv' include '*.spv'
}
} }
preBuild.dependsOn copyRes preBuild.dependsOn copyTask
preBuild.dependsOn copyBaseShaders
preBuild.dependsOn copyShaders