2020-09-05 16:37:37 -04:00
|
|
|
add_library(compiler
|
|
|
|
SHARED
|
|
|
|
emitter/CodeTester.cpp
|
|
|
|
emitter/ObjectFileData.cpp
|
|
|
|
emitter/ObjectGenerator.cpp
|
|
|
|
emitter/Register.cpp
|
|
|
|
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
|
2020-09-06 12:45:31 -04:00
|
|
|
compiler/compilation/Atoms.cpp
|
|
|
|
compiler/compilation/CompilerControl.cpp
|
|
|
|
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
|
2020-10-16 17:08:26 -04:00
|
|
|
compiler/compilation/Static.cpp
|
2020-09-06 12:45:31 -04:00
|
|
|
compiler/Util.cpp
|
2020-10-31 14:07:43 -04:00
|
|
|
debugger/Debugger.cpp
|
2020-09-05 16:37:37 -04:00
|
|
|
logger/Logger.cpp
|
2020-10-31 14:07:43 -04:00
|
|
|
listener/Listener.cpp
|
2020-09-05 16:37:37 -04:00
|
|
|
regalloc/IRegister.cpp
|
|
|
|
regalloc/Allocator.cpp
|
|
|
|
regalloc/allocate.cpp
|
2020-10-29 21:27:52 -04:00
|
|
|
regalloc/allocate_common.cpp
|
2020-09-07 20:44:31 -04:00
|
|
|
compiler/Compiler.cpp)
|
2020-08-22 22:30:12 -04:00
|
|
|
|
2020-09-07 19:59:44 -04:00
|
|
|
add_executable(goalc main.cpp)
|
2020-08-22 22:30:12 -04:00
|
|
|
|
2020-08-26 22:23:16 -04:00
|
|
|
IF (WIN32)
|
2020-10-31 14:07:43 -04:00
|
|
|
target_link_libraries(compiler goos type_system mman common_util spdlog cross_os_debug cross_sockets)
|
2020-09-06 12:45:31 -04:00
|
|
|
|
|
|
|
ELSE ()
|
2020-10-31 14:07:43 -04:00
|
|
|
target_link_libraries(compiler goos type_system common_util spdlog cross_os_debug cross_sockets)
|
2020-09-06 12:45:31 -04:00
|
|
|
ENDIF ()
|
2020-08-26 22:23:16 -04:00
|
|
|
|
2020-09-10 20:03:31 -04:00
|
|
|
target_link_libraries(goalc goos compiler type_system)
|