vg_compile_project( proj );
}
+void compile_tools( struct vg_env *env, struct vg_project *proj )
+{
+ struct vg_env backup = *env;
+ env->optimization = 3; /* force optimization always */
+ env->debug_asan = 0;
+
+ vg_project_new_target( proj, "tools/qoi", k_obj_type_shared );
+ vg_add_source( proj, "qoi_lib.c " );
+ vg_compile_project( proj );
+
+ *env = backup;
+}
+
/*
* Scripts
* -------------------------------------------------------------------------- */
-void s_release_all(void){
+void s_release_all(void)
+{
vg_info( "running script: s_release_all(void)\n" );
struct vg_project content_proj, windows_proj, linux_proj;
env.platform = k_platform_windows;
vg_project_init( &windows_proj, &env, "skaterift" );
build_game_bin( &windows_proj );
+ compile_tools( &env, &windows_proj );
/* binaries for linux */
env = vg_release_env;
env.platform = k_platform_linux;
vg_project_init( &linux_proj, &env, "skaterift" );
build_game_bin( &linux_proj );
+ compile_tools( &env, &linux_proj );
/* package them up for storage */
vg_tarball_project( &content_proj );
vg_project_init( &test_proj, &vg_test_env, "skaterift-test" );
build_game_bin( &test_proj );
+ compile_tools( &vg_test_env, &test_proj );
build_game_content( &test_proj );
vg_add_blob( &test_proj, "steam_appid.txt", "" );
}