24 lines
No EOL
480 B
Lua
24 lines
No EOL
480 B
Lua
|
|
Import(".bam/path.lua")
|
|
|
|
local settings = CopySettings(global_settings, "Tool - Archive")
|
|
|
|
settings.cc.includes:Add(
|
|
"vendor/CLI11/include",
|
|
"include/",
|
|
RelPath("./")
|
|
)
|
|
|
|
-- Link with spectre.
|
|
settings.link.extrafiles:Add(libspectre)
|
|
|
|
-- Compile object files.
|
|
local obj = Compile(settings, {
|
|
RelPath("Archive.cpp"),
|
|
RelPath("main.cpp")
|
|
})
|
|
|
|
-- Link to executable.
|
|
local exe = Link(settings, PathJoin(paths.tools, "archive"), obj)
|
|
|
|
PseudoTarget("tool.archive", exe) |