ISP/xmake.lua

15 lines
427 B
Lua
Raw Normal View History

--- 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)