mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 00:57:44 -04:00
e74bd3b32b
* ci: bring over some of my code to enable the process * ci: cleanup builds a bit and add release stuff * ci: fix paths and such after debugging * ci: fix flowchart * cmake: easily toggle between building everything dyn or statically linked * ci: build release artifacts statically linked * ci: fix some issues after testing once again, linux binaries are still too big
56 lines
1.7 KiB
CMake
56 lines
1.7 KiB
CMake
add_library(compiler
|
|
emitter/CallingConvention.cpp
|
|
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/Asm.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/State.cpp
|
|
compiler/compilation/Static.cpp
|
|
compiler/Util.cpp
|
|
data_compiler/game_text.cpp
|
|
data_compiler/dir_tpages.cpp
|
|
data_compiler/DataObjectGenerator.cpp
|
|
data_compiler/game_count.cpp
|
|
data_compiler/game_subtitle.cpp
|
|
debugger/Debugger.cpp
|
|
debugger/DebugInfo.cpp
|
|
listener/Listener.cpp
|
|
listener/MemoryMap.cpp
|
|
make/MakeSystem.cpp
|
|
make/Tool.cpp
|
|
make/Tools.cpp
|
|
regalloc/IRegister.cpp
|
|
regalloc/Allocator.cpp
|
|
regalloc/allocator_interface.cpp
|
|
regalloc/Allocator_v2.cpp
|
|
)
|
|
|
|
target_link_libraries(compiler common Zydis)
|
|
|
|
if (WIN32)
|
|
target_link_libraries(compiler mman)
|
|
endif ()
|
|
|
|
add_executable(goalc main.cpp)
|
|
target_link_libraries(goalc common Zydis compiler)
|
|
|