diff options
Diffstat (limited to 'scripts/generate_source.py')
| -rwxr-xr-x | scripts/generate_source.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/generate_source.py b/scripts/generate_source.py index a2002aae..5fb7941e 100755 --- a/scripts/generate_source.py +++ b/scripts/generate_source.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 -# Copyright (c) 2019 The Khronos Group Inc. -# Copyright (c) 2019 Valve Corporation -# Copyright (c) 2019 LunarG, Inc. -# Copyright (c) 2019 Google Inc. +# Copyright (c) 2019-2023 The Khronos Group Inc. +# Copyright (c) 2019-2023 Valve Corporation +# Copyright (c) 2019-2023 LunarG, Inc. +# Copyright (c) 2019-2023 Google Inc. +# Copyright (c) 2023-2023 RasterGrid Kft. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -33,6 +34,10 @@ verify_exclude = ['.clang-format'] def main(argv): parser = argparse.ArgumentParser(description='Generate source code for this repository') + parser.add_argument('--api', + default='vulkan', + choices=['vulkan', 'vulkansc'], + help='Specify API name to generate') parser.add_argument('registry', metavar='REGISTRY_PATH', help='path to the Vulkan-Headers registry directory') group = parser.add_mutually_exclusive_group() group.add_argument('-i', '--incremental', action='store_true', help='only update repo files that change') @@ -65,6 +70,7 @@ def main(argv): output_path = common_codegen.repo_relative(path) cmd = [common_codegen.repo_relative(os.path.join('scripts','kvt_genvk.py')), + '-api', args.api, '-registry', os.path.abspath(os.path.join(args.registry, 'vk.xml')), '-quiet', '-directory', output_path, filename] print(' '.join(cmd)) |
