aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_source.py
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2023-06-15 12:22:52 -0600
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2023-06-16 18:05:38 -0600
commitca8bb4ee3cc9afdeca4b49c5ef758bad7cce2c72 (patch)
treea289dd7d1fb7a38a783c5e54a044c822aef8582d /scripts/generate_source.py
parent7040985c553c1a5ecf998bc61e53e5ae76fd41c1 (diff)
downloadusermoji-ca8bb4ee3cc9afdeca4b49c5ef758bad7cce2c72.tar.xz
icd: Move handwritten code into .cpp file
Takes the hand written portions of the mock_icd_generator.py and puts them in a .cpp file, then moves the code gen into function_declarations.h and function_definitions.h. This move makes it easier to maintain the C++ code that exists because it no longer lives in a python file. This commit does not make adding custom code easier, as it still is in the python file. The intent of this commit is to create a baseline that would allow such code to be put inside of C++ instead of python. Additionally, this commit removes egregious over engineering in the mock icd CMakeLists.txt. Things removed are macros that are only called once, foreach loops over single items, and replacing variables that had no solid reason to be a variable.
Diffstat (limited to 'scripts/generate_source.py')
-rwxr-xr-xscripts/generate_source.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate_source.py b/scripts/generate_source.py
index 5fb7941e..abd8a754 100755
--- a/scripts/generate_source.py
+++ b/scripts/generate_source.py
@@ -46,8 +46,8 @@ def main(argv):
# output paths and the list of files in the path
files_to_gen = {str(os.path.join('icd','generated')) : ['vk_typemap_helper.h',
- 'mock_icd.h',
- 'mock_icd.cpp'],
+ 'function_definitions.h',
+ 'function_declarations.h'],
str(os.path.join('vulkaninfo','generated')): ['vulkaninfo.hpp']}
#base directory for the source repository