aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_source.py
diff options
context:
space:
mode:
authorspencer-lunarg <spencer@lunarg.com>2025-12-15 17:06:35 -0500
committerSpencer Fricke <115671160+spencer-lunarg@users.noreply.github.com>2025-12-15 17:52:25 -0500
commit2a288f8284243645a8a50fe5f4c53209fdbd7905 (patch)
treea7ff397e0767ab22f88e2c17642b759c45341198 /scripts/generate_source.py
parent1e62683bc7b7a46895843b6d67f72cb56b4ba42f (diff)
downloadusermoji-2a288f8284243645a8a50fe5f4c53209fdbd7905.tar.xz
scripts: Fix clang-format not running
Diffstat (limited to 'scripts/generate_source.py')
-rwxr-xr-xscripts/generate_source.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/generate_source.py b/scripts/generate_source.py
index 82bc213e..59314533 100755
--- a/scripts/generate_source.py
+++ b/scripts/generate_source.py
@@ -177,7 +177,7 @@ def main(argv):
group.add_argument('-o', action='store', dest='directory', help='Create target and related files in specified directory')
args = parser.parse_args(argv)
- repo_dir = common_codegen.repo_relative('.')
+ repo_dir = common_codegen.RepoRelative('.')
registry = os.path.abspath(os.path.join(args.registry, 'vk.xml'))
video_registry = os.path.abspath(os.path.join(args.registry, 'video.xml'))
@@ -255,7 +255,7 @@ def main(argv):
# write out the header version used to generate the code to a checked in CMake file
if args.generated_version:
json_files = []
- json_files.append(common_codegen.repo_relative('icd/VkICD_mock_icd.json.in'))
+ json_files.append(common_codegen.RepoRelative('icd/VkICD_mock_icd.json.in'))
for json_file in json_files:
with open(json_file) as f:
data = json.load(f)
@@ -266,7 +266,7 @@ def main(argv):
f.write(json.dumps(data, indent=4))
# Update the CMake project version
- with open(common_codegen.repo_relative('CMakeLists.txt'), "r+") as f:
+ with open(common_codegen.RepoRelative('CMakeLists.txt'), "r+") as f:
data = f.read()
f.seek(0)
f.write(re.sub("project.*VERSION.*", f"project(Vulkan-Tools VERSION {args.generated_version})", data))