1@echo off 2REM # Copyright 2015 The Android Open Source Project 3REM # Copyright (C) 2015 Valve Corporation 4REM 5REM # Licensed under the Apache License, Version 2.0 (the "License"); 6REM # you may not use this file except in compliance with the License. 7REM # You may obtain a copy of the License at 8REM 9REM # http://www.apache.org/licenses/LICENSE-2.0 10REM 11REM # Unless required by applicable law or agreed to in writing, software 12REM # distributed under the License is distributed on an "AS IS" BASIS, 13REM # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14REM # See the License for the specific language governing permissions and 15REM # limitations under the License. 16 17if exist generated ( 18 rmdir /s /q generated 19) 20mkdir generated\include generated\common 21 22set HEADERS_REGISTRY_PATH=%CD%/third_party/Vulkan-Headers/registry 23 24cd generated/include 25py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% vk_safe_struct.h 26py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% vk_safe_struct.cpp 27py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% vk_enum_string_helper.h 28py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% vk_object_types.h 29py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% vk_dispatch_table_helper.h 30py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% thread_safety.cpp 31py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% thread_safety.h 32py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% parameter_validation.cpp 33py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% parameter_validation.h 34py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% vk_layer_dispatch_table.h 35py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% vk_extension_helper.h 36py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% vk_typemap_helper.h 37 38py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% object_tracker.cpp 39py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% object_tracker.h 40py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% layer_chassis_dispatch.cpp 41py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% layer_chassis_dispatch.h 42py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% chassis.cpp 43py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGISTRY_PATH% chassis.h 44 45set SPIRV_TOOLS_PATH=../../third_party/shaderc/third_party/spirv-tools 46set SPIRV_TOOLS_UUID=spirv_tools_uuid.txt 47 48if exist %SPIRV_TOOLS_PATH% ( 49 50 echo Found spirv-tools, using git_dir for external_revision_generator.py 51 py -3 ../../../scripts/external_revision_generator.py ^ 52 --git_dir %SPIRV_TOOLS_PATH% ^ 53 -s SPIRV_TOOLS_COMMIT_ID ^ 54 -o spirv_tools_commit_id.h 55 56) else ( 57 58 echo No spirv-tools git_dir found, generating UUID for external_revision_generator.py 59 60 REM Ensure uuidgen is installed, this should error if not found 61 uuidgen.exe -v 62 63 uuidgen.exe > %SPIRV_TOOLS_UUID% 64 type %SPIRV_TOOLS_UUID% 65 py -3 ../../../scripts/external_revision_generator.py ^ 66 --rev_file %SPIRV_TOOLS_UUID% ^ 67 -s SPIRV_TOOLS_COMMIT_ID ^ 68 -o spirv_tools_commit_id.h 69 70) 71 72cd ../.. 73 74