Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright 2015 The Android Open Source Project |
Mark Lobodzinski | 0d054fe | 2015-12-30 08:16:12 -0700 | [diff] [blame] | 4 | # Copyright (C) 2015 Valve Corporation |
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 5 | |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | |
Courtney Goeltzenleuchter | 09577d9 | 2016-03-22 16:27:25 -0600 | [diff] [blame] | 18 | dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) |
| 19 | cd $dir |
| 20 | |
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 21 | rm -rf generated |
| 22 | mkdir -p generated |
Mun, Gwan-gyeong | 50dd2e6 | 2016-02-22 20:29:23 +0900 | [diff] [blame] | 23 | python ../vk-generate.py Android dispatch-table-ops layer > generated/vk_dispatch_table_helper.h |
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 24 | |
David Pinedo | 9316d3b | 2015-11-06 12:54:48 -0700 | [diff] [blame] | 25 | python ../vk_helper.py --gen_enum_string_helper ../include/vulkan/vulkan.h --abs_out_dir generated |
| 26 | python ../vk_helper.py --gen_struct_wrappers ../include/vulkan/vulkan.h --abs_out_dir generated |
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 27 | |
Mun, Gwan-gyeong | 50dd2e6 | 2016-02-22 20:29:23 +0900 | [diff] [blame] | 28 | python ../vk-layer-generate.py Android object_tracker ../include/vulkan/vulkan.h > generated/object_tracker.cpp |
| 29 | python ../vk-layer-generate.py Android unique_objects ../include/vulkan/vulkan.h > generated/unique_objects.cpp |
Mike Stroyan | 3409fcd | 2016-01-29 15:11:28 -0700 | [diff] [blame] | 30 | ( cd generated; python ../../genvk.py threading -registry ../../vk.xml thread_check.h ) |
Mark Lobodzinski | 739391a | 2016-03-17 15:08:18 -0600 | [diff] [blame] | 31 | ( cd generated; python ../../genvk.py paramchecker -registry ../../vk.xml parameter_validation.h ) |
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 32 | |
Courtney Goeltzenleuchter | 09577d9 | 2016-03-22 16:27:25 -0600 | [diff] [blame] | 33 | exit 0 |