A node driven C/C++ build tool. Currently windows only.
npm install @justinmchase/ncl --save-dev --save-exact
npx ncl
npx ncl watch
# build.yml
- target: hello
type: exe
sources:
- hello.c
dependencies:
- world
- target: world
type: lib
sources:
- world.c
// hello.c
#include <stdio.h>
#include "world.h"
int main(int argc, char **argv) {
printf("hello ");
printf("%s", get_world());
printf("\n");
}
const char* get_world();
// world.c
#include "world.h"
const char* get_world() {
return "world!";
}