2022-04-20 20:05:31 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2022, Collabora, Ltd.
|
2021-11-11 23:41:58 +00:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2022-04-20 20:05:31 +00:00
|
|
|
with section("parse"):
|
|
|
|
|
|
|
|
# Specify structure for custom cmake functions
|
|
|
|
additional_commands = {
|
|
|
|
"generate_openxr_runtime_manifest_at_install": {
|
|
|
|
"kwargs": {
|
|
|
|
"DESTINATION": 1,
|
|
|
|
"MANIFEST_TEMPLATE": 1,
|
|
|
|
"OUT_FILENAME": 1,
|
|
|
|
"RELATIVE_RUNTIME_DIR": 1,
|
|
|
|
"RUNTIME_DIR_RELATIVE_TO_MANIFEST": 1,
|
|
|
|
"RUNTIME_TARGET": 1,
|
|
|
|
},
|
|
|
|
"pargs": {"flags": ["ABSOLUTE_RUNTIME_PATH"], "nargs": "*"},
|
|
|
|
},
|
|
|
|
"generate_openxr_runtime_manifest_buildtree": {
|
|
|
|
"kwargs": {"MANIFEST_TEMPLATE": 1, "OUT_FILE": 1, "RUNTIME_TARGET": 1},
|
|
|
|
"pargs": {"flags": [], "nargs": "*"},
|
|
|
|
},
|
2022-05-03 16:57:38 +00:00
|
|
|
"option_with_deps": {
|
|
|
|
"kwargs": {"DEFAULT": 1, "DEPENDS": "+"},
|
|
|
|
"pargs": {"flags": [], "nargs": "2+"},
|
|
|
|
},
|
2022-04-20 20:05:31 +00:00
|
|
|
}
|
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
with section("format"):
|
|
|
|
line_width = 100
|
|
|
|
tab_size = 8
|
|
|
|
use_tabchars = True
|
|
|
|
fractional_tab_policy = "use-space"
|
|
|
|
|
|
|
|
max_prefix_chars = 4
|
|
|
|
|
|
|
|
dangle_parens = True
|
|
|
|
dangle_align = "prefix-indent"
|
|
|
|
max_pargs_hwrap = 4
|
|
|
|
max_rows_cmdline = 1
|
|
|
|
|
2022-04-20 20:05:31 +00:00
|
|
|
keyword_case = "upper"
|
2021-11-11 23:41:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Do not reflow comments
|
|
|
|
|
|
|
|
with section("markup"):
|
|
|
|
enable_markup = False
|