Updated android build files to new asset/shader folder structure

Make use of global gradle variables
Updated gradle
This commit is contained in:
Sascha Willems 2023-05-10 20:33:19 +02:00
parent c13ba757b7
commit eb3d68fb5c
79 changed files with 750 additions and 665 deletions

View file

@ -2,11 +2,11 @@ apply plugin: 'com.android.application'
apply from: '../gradle/outputfilename.gradle'
android {
compileSdkVersion 26
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "de.saschawillems.vulkanPBRBasic"
minSdkVersion 19
targetSdkVersion 26
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
ndk {
@ -43,37 +43,37 @@ task copyTask {
}
copy {
from '../../../data/shaders/glsl/base'
from rootProject.ext.shaderPath + 'glsl/base'
into 'assets/shaders/glsl/base'
include '*.spv'
}
copy {
from '../../../data/shaders/glsl/pbrbasic'
from rootProject.ext.shaderPath + 'glsl/pbrbasic'
into 'assets/shaders/glsl/pbrbasic'
include '*.*'
}
copy {
from '../../../data/models'
from rootProject.ext.assetPath + 'models'
into 'assets/models'
include 'sphere.gltf'
}
copy {
from '../../../data/models'
from rootProject.ext.assetPath + 'models'
into 'assets/models'
include 'teapot.gltf'
}
copy {
from '../../../data/models'
from rootProject.ext.assetPath + 'models'
into 'assets/models'
include 'torusknot.gltf'
}
copy {
from '../../../data/models'
from rootProject.ext.assetPath + 'models'
into 'assets/models'
include 'venus.gltf'
}