The open source OpenXR runtime

scripts: Add copybara for updating OpenXR

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2447>

authored by

Rylie Pavlik and committed by
Marge Bot
438adbaa 0e90861b

+39
+39
scripts/copy.bara.sky
··· 198 198 core.move("", "src/external/jnipp/"), 199 199 ], 200 200 ) 201 + 202 + 203 + # update-openxr: Update OpenXR headers 204 + core.workflow( 205 + name="update-openxr", 206 + custom_rev_id="OPENXR_REV_ID", 207 + origin=git.github_origin( 208 + url="https://github.com/KhronosGroup/OpenXR-SDK.git", 209 + ref="main", 210 + describe_version=True, 211 + # version_selector=core.latest_version( 212 + # format="refs/tags/release-${n0}.${n1}.${n2}", 213 + # regex_groups={ 214 + # "n0": "1", 215 + # "n1": "[0-9]+", 216 + # "n2": "[0-9]+", 217 + # }, 218 + # ), 219 + ), 220 + destination=git.destination( 221 + url=gitlab_url, 222 + fetch="main", 223 + push="update-openxr", 224 + ), 225 + destination_files=glob( 226 + ["src/external/openxr_includes/openxr/openxr*.h"], 227 + exclude=["src/external/openxr_includes/openxr/openxr_extension_helpers.h"], 228 + ), 229 + origin_files=glob(["include/openxr/*.h"]), 230 + mode="SQUASH", 231 + authoring=authoring.pass_thru(author), 232 + transformations=[ 233 + metadata.expose_label("GIT_DESCRIBE_CHANGE_VERSION"), 234 + metadata.replace_message( 235 + "external/openxr_includes: Update OpenXR headers from upstream ${GIT_DESCRIBE_CHANGE_VERSION}" 236 + ), 237 + core.move("include/openxr/", "src/external/openxr_includes/openxr/"), 238 + ], 239 + )