switch lsp to clangd and reconstruct project
This commit is contained in:
15
xmake.lua
15
xmake.lua
@@ -0,0 +1,15 @@
|
||||
--- Generate compile_commands.json for clangd language server
|
||||
add_rules("plugin.compile_commands.autoupdate", {outputdir = ".vscode"})
|
||||
--- Get C/C++ Lib Path
|
||||
local INCLUDE_DIRS = path.splitenv(
|
||||
string.vformat("$(env VERILATOR_INCLUDE):$(env SYSTEMC_INCLUDE)")
|
||||
)
|
||||
|
||||
target("TB_ISP")
|
||||
set_toolchains("gcc")
|
||||
--- C/C++ Codes
|
||||
add_files(
|
||||
"src/**.cpp"
|
||||
)
|
||||
--- Include directories
|
||||
add_includedirs("src", ".", INCLUDE_DIRS)
|
||||
Reference in New Issue
Block a user