gradle: Fix parsing OpenXR version

This commit is contained in:
Ryan Pavlik 2023-03-29 14:45:18 -05:00
parent 048552f914
commit 8bc8abe904

View file

@ -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)
} }