2024-09-15 22:04:48 +08:00
|
|
|
--- 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")
|
2024-10-03 15:13:24 +08:00
|
|
|
set_languages("c++17")
|
2024-09-15 22:04:48 +08:00
|
|
|
--- C/C++ Codes
|
|
|
|
add_files(
|
|
|
|
"src/**.cpp"
|
|
|
|
)
|
|
|
|
--- Include directories
|
2024-10-03 15:13:24 +08:00
|
|
|
add_includedirs(
|
|
|
|
".",
|
|
|
|
"src",
|
|
|
|
"obj_dir",
|
|
|
|
"src/img_process",
|
|
|
|
INCLUDE_DIRS
|
|
|
|
)
|