cate_carbon_example 501 B

123456789101112131415161718
  1. /*Library*/
  2. Library library(static);
  3. library.includes = {"include/libexample/"};
  4. library.files = {"libs/lib_example.c"};
  5. library.flags = "-O2 -g";
  6. library.out = "outs/libexample.a";
  7. library.build();
  8. /*Project*/
  9. Project project;
  10. project.files = recursive("src/*.c");
  11. project.includes = {"include/libexample/"};
  12. project.libraries = {library, "GL"};
  13. project.flags = "-O2";
  14. project.out = "outs/program";
  15. project.threading = true;
  16. project.smol = true; /*minimal to no performance loss!*/
  17. project.build();