Skip to content

justinmchase/node-cl

Repository files navigation

ncl

A node driven C/C++ build tool. Currently windows only.

Usage

npm install @justinmchase/ncl --save-dev --save-exact
npx ncl
npx ncl watch

Example Project File

# 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!";
}