2020-09-05 16:37:37 -04:00
|
|
|
add_library(compiler
|
2021-05-20 20:12:49 -04:00
|
|
|
emitter/CallingConvention.cpp
|
2020-09-05 16:37:37 -04:00
|
|
|
emitter/CodeTester.cpp
|
|
|
|
emitter/ObjectFileData.cpp
|
|
|
|
emitter/ObjectGenerator.cpp
|
|
|
|
emitter/Register.cpp
|
2020-11-13 22:33:57 -05:00
|
|
|
debugger/disassemble.cpp
|
2023-10-21 00:07:43 -04:00
|
|
|
build_level/common/build_level.cpp
|
|
|
|
build_level/jak1/build_level.cpp
|
|
|
|
build_level/jak2/build_level.cpp
|
|
|
|
build_level/collide/jak1/collide_bvh.cpp
|
|
|
|
build_level/collide/jak1/collide_drawable.cpp
|
|
|
|
build_level/collide/jak1/collide_pack.cpp
|
|
|
|
build_level/collide/jak2/collide.cpp
|
|
|
|
build_level/common/color_quantization.cpp
|
|
|
|
build_level/common/Entity.cpp
|
|
|
|
build_level/jak1/Entity.cpp
|
|
|
|
build_level/jak2/Entity.cpp
|
|
|
|
build_level/common/FileInfo.cpp
|
|
|
|
build_level/jak1/FileInfo.cpp
|
|
|
|
build_level/jak2/FileInfo.cpp
|
|
|
|
build_level/common/gltf_mesh_extract.cpp
|
|
|
|
build_level/jak1/LevelFile.cpp
|
|
|
|
build_level/jak2/LevelFile.cpp
|
|
|
|
build_level/common/ResLump.cpp
|
|
|
|
build_level/common/Tfrag.cpp
|
|
|
|
build_level/jak1/ambient.cpp
|
2020-09-05 16:37:37 -04:00
|
|
|
compiler/Compiler.cpp
|
|
|
|
compiler/Env.cpp
|
|
|
|
compiler/Val.cpp
|
|
|
|
compiler/IR.cpp
|
2020-09-12 13:11:42 -04:00
|
|
|
compiler/CompilerSettings.cpp
|
2020-09-05 16:37:37 -04:00
|
|
|
compiler/CodeGenerator.cpp
|
2020-09-12 13:11:42 -04:00
|
|
|
compiler/StaticObject.cpp
|
2021-04-18 19:51:15 -04:00
|
|
|
compiler/compilation/Asm.cpp
|
2020-09-06 12:45:31 -04:00
|
|
|
compiler/compilation/Atoms.cpp
|
|
|
|
compiler/compilation/CompilerControl.cpp
|
2022-04-07 19:13:22 -04:00
|
|
|
compiler/compilation/ConstantPropagation.cpp
|
2020-09-06 12:45:31 -04:00
|
|
|
compiler/compilation/Block.cpp
|
2020-09-06 17:42:20 -04:00
|
|
|
compiler/compilation/Macro.cpp
|
2020-09-12 20:41:12 -04:00
|
|
|
compiler/compilation/Math.cpp
|
2020-09-07 13:28:16 -04:00
|
|
|
compiler/compilation/Define.cpp
|
2020-10-31 14:07:43 -04:00
|
|
|
compiler/compilation/Debug.cpp
|
2020-09-12 13:11:42 -04:00
|
|
|
compiler/compilation/Function.cpp
|
2020-09-13 17:34:02 -04:00
|
|
|
compiler/compilation/ControlFlow.cpp
|
2020-09-17 21:47:52 -04:00
|
|
|
compiler/compilation/Type.cpp
|
2021-08-17 20:54:03 -04:00
|
|
|
compiler/compilation/State.cpp
|
2020-10-16 17:08:26 -04:00
|
|
|
compiler/compilation/Static.cpp
|
2020-09-06 12:45:31 -04:00
|
|
|
compiler/Util.cpp
|
2022-04-24 15:15:16 -04:00
|
|
|
data_compiler/game_text_common.cpp
|
2021-07-02 14:50:58 -04:00
|
|
|
data_compiler/dir_tpages.cpp
|
2020-11-24 20:48:38 -05:00
|
|
|
data_compiler/game_count.cpp
|
2022-06-11 11:32:27 -04:00
|
|
|
data_compiler/DataObjectGenerator.cpp
|
2020-10-31 14:07:43 -04:00
|
|
|
debugger/Debugger.cpp
|
2020-11-13 22:33:57 -05:00
|
|
|
debugger/DebugInfo.cpp
|
2020-10-31 14:07:43 -04:00
|
|
|
listener/Listener.cpp
|
2020-11-13 22:33:57 -05:00
|
|
|
listener/MemoryMap.cpp
|
2021-07-15 21:37:15 -04:00
|
|
|
make/MakeSystem.cpp
|
|
|
|
make/Tool.cpp
|
|
|
|
make/Tools.cpp
|
2020-09-05 16:37:37 -04:00
|
|
|
regalloc/IRegister.cpp
|
|
|
|
regalloc/Allocator.cpp
|
2021-08-01 17:46:55 -04:00
|
|
|
regalloc/allocator_interface.cpp
|
|
|
|
regalloc/Allocator_v2.cpp
|
2023-02-20 19:49:37 -05:00
|
|
|
compiler/docs/DocTypes.cpp)
|
2020-08-22 22:30:12 -04:00
|
|
|
|
2023-08-27 16:34:46 -04:00
|
|
|
target_link_libraries(compiler common Zydis tiny_gltf decomp)
|
2020-08-22 22:30:12 -04:00
|
|
|
|
2021-07-15 21:37:15 -04:00
|
|
|
if (WIN32)
|
2021-01-06 12:16:39 -05:00
|
|
|
target_link_libraries(compiler mman)
|
2021-07-15 21:37:15 -04:00
|
|
|
endif ()
|
2020-08-26 22:23:16 -04:00
|
|
|
|
2021-01-06 12:16:39 -05:00
|
|
|
add_executable(goalc main.cpp)
|
2023-01-16 13:37:29 -05:00
|
|
|
add_executable(goalc-simple simple_main.cpp)
|
|
|
|
|
2023-10-21 00:07:43 -04:00
|
|
|
add_executable(build_level build_level/main.cpp)
|
|
|
|
|
2023-06-25 16:51:46 -04:00
|
|
|
target_link_libraries(goalc common Zydis compiler)
|
|
|
|
target_link_libraries(goalc-simple common Zydis compiler)
|
2023-10-21 00:07:43 -04:00
|
|
|
target_link_libraries(build_level common Zydis compiler)
|
2021-01-06 12:16:39 -05:00
|
|
|
|