1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| add_rules("mode.release", "mode.debug")
if is_mode("release") then set_optimize("faster") end
if is_mode("debug") then set_symbols("debug") set_optimize("none") set_policy("build.sanitizer.address", true) end
add_requires("cli11",{system = false}) add_requires("catch2",{system = false}) add_requires("assert",{system = true}) add_requires("elfio",{system = false}) add_requires("libsdl",{system = false})
set_languages("cxx20")
add_rules("plugin.compile_commands.autoupdate", {outputdir = "."}) target("Vtop") add_rules("verilator.binary") set_toolchains("@verilator") add_files("src/*.cpp") add_files("vsrc/*.sv") add_values("verilator.flags","--top","CoreDutFull") add_values("verilator.flags","--trace-fst") add_includedirs("src/include/") add_packages("catch2","cli11","assert","elfio","libsdl") add_links("rv64emu_cbinding")
|