Compare commits

..

No commits in common. "f006214af68ca015794e4ba1b81ce18d85a0c315" and "5a77320947058e39b928c80f77afc3b64075fffd" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View file

@ -35,10 +35,8 @@ ExternalProject_Get_Property(DirectX SOURCE_DIR)
include_directories(AFTER ${SOURCE_DIR}/8.0/include/) include_directories(AFTER ${SOURCE_DIR}/8.0/include/)
link_directories(AFTER ${SOURCE_DIR}/8.0/lib/) link_directories(AFTER ${SOURCE_DIR}/8.0/lib/)
find_package (Python3 REQUIRED COMPONENTS Interpreter)
add_custom_target( add_custom_target(
MAKE_D3D8_VMT ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/src/make_D3D8_VMT.py ${CMAKE_CURRENT_SOURCE_DIR}/src/D3D8_VMT.hpp ${SOURCE_DIR}/8.0/include/d3d8.h MAKE_D3D8_VMT python ${CMAKE_CURRENT_SOURCE_DIR}/src/make_D3D8_VMT.py ${CMAKE_CURRENT_SOURCE_DIR}/src/D3D8_VMT.hpp ${SOURCE_DIR}/8.0/include/d3d8.h
DEPENDS DirectX DEPENDS DirectX
) )

View file

@ -27,5 +27,5 @@ with open(outfile,"w") as ofh:
for name in sorted(VMTs.keys()): for name in sorted(VMTs.keys()):
print(f"namespace {name} {{",file=ofh) print(f"namespace {name} {{",file=ofh)
for method,idx in sorted(VMTs[name].items(),key=lambda v:v[1]): for method,idx in sorted(VMTs[name].items(),key=lambda v:v[1]):
print(f" const size_t m_{method} = {idx};",file=ofh) print(f"\tconst size_t m_{method} = {idx};",file=ofh)
print("}",file=ofh) print("}",file=ofh)