meta refactorings
This commit is contained in:
13
build_file.c
13
build_file.c
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user