mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
t/oxr_android: Set package version from Git
This commit is contained in:
parent
36a9273db2
commit
55eab2d79b
|
@ -15,6 +15,9 @@ buildscript {
|
||||||
plugins {
|
plugins {
|
||||||
// Used for getting the eigen dir from local.properties
|
// Used for getting the eigen dir from local.properties
|
||||||
id 'com.github.b3er.local.properties' version '1.1'
|
id 'com.github.b3er.local.properties' version '1.1'
|
||||||
|
|
||||||
|
// For getting git describe data and formatting it how Android wants.
|
||||||
|
id "com.gladed.androidgitversion" version "0.4.13"
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
|
|
||||||
|
androidGitVersion {
|
||||||
|
tagPattern(/^v[0-9]+.*/)
|
||||||
|
codeFormat = 'MNNPPPBBB'
|
||||||
|
}
|
||||||
android {
|
android {
|
||||||
compileSdkVersion project.sharedTargetSdk
|
compileSdkVersion project.sharedTargetSdk
|
||||||
buildToolsVersion '30.0.2'
|
buildToolsVersion '30.0.2'
|
||||||
|
@ -14,8 +18,9 @@ android {
|
||||||
applicationId 'org.freedesktop.monado.openxr_runtime'
|
applicationId 'org.freedesktop.monado.openxr_runtime'
|
||||||
minSdkVersion project.sharedMinSdk
|
minSdkVersion project.sharedMinSdk
|
||||||
targetSdkVersion project.sharedTargetSdk
|
targetSdkVersion project.sharedTargetSdk
|
||||||
versionCode 1
|
|
||||||
versionName '1.0'
|
versionCode androidGitVersion.code()
|
||||||
|
versionName androidGitVersion.name()
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
arguments "-DEIGEN3_INCLUDE_DIR=${project.eigenIncludeDir}", "-DANDROID_PLATFORM=26", "-DANDROID_STL=c++_shared", "-DANDROID_ARM_NEON=TRUE"
|
arguments "-DEIGEN3_INCLUDE_DIR=${project.eigenIncludeDir}", "-DANDROID_PLATFORM=26", "-DANDROID_STL=c++_shared", "-DANDROID_ARM_NEON=TRUE"
|
||||||
|
|
Loading…
Reference in a new issue