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 22cd generated/include 23py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_safe_struct.h 24py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_safe_struct.cpp 25py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_struct_size_helper.h 26py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_struct_size_helper.c 27py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_enum_string_helper.h 28py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_object_types.h 29py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_dispatch_table_helper.h 30py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml thread_check.h 31py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml parameter_validation.cpp 32py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml unique_objects_wrappers.h 33py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_layer_dispatch_table.h 34py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_extension_helper.h 35py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml object_tracker.cpp 36py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_typemap_helper.h 37 38set SPIRV_TOOLS_PATH=../../third_party/shaderc/third_party/spirv-tools 39set SPIRV_TOOLS_UUID=spirv_tools_uuid.txt 40 41if exist %SPIRV_TOOLS_PATH% ( 42 43 echo Found spirv-tools, using git_dir for external_revision_generator.py 44 py -3 ../../../scripts/external_revision_generator.py ^ 45 --git_dir %SPIRV_TOOLS_PATH% ^ 46 -s SPIRV_TOOLS_COMMIT_ID ^ 47 -o spirv_tools_commit_id.h 48 49) else ( 50 51 echo No spirv-tools git_dir found, generating UUID for external_revision_generator.py 52 53 REM Ensure uuidgen is installed, this should error if not found 54 uuidgen.exe -v 55 56 uuidgen.exe > %SPIRV_TOOLS_UUID% 57 type %SPIRV_TOOLS_UUID% 58 py -3 ../../../scripts/external_revision_generator.py ^ 59 --rev_file %SPIRV_TOOLS_UUID% ^ 60 -s SPIRV_TOOLS_COMMIT_ID ^ 61 -o spirv_tools_commit_id.h 62 63) 64 65cd ../.. 66 67