meta refactorings

This commit is contained in:
Krzosa Karol
2025-01-20 11:00:33 +01:00
parent 6f53fa4db0
commit f221ccfcf9
10 changed files with 268 additions and 266 deletions

View File

@@ -6,23 +6,24 @@
#define BUILD_TOOL_LIB
#define S8_String s8_t
#include "src/meta/build_tool.c"
#include "src/meta/parser.c"
#include "src/meta/serialize.c"
#include "src/meta/cgen.c"
#include "src/meta/meta_format.c"
#include "src/meta/meta_serialize_format.c"
#include "src/meta/meta_table_format.c"
#include "src/meta/meta_cfiles.c"
#include "src/app/app.meta.c"
#include "src/ui/ui.meta.c"
#include "src/wasm_app/wasm_app.meta.c"
int main(int argc, char **argv) {
int ok = 0;
ma_arena_t *arena = ma_create(ma_default_reserve_size);
SRC_SearchPaths.include_path = (char*[]){OS_GetAbsolutePath(&Perm, s8_lit("../src")).str};
SRC_SearchPaths.include_path_count = 1;
cache_init(&Perm, s8_lit("cache_build_file"));
ma_arena_t *arena = ma_create(ma_default_reserve_size);
int ok = 0;
b32 generate_math = true;
if (generate_math && cache_code_modified(s8_lit("../src/core/core_math_gen.py"), s8_null)) {
os_set_working_dir("../src/core");
os_systemf("py core_math_gen.py");