2018-05-10 17:31:30 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
apply from: '../gradle/outputfilename.gradle'
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
compileSdkVersion 26
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId "de.saschawillems.vulkanParallaxmapping"
|
|
|
|
|
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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-04 13:48:09 +02:00
|
|
|
task copyTask {
|
2018-05-10 17:31:30 +02:00
|
|
|
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/parallaxmapping'
|
|
|
|
|
into 'assets/shaders/parallaxmapping'
|
|
|
|
|
include '*.*'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
copy {
|
|
|
|
|
from '../../../data/models'
|
|
|
|
|
into 'assets/models'
|
|
|
|
|
include 'plane_z.obj'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
copy {
|
|
|
|
|
from '../../../data/textures'
|
|
|
|
|
into 'assets/textures'
|
2019-09-06 19:18:15 +02:00
|
|
|
include 'rocks_normal_height_rgba.ktx'
|
2018-05-10 17:31:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
copy {
|
|
|
|
|
from '../../../data/textures'
|
|
|
|
|
into 'assets/textures'
|
|
|
|
|
include 'rocks_color*.ktx'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
preBuild.dependsOn copyTask
|