Initial commit
Co-authored-by: Patrick Nicolas <patricknicolas@laposte.net>
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.2.2'
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion "30.0.3"
|
||||
ndkVersion "25.1.8937393"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.meumeu.wivrn"
|
||||
// for Vulkan, need at least 24
|
||||
// for AImage_getHardwareBuffer, API 26
|
||||
minSdkVersion 29
|
||||
compileSdkVersion 29
|
||||
|
||||
versionName = "1.0"
|
||||
versionCode = 1
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
//abiFilters "armeabi-v7a", 'arm64-v8a'//, 'x86', 'x86_64'
|
||||
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DUSE_SYSTEM_FREETYPE=OFF'
|
||||
resValue "string", "app_name", "WiVRn"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flavorDimensions "device"
|
||||
|
||||
productFlavors {
|
||||
oculus {
|
||||
dimension "device"
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
abiFilters 'arm64-v8a'
|
||||
arguments '-DOCULUS_SDK=' + file('OculusSDK').absolutePath
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
res.srcDir 'resources'
|
||||
}
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
version '3.22.1'
|
||||
path 'CMakeLists.txt'
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user