mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
953c1512db
* begin support for v2 * export game text * generate text files * working text load * fix windows * add test and clean up game tests a bit * load the right file * add separate program to launch the data compiler * add offline test script
50 lines
1.7 KiB
CMake
50 lines
1.7 KiB
CMake
add_library(compiler
|
|
SHARED
|
|
emitter/CodeTester.cpp
|
|
emitter/ObjectFileData.cpp
|
|
emitter/ObjectGenerator.cpp
|
|
emitter/Register.cpp
|
|
debugger/disassemble.cpp
|
|
compiler/Compiler.cpp
|
|
compiler/Env.cpp
|
|
compiler/Val.cpp
|
|
compiler/IR.cpp
|
|
compiler/CompilerSettings.cpp
|
|
compiler/CodeGenerator.cpp
|
|
compiler/StaticObject.cpp
|
|
compiler/compilation/Atoms.cpp
|
|
compiler/compilation/CompilerControl.cpp
|
|
compiler/compilation/Block.cpp
|
|
compiler/compilation/Macro.cpp
|
|
compiler/compilation/Math.cpp
|
|
compiler/compilation/Define.cpp
|
|
compiler/compilation/Debug.cpp
|
|
compiler/compilation/Function.cpp
|
|
compiler/compilation/ControlFlow.cpp
|
|
compiler/compilation/Type.cpp
|
|
compiler/compilation/Static.cpp
|
|
compiler/Util.cpp
|
|
data_compiler/game_text.cpp
|
|
data_compiler/DataObjectGenerator.cpp
|
|
debugger/Debugger.cpp
|
|
debugger/DebugInfo.cpp
|
|
logger/Logger.cpp
|
|
listener/Listener.cpp
|
|
listener/MemoryMap.cpp
|
|
regalloc/IRegister.cpp
|
|
regalloc/Allocator.cpp
|
|
regalloc/allocate.cpp
|
|
regalloc/allocate_common.cpp
|
|
compiler/Compiler.cpp)
|
|
|
|
add_executable(goalc main.cpp)
|
|
add_executable(data_compiler data_compiler.cpp)
|
|
|
|
IF (WIN32)
|
|
target_link_libraries(compiler goos type_system mman common_util spdlog cross_os_debug cross_sockets Zydis)
|
|
ELSE ()
|
|
target_link_libraries(compiler goos type_system common_util spdlog cross_os_debug cross_sockets Zydis)
|
|
ENDIF ()
|
|
|
|
target_link_libraries(goalc goos compiler type_system)
|
|
target_link_libraries(data_compiler goos compiler type_system) |