Build the tools.

This commit is contained in:
David Given
2022-06-11 23:57:05 +02:00
parent c34f4bff08
commit dff7502a92
2 changed files with 30 additions and 0 deletions

View File

@@ -165,6 +165,7 @@ clibrary {
"+zlib_dep",
"dep/libusbp+libusbp",
},
dep_cflags = { "-Ilib", "-Iarch", "-I." },
vars = {
["+cflags"] = { "-Ilib", "-Iarch", "-I." }
}
@@ -175,6 +176,9 @@ installable {
map = {
["fluxengine"] = "src+fluxengine",
["fluxengine-gui"] = "src/gui+fluxengine",
["brother120tool"] = "tools+brother120tool",
["brother240tool"] = "tools+brother240tool",
["upgrade-flux-file"] = "tools+upgrade-flux-file",
}
}

26
tools/build.lua Normal file
View File

@@ -0,0 +1,26 @@
cprogram {
name = "brother120tool",
srcs = { "./brother120tool.cc" },
deps = { "~+libfluxengine" },
}
cprogram {
name = "brother240tool",
srcs = { "./brother240tool.cc" },
deps = { "~+libfluxengine" },
}
dependency {
name = "sqlite3_dep",
pkg_config = "sqlite3"
}
cprogram {
name = "upgrade-flux-file",
srcs = { "./upgrade-flux-file.cc" },
deps = {
"~+libfluxengine",
"+sqlite3_dep"
},
}