Skip to content

Commit

Permalink
apidump: Change gn json file generator filename output
Browse files Browse the repository at this point in the history
The gn build json file generator script needs to modify the
default VulkanTools json filename format to match what ANGLE
expects, i.e.:
    VkLayer_api_dump.json -> VkLayer_lunarg_api_dump.json
  • Loading branch information
mark-lunarg authored and charles-lunarg committed Jun 7, 2024
1 parent e7574a2 commit d6e5485
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/gn/generate_vulkantools_layers_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ def main():
if not json_in_name.endswith('.json.in'):
continue
json_in_fname = os.path.basename(json_in_name)
layer_name = json_in_fname[:-len('.json.in')]
# VulkanTools repository json.in filenames omit the "_lunarg_"
corrected_vt_layer_name = json_in_fname.replace("VkLayer_", "VkLayer_lunarg_")
layer_name = corrected_vt_layer_name[:-len('.json.in')]
layer_lib_name = layer_name + file_type_suffix
json_out_fname = os.path.join(target_dir, json_in_fname[:-len('.in')])
json_out_fname = os.path.join(target_dir, corrected_vt_layer_name[:-len('.in')])
with open(json_out_fname,'w') as json_out_file, \
open(json_in_name) as infile:
for line in infile:
Expand Down

0 comments on commit d6e5485

Please sign in to comment.