From fb340a53d73eefe1e20061bbf65186ee1a49c376 Mon Sep 17 00:00:00 2001 From: hgn Date: Fri, 4 Jul 2025 14:47:32 +0100 Subject: [PATCH] crap --- build.c | 29 +++++++++++++++++++++++++++++ web/vgreport/index.php | 11 +++++++++++ 2 files changed, 40 insertions(+) create mode 100644 web/vgreport/index.php diff --git a/build.c b/build.c index 010dc91..ae38520 100644 --- a/build.c +++ b/build.c @@ -407,6 +407,32 @@ void s_testing_build_win(void) vg_add_blob( &test_proj, "steam_appid.txt", "" ); } +void s_cr_build(void) +{ + vg_info( "running script: s_cr_build(void)\n" ); + + struct vg_project test_proj; + vg_project_init( &test_proj, "bin", "crashreport-dev", NULL, 0 ); + + struct vg_compiler_env env = + { + .optimization = 0, + .debug_asan = 0, + .platform = k_platform_windows, + .arch = k_architecture_x86_64, + .compiler = k_compiler_zigcc, + .libc = k_libc_version_native + }; + + struct vg_compiler_conf conf = {0}; + vg_strcat( &conf.link, "-lgdi32 -lcomctl32 -lwininet " ); + + vg_str sources = {0}; + vg_strcat( &sources, "vg/src/vgcrashreport.c \\\n " ); + vg_compiler_run( &test_proj, &env, &conf, sources.buffer, "vgcrashreport", k_obj_type_exe ); +} + + void s_utest_build(void) { vg_info( "running script: s_utest_build(void)\n" ); @@ -499,6 +525,9 @@ int main( int argc, const char *argv[] ) if( vg_long_opt( "utest", NULL ) ) s_utest_build(); + if( vg_long_opt( "cr", NULL ) ) + s_cr_build(); + if( vg_long_opt( "testing-server", NULL ) ) s_testing_server(); diff --git a/web/vgreport/index.php b/web/vgreport/index.php new file mode 100644 index 0000000..37fcf81 --- /dev/null +++ b/web/vgreport/index.php @@ -0,0 +1,11 @@ + +Thanks -- 2.25.1