cbt/cbt.c

21 lines
529 B
C
Raw Normal View History

2023-11-25 19:21:10 +03:00
// x-run: python3 ./add-impl.py && ~/scripts/runc.sh % -Wall -Wextra -X-gdb
2023-09-20 10:45:18 +03:00
#define CBT_IMPLEMENTATION
2023-09-19 11:00:57 +03:00
#include "cbt.h"
int main(int argc, char **argv) {
2023-09-20 10:45:18 +03:00
CBT_INIT(argc, argv);
2023-11-19 13:50:44 +03:00
cbt_shell(CBT_PROC_AUTO, "sh", "-c", "echo 'owo'");
2023-11-25 19:21:10 +03:00
// example usage, won't actually work
struct cbt_lib raylib = cbt_lib("raylib");
cbt_lib_src(&raylib, "./raylib/*.c");
2023-11-19 13:50:44 +03:00
cbt_lib_ldflags(&raylib, "-lm");
cbt_lib_cflags(&raylib, "-Wall", "-Wextra");
cbt_lib_build(raylib, NULL);
cbt_lib_free(raylib);
2023-11-15 10:24:27 +03:00
cbt_cleanup();
2023-09-20 10:45:18 +03:00
return 0;
2023-09-19 11:00:57 +03:00
}