Write gen_defines.asm using a python script
authorCharles Giessen <charles@lunarg.com>
Fri, 9 Sep 2022 23:50:14 +0000 (17:50 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 18 Oct 2022 21:58:28 +0000 (15:58 -0600)
commitd12ff7d48181236b47f808173e044a11423c0f26
treec33fe1bdd8c84d946d5b9136c83fabb34de194bb
parenta5d92e3895ec15242aed3fe742ac8e832c8c2fce
Write gen_defines.asm using a python script

This allows cross compilation to enable unkonwn function handling as
gen_defines.asm will be generated without needing to run code meant for the
target platform. Previously, asm_offset.c wrote the gen_defines.asm file
by being run. Now, compilers emit their intermediate assembly output that the
parse_asm_values.py script knows how to find the relevant information from.

Additionally set the test framework `framework_config` build option to always
copy, instead of copy_if_different. This is needed since cmake wouldn't update
this file when changing from/to debug & release mode.
loader/CMakeLists.txt
loader/asm_offset.c
scripts/parse_asm_values.py [new file with mode: 0644]
tests/framework/CMakeLists.txt