bitmake
v0.0.1-develop.14
Published
BitMake builds your code with the flexibility of JS-defined rules
Readme
BitMake project
Note: This project is under active development.
BitMake is JavaScript-based build system originally developed as part of the WASMUX project. The main task of BitMake is to build recipes and make scripts.
Examples of building a dbc-0.0.1 project:
export PATH=/opt/apps/llvm-project-llvmorg-19.1.3/bin:$PATH # Path to clang compiler
wget https://github.com/yacubin/dbc/archive/refs/tags/v0.0.1.tar.gz
tar -xvf ./v0.0.1.tar.gz
cd dbc-0.0.1/
npm init -y
npm install wasmux --save-dev # Standard libraries and tolchain
npx bitmake init --preset import://wasmux/preset/cmake # Predefined recipe for cmake and wasm32
npx bitmake build # BuildExamples of building a sed-4.9 project:
export PATH=/opt/apps/llvm-project-llvmorg-19.1.3/bin:$PATH # Path to clang compiler
wget https://ftp.gnu.org/gnu/sed/sed-4.9.tar.gz
tar -xvf ./sed-4.9.tar.gz
cd sed-4.9/
npm init -y
npm install wasmux --save-dev # Standard libraries and tolchain
npx bitmake init --preset import://wasmux/preset/gnu-configure # Predefined recipe for configure and wasm32
npx bitmake build # BuildExamples of make scripts:
// MakeScript.mjs
export default (mk) => {
const sources = [
"waeditor.cpp",
];
const includes = [
mk.BINARY_DIR.join("include"),
mk.SOURCE_DIR.join("include"),
];
const libraries = [
mk.target("wasmux"),
];
const waeditor = mk.addExecutable("waeditor", sources);
waeditor.addIncludes(includes);
waeditor.addLibraries(libraries);
mk.install(waeditor, "bin");
}Examples of make recipes:
