Skip to content

tsoding/nob.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nob.h

This library is the next generation of the NoBuild idea.

Quick Example

The only file you need from here is nob.h. Just copy-paste it to your project and start using it.

// nob.c
#define NOB_IMPLEMENTATION
#include "nob.h"

int main(int argc, char **argv)
{
    NOB_GO_REBUILD_URSELF(argc, argv);
    Nob_Cmd cmd = {0};
    nob_cmd_append(&cmd, "cc", "-Wall", "-Wextra", "-o", "main", "main.c");
    if (!nob_cmd_run_sync(cmd)) return 1;
    return 0;
}
$ cc -o nob nob.c
$ ./nob

The nob automatically rebuilds itself if nob.c is modified thanks to the NOB_GO_REBUILD_URSELF macro (don't forget to check out how it works in nob.h)

About

Next generation of the NoBuild idea

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages