sway status initial commit
This commit is contained in:
30
nob.c
Normal file
30
nob.c
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#define NOB_IMPLEMENTATION
|
||||
#define NOB_STRIP_PREFIX
|
||||
#include "nob.h"
|
||||
|
||||
Cmd cmd = {0};
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
NOB_GO_REBUILD_URSELF(argc, argv);
|
||||
|
||||
nob_cc(&cmd);
|
||||
nob_cc_flags(&cmd);
|
||||
nob_cc_output(&cmd, "swaystatus");
|
||||
nob_cc_inputs(&cmd, "swaystatus.c");
|
||||
|
||||
if (!cmd_run(&cmd)) {
|
||||
fprintf(stderr, "ERROR: Failed to compile swaystatus");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// cmd_append(&cmd, "./swaystatus");
|
||||
|
||||
// if (!cmd_run(&cmd)) {
|
||||
// fprintf(stderr, "ERROR: Failed to run swaystatus");
|
||||
// return 1;
|
||||
// }
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user