Simple C++ build system because I hate CMake
- Switch to clang
- Generate compile commands instead of compiling using clang -Mj option
- Other things I will find a need for
$ npx @sweetacid/mei --new mei-is-cool
[CREATE] mei-is-cool/src/main.cpp
[CREATE] mei-is-cool/build.ts
[EXECUTE] g++ mei-is-cool/src/main.cpp -o mei-is-cool
[CREATE] mei-is-cool
// mei-is-cool/build.ts
export default async function (builder: Builder) {
await builder
.addExecutable("mei-is-cool")
.addDirectory("src")
.define("MEI_IS_REALLY_COOL")
.build();
}
$ npx @sweetacid/mei
[EXECUTE] g++ mei-is-cool/src/main.cpp -DMEI_IS_REALLY_COOL -o mei-is-cool
[CREATE] mei-is-cool
$ ./mei-is-cool
generated with mei :3