X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=build.c;h=3cb9299dbe0b4d4cd9d86a7c54137d4fce465751;hb=refs%2Fheads%2Fmaster;hp=eb3de6285879b9f7f6c3196dd3b32349447da76f;hpb=fbe807d19b8a626c2d75002b286dd794f893473a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/build.c b/build.c index eb3de62..3cb9299 100644 --- a/build.c +++ b/build.c @@ -7,6 +7,12 @@ #include "vg/vg_msg.h" #include "addon_types.h" +#define C0_STOPGAP +#include "vg/vg_m.h" +#include "model.h" +#include "model.c" +#include "c0_stopgap.c" + /* * Addon metadata utilities * -------------------------------------------------------------------------- */ @@ -150,12 +156,15 @@ void build_game_content( struct vg_project *proj ) void build_game_bin( struct vg_project *proj ) { static int meta = 0; - if( !meta ){ + if( !meta ) + { meta = 1; build_shaders(); build_game_metadata(); vg_low( "\n\n" ); } + +#include "control_overlay.h" vg_project_new_target( proj, "skaterift", k_obj_type_exe ); vg_add_engine( proj, &(struct vg_engine_config ) @@ -169,6 +178,11 @@ void build_game_bin( struct vg_project *proj ) .custom_shaders = 1 }); + if( proj->env->platform == k_platform_windows ) + { + vg_link( proj, "-lws2_32 " ); + } + vg_add_source( proj, "skaterift.c " ); vg_add_controller_database( proj ); vg_compile_project( proj );