Cody Northrop | 4a72352 | 2016-02-24 12:37:37 -0700 | [diff] [blame^] | 1 | @echo off |
| 2 | REM # Copyright 2015 The Android Open Source Project |
| 3 | REM # Copyright (C) 2015 Valve Corporation |
| 4 | REM |
| 5 | REM # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | REM # you may not use this file except in compliance with the License. |
| 7 | REM # You may obtain a copy of the License at |
| 8 | REM |
| 9 | REM # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | REM |
| 11 | REM # Unless required by applicable law or agreed to in writing, software |
| 12 | REM # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | REM # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | REM # See the License for the specific language governing permissions and |
| 15 | REM # limitations under the License. |
| 16 | |
| 17 | if exist generated ( |
| 18 | rmdir /s /q generated |
| 19 | ) |
| 20 | mkdir generated |
| 21 | |
| 22 | python ../vk-generate.py dispatch-table-ops layer > generated/vk_dispatch_table_helper.h |
| 23 | |
| 24 | python ../vk_helper.py --gen_enum_string_helper ../include/vulkan/vulkan.h --abs_out_dir generated |
| 25 | python ../vk_helper.py --gen_struct_wrappers ../include/vulkan/vulkan.h --abs_out_dir generated |
| 26 | |
| 27 | python ../vk-layer-generate.py object_tracker ../include/vulkan/vulkan.h > generated/object_tracker.cpp |
| 28 | python ../vk-layer-generate.py unique_objects ../include/vulkan/vulkan.h > generated/unique_objects.cpp |
| 29 | |
| 30 | cd generated |
| 31 | python ../../genvk.py threading -registry ../../vk.xml thread_check.h |
| 32 | python ../../genvk.py paramchecker -registry ../../vk.xml param_check.h |
| 33 | cd .. |