procedural-3d-engine/android/examples/hdr/build.gradle
2018-05-10 17:31:30 +02:00

96 lines
No EOL
1.9 KiB
Groovy

apply plugin: 'com.android.application'
apply from: '../gradle/outputfilename.gradle'
android {
compileSdkVersion 26
defaultConfig {
applicationId "de.saschawillems.vulkanHDR"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a"
}
externalNativeBuild {
cmake {
cppFlags "-std=c++14"
arguments "-DANDROID_STL=c++_shared", '-DANDROID_TOOLCHAIN=clang'
}
}
}
sourceSets {
main.assets.srcDirs = ['assets']
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
}
task copyTask << {
copy {
from '../../common/res/drawable'
into "src/main/res/drawable"
include 'icon.png'
}
copy {
from '../../../data/shaders/base'
into "assets/shaders/base"
include '*.spv'
}
copy {
from '../../../data/shaders/hdr'
into 'assets/shaders/hdr'
include '*.*'
}
copy {
from '../../../data/models'
into 'assets/models'
include 'cube.obj'
}
copy {
from '../../../data/models'
into 'assets/models'
include 'geosphere.obj'
}
copy {
from '../../../data/models'
into 'assets/models'
include 'teapot.dae'
}
copy {
from '../../../data/models'
into 'assets/models'
include 'torusknot.obj'
}
copy {
from '../../../data/models'
into 'assets/models'
include 'venus.fbx'
}
copy {
from '../../../data/textures/hdr'
into 'assets/textures/hdr'
include 'uffizi_cube.ktx'
}
}
preBuild.dependsOn copyTask