mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: build instructions for fadec on cmake build
This commit is contained in:
@@ -47,6 +47,24 @@ if(WIN32)
|
|||||||
target_link_libraries(raw_pdb PRIVATE rpcrt4)
|
target_link_libraries(raw_pdb PRIVATE rpcrt4)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Fadec — generate decode tables (.inc files) from instrs.txt at configure time
|
||||||
|
find_package(Python3 3.9 REQUIRED)
|
||||||
|
set(FADEC_DIR "${CMAKE_SOURCE_DIR}/third_party/fadec")
|
||||||
|
if(NOT EXISTS "${FADEC_DIR}/fadec-decode-public.inc")
|
||||||
|
message(STATUS "Generating fadec decode tables...")
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${Python3_EXECUTABLE} "${FADEC_DIR}/parseinstrs.py" decode
|
||||||
|
"${FADEC_DIR}/instrs.txt"
|
||||||
|
"${FADEC_DIR}/fadec-decode-public.inc"
|
||||||
|
"${FADEC_DIR}/fadec-decode-private.inc"
|
||||||
|
--32 --64
|
||||||
|
RESULT_VARIABLE _fadec_result
|
||||||
|
)
|
||||||
|
if(NOT _fadec_result EQUAL 0)
|
||||||
|
message(FATAL_ERROR "Failed to generate fadec decode tables")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(Reclass
|
add_executable(Reclass
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
src/editor.h
|
src/editor.h
|
||||||
|
|||||||
Reference in New Issue
Block a user