blob: 1992778dde8557f0db938edec0438b425e25b0ee [file] [log] [blame] [raw]
const buildenv = require("./lib/buildenvsetup/buildenvsetup-ceconan");
const compilerInfo = {
id: "clang800",
compilerType: "clang",
exe: "/opt/compiler-explorer/clang-8.0.0/bin/clang-g++",
options: "",
buildenvsetup: {
props: function (key, def) {
if (key == "host") {
return "http://ec2-54-93-113-179.eu-central-1.compute.amazonaws.com:10240";
}
return def;
}
}
};
const env = {
};
// const key = {
// options: ["--target=armv8"]
// };
const key = {
options: []
};
const dirPath = "/tmp/hello";
const libraryDetails = {
"catch2": {
"staticliblink": ["Catch2"],
"libpath": [],
"version": "3.0.0-preview2"
},
"fmt": {
"staticliblink": ["fmtd"],
"libpath": [],
"version": "6.2.0"
}
};
const benv = new buildenv(compilerInfo, env);
benv.setup(key, dirPath, libraryDetails).then(() => {
console.log("done");
}).catch(e => {
console.error(e);
});