parent
b4fccbd3d2
commit
f23b1892bc
237 changed files with 11401 additions and 0 deletions
72
android/examples/computeparticles/build.gradle
Normal file
72
android/examples/computeparticles/build.gradle
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
apply plugin: 'com.android.application'
|
||||
apply from: '../gradle/outputfilename.gradle'
|
||||
|
||||
android {
|
||||
compileSdkVersion 26
|
||||
defaultConfig {
|
||||
applicationId "de.saschawillems.vulkanComputeparticles"
|
||||
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/computeparticles'
|
||||
into 'assets/shaders/computeparticles'
|
||||
include '*.*'
|
||||
}
|
||||
|
||||
copy {
|
||||
from '../../../data/textures'
|
||||
into 'assets/textures'
|
||||
include 'particle01_rgba.ktx'
|
||||
}
|
||||
|
||||
copy {
|
||||
from '../../../data/textures'
|
||||
into 'assets/textures'
|
||||
include 'particle_gradient_rgba.ktx'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
preBuild.dependsOn copyTask
|
||||
Loading…
Add table
Add a link
Reference in a new issue