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
|
2022-06-19 20:44:07 -04:00
|
|
|
build_level/build_level.cpp
|
|
|
|
build_level/collide_bvh.cpp
|
|
|
|
build_level/collide_drawable.cpp
|
|
|
|
build_level/collide_pack.cpp
|
|
|
|
build_level/color_quantization.cpp
|
2022-06-27 20:37:51 -04:00
|
|
|
build_level/Entity.cpp
|
2022-06-19 20:44:07 -04:00
|
|
|
build_level/FileInfo.cpp
|
|
|
|
build_level/gltf_mesh_extract.cpp
|
|
|
|
build_level/LevelFile.cpp
|
|
|
|
build_level/ResLump.cpp
|
|
|
|
build_level/Tfrag.cpp
|
2023-01-30 19:21:26 -05:00
|
|
|
build_level/drawable_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
|
|
|
|
2022-06-19 20:44:07 -04:00
|
|
|
target_link_libraries(compiler common Zydis tiny_gltf)
|
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)
|
|
|
|
|
2022-11-19 23:28:20 -05:00
|
|
|
target_link_libraries(goalc common Zydis compiler sqlite3 SQLiteCpp)
|
2023-01-16 13:37:29 -05:00
|
|
|
target_link_libraries(goalc-simple common Zydis compiler sqlite3 SQLiteCpp)
|
2021-01-06 12:16:39 -05:00
|
|
|
|