port os functions, add testing module
This commit is contained in:
16
build_file.c
16
build_file.c
@@ -1,7 +1,7 @@
|
||||
// don't ever include stuff that build_file will generate code for!
|
||||
#define DONT_INCLUDE_GENERATED_MATH
|
||||
#include "src/core/core_inc.h"
|
||||
#include "src/core/core_inc.c"
|
||||
#include "src/core/core.h"
|
||||
#include "src/core/core.c"
|
||||
|
||||
#define BUILD_TOOL_LIB
|
||||
#define S8_String s8_t
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "src/ui/ui.meta.c"
|
||||
#include "src/render/render.meta.c"
|
||||
#include "src/wasm_app/wasm_app.meta.c"
|
||||
#include "src/testing/testing.meta.c"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
core_init();
|
||||
@@ -34,10 +35,11 @@ int main(int argc, char **argv) {
|
||||
mt_app(tcx->temp);
|
||||
mt_wasm_app(tcx->temp);
|
||||
mt_render(tcx->temp);
|
||||
mt_testing(tcx->temp);
|
||||
|
||||
b32 run_server = false;
|
||||
b32 core_test_target = true;
|
||||
b32 win32_target = true;
|
||||
b32 win32_target = false;
|
||||
b32 standalone_w32_target = false;
|
||||
b32 wasm_target = false;
|
||||
|
||||
@@ -77,10 +79,10 @@ int main(int argc, char **argv) {
|
||||
);
|
||||
}
|
||||
|
||||
if (core_test_target && cache_code_modified(s8_lit("../src/core/core_test_entry.c"), s8_lit("core_test.exe"))) {
|
||||
os_delete_file(s8_lit("core_test.pdb"));
|
||||
if (core_test_target && cache_code_modified(s8_lit("../src/testing/testing_main.c"), s8_lit("testing.exe"))) {
|
||||
os_delete_file(s8_lit("testing.pdb"));
|
||||
ok = os_systemf(
|
||||
"cl ../src/core/core_test_entry.c -Fe:core_test.exe -Fd:core_test.pdb"
|
||||
"cl ../src/testing/testing_main.c -Fe:testing.exe -Fd:testing.pdb"
|
||||
" -I ../src"
|
||||
" /Zi /FC /nologo /Oi"
|
||||
" /WX /W3 /wd4200 /diagnostics:column"
|
||||
@@ -88,7 +90,7 @@ int main(int argc, char **argv) {
|
||||
);
|
||||
if (ok != 0) return ok;
|
||||
|
||||
ok = os_systemf("core_test.exe");
|
||||
ok = os_systemf("testing.exe");
|
||||
if (ok != 0) return ok;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user