Files
filament/android/samples/sample-material-builder/build.gradle
Romain Guy 8eaa1f5e88 Add options to skip samples (#2163)
-DFILAMENT_SKIP_SAMPLES=ON with CMake
-Pfilament_skip_samples with gradle

This change also renames CMake options specific to Filament
to avoid clashes with subprojects.
2020-02-24 18:15:33 -08:00

47 lines
1.4 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: FilamentToolsPlugin
project.ext.isSample = true
filamentTools {
meshInputFile = file("../../../third_party/models/shader_ball/shader_ball.obj")
meshOutputDir = file("src/main/assets/models")
iblInputFile = file("../../../third_party/environments/flower_road_no_sun_2k.hdr")
iblOutputDir = file("src/main/assets/envs")
}
clean.doFirst {
delete "src/main/assets"
}
android {
compileSdkVersion versions.compileSdk
defaultConfig {
applicationId "com.google.android.filament.material_builder"
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
}
// The filamat library has two variants: full and lite. Here we default to the "full" variant.
// Replace "full" with "lite" to use the filamat-lite variant, which has a smaller binary size
// but comes with certain restrictions. See "Filamat Lite" in libs/filamat/README.md.
defaultConfig {
missingDimensionStrategy 'functionality', 'full'
}
// We use the .filamat extension for materials compiled with matc
// Telling aapt to not compress them allows to load them efficiently
aaptOptions {
noCompress 'filamat'
}
}
dependencies {
implementation deps.kotlin
implementation project(':filament-android')
implementation project(':filamat-android')
}