mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
gradle: Fix parsing OpenXR version
This commit is contained in:
parent
048552f914
commit
8bc8abe904
|
@ -31,7 +31,7 @@ def parseOpenXRVersion(def fn) {
|
||||||
def matches = file(fn).readLines().find {
|
def matches = file(fn).readLines().find {
|
||||||
it.contains('XR_CURRENT_API_VERSION')
|
it.contains('XR_CURRENT_API_VERSION')
|
||||||
} =~ ~/XR_MAKE_VERSION\(([^)]+)\)/
|
} =~ ~/XR_MAKE_VERSION\(([^)]+)\)/
|
||||||
def components = matches[0][1].split(',').each { it.replace(' ', '').trim() }
|
def components = matches[0][1].split(',').collect { it.replace(' ', '').trim() }
|
||||||
String.join('.', components)
|
String.join('.', components)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue