Single gradle asset copy task
This commit is contained in:
parent
5fe9f91529
commit
20367d512a
1 changed files with 19 additions and 19 deletions
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue