diff --git a/packages/s2argv_execs/brioche.lock b/packages/s2argv_execs/brioche.lock new file mode 100644 index 0000000..7f4bc8b --- /dev/null +++ b/packages/s2argv_execs/brioche.lock @@ -0,0 +1,8 @@ +{ + "dependencies": {}, + "git_refs": { + "https://github.com/virtualsquare/s2argv-execs.git": { + "1.4": "d357705f8678f5299d90fc33245b8783cfd0d29c" + } + } +} diff --git a/packages/s2argv_execs/project.bri b/packages/s2argv_execs/project.bri new file mode 100644 index 0000000..af0b77a --- /dev/null +++ b/packages/s2argv_execs/project.bri @@ -0,0 +1,29 @@ +import * as std from "std"; +import { gitCheckout } from "git"; +import { cmakeBuild } from "cmake"; + +export const project = { + name: "s2argv_execs", + version: "1.4", +}; + +export const source = gitCheckout( + Brioche.gitRef({ + repository: "https://github.com/virtualsquare/s2argv-execs.git", + ref: project.version, + }), +); + +export default function (): std.Recipe { + let s2argv_execs = cmakeBuild({ + source, + dependencies: [std.toolchain()], + }); + + s2argv_execs = std.setEnv(s2argv_execs, { + LIBRARY_PATH: { append: [{ path: "lib" }] }, + CPATH: { append: [{ path: "include" }] }, + }); + + return s2argv_execs; +}