apply plugin: 'com.android.application'
apply from: '../gradle/outputfilename.gradle'
android {
compileSdkVersion 26
defaultConfig {
applicationId "de.saschawillems.vulkanIndirectdraw"
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'
path "CMakeLists.txt"
task copyTask {
copy {
from '../../common/res/drawable'
into "src/main/res/drawable"
include 'icon.png'
from '../../../data/shaders/glsl/base'
into 'assets/shaders/glsl/base'
include '*.spv'
from '../../../data/shaders/glsl/indirectdraw'
into 'assets/shaders/glsl/indirectdraw'
include '*.*'
from '../../../data/models'
into 'assets/models'
include 'plants.gltf'
include 'plane_circle.gltf'
include 'sphere.gltf'
from '../../../data/textures'
into 'assets/textures'
include 'texturearray_plants_rgba.ktx'
include 'ground_dry_rgba.ktx'
preBuild.dependsOn copyTask