mirror of
https://github.com/open-goal/jak-project.git
synced 2024-11-23 06:09:57 +00:00
53277a65ad
- Integrate the AST into the LSP, this makes parsing and tokenizing the files much easier - Consolidate most of the symbol info tracking in `goalc` to a single map. Fixed some issues where the old map would never evict symbols when re-compiling files. There is still some more to cleanup, but this now can be used as an incrementally updated source-of-truth for the LSP - re-compile files when they are saved. Ideally this would be done everytime they are changed but that: - may be too aggressive - goalc doesn't compile incrementally yet so it likely would be a worse UX Features added, see https://github.com/open-goal/opengoal-vscode/issues/256 - Hover ![image](https://github.com/open-goal/jak-project/assets/13153231/58dadb5d-582c-4c1f-9ffe-eaa4c85a0255) ![image](https://github.com/open-goal/jak-project/assets/13153231/b383adde-57fc-462c-a256-b2de5c30ca9a) - LSP Status fixed - Type Hierarchy ![image](https://github.com/open-goal/jak-project/assets/13153231/8e681377-1d4e-4336-ad70-1695a4607340) - Document Color ![image](https://github.com/open-goal/jak-project/assets/13153231/4e48ccd8-0ed1-4459-a133-5277561e4201) - Document Symbols ![Screenshot 2024-03-27 004105](https://github.com/open-goal/jak-project/assets/13153231/8e655034-43c4-4261-b6e0-85de00cbfc7f) - Completions ![Screenshot 2024-03-30 004504](https://github.com/open-goal/jak-project/assets/13153231/d123a187-af90-466b-9eb7-561b2ee97cd1) --------- Co-authored-by: Hat Kid <6624576+Hat-Kid@users.noreply.github.com>
83 lines
2.8 KiB
CMake
83 lines
2.8 KiB
CMake
add_library(compiler
|
|
emitter/CallingConvention.cpp
|
|
emitter/CodeTester.cpp
|
|
emitter/ObjectFileData.cpp
|
|
emitter/ObjectGenerator.cpp
|
|
emitter/Register.cpp
|
|
debugger/disassemble.cpp
|
|
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
|
|
compiler/Compiler.cpp
|
|
compiler/Env.cpp
|
|
compiler/Val.cpp
|
|
compiler/IR.cpp
|
|
compiler/CompilerSettings.cpp
|
|
compiler/CodeGenerator.cpp
|
|
compiler/StaticObject.cpp
|
|
compiler/symbol_info.cpp
|
|
compiler/compilation/Asm.cpp
|
|
compiler/compilation/Atoms.cpp
|
|
compiler/compilation/CompilerControl.cpp
|
|
compiler/compilation/ConstantPropagation.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_common.cpp
|
|
data_compiler/dir_tpages.cpp
|
|
data_compiler/game_count.cpp
|
|
data_compiler/DataObjectGenerator.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
|
|
compiler/docs/DocTypes.cpp)
|
|
|
|
target_link_libraries(compiler common Zydis tiny_gltf decomp)
|
|
|
|
if (WIN32)
|
|
target_link_libraries(compiler mman)
|
|
endif ()
|
|
|
|
add_executable(goalc main.cpp)
|
|
add_executable(goalc-simple simple_main.cpp)
|
|
|
|
add_executable(build_level build_level/main.cpp)
|
|
|
|
target_link_libraries(goalc common Zydis compiler)
|
|
target_link_libraries(goalc-simple common Zydis compiler)
|
|
target_link_libraries(build_level common Zydis compiler)
|
|
|