X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=build.c;h=596c698b4f2781db29764885e27e67adfe74fc5b;hb=15c0b8cb57ed5d10814103eaa0b5c06e8ae117e4;hp=381ff349431c96314a29c16cec4c651894940d45;hpb=524c05104673b95ef0841d6ee90bcd24f9b829dc;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/build.c b/build.c index 381ff34..596c698 100644 --- a/build.c +++ b/build.c @@ -33,6 +33,7 @@ void build_server( enum compiler compiler ){ void build_sqlite3( enum compiler compiler ){ vg_build_start( "sqlite3.o", compiler ); vg_build_object( "-c dep/sqlite3/sqlite3.c " ); + vg_build_link( "-ldl " ); vg_build(); } @@ -48,7 +49,7 @@ void build_gameserver( enum compiler compiler ){ vg_build_include( "-I./dep " ); - vg_build_link( "-lm -lsdkencryptedappticket -lsteam_api " ); + vg_build_link( "-ldl -lpthread -lm -lsdkencryptedappticket -lsteam_api " ); vg_build_library_dir( "-L./vg/dep/steam " ); //vg_build_bin_dependency_file( "vg/dep/steam/steamclient.so" );????? @@ -85,7 +86,7 @@ void write_msg( vg_msg *msg, const char *path ){ exit(0); } - fwrite( msg->buf, msg->cur, 1, fp ); + fwrite( msg->buf, msg->cur.co, 1, fp ); fclose( fp ); vg_success( "Written %s (%ub)\n", path, msg->cur ); } @@ -244,11 +245,11 @@ void build_shaders(void){ /* Scene */ _S( "scene_standard", "scene.vs", "scene_standard.fs" ); _S( "scene_standard_alphatest", "scene.vs", "scene_standard_alphatest.fs" ); - _S( "scene_override", "scene.vs", "scene_override.fs" ); + _S( "scene_override", "scene_override.vs", "scene_override.fs" ); _S( "scene_fxglow", "scene_fxglow.vs", "scene_fxglow.fs" ); _S( "scene_vertex_blend", "scene.vs", "scene_vertex_blend.fs" ); _S( "scene_terrain", "scene.vs", "scene_terrain.fs" ); - _S( "scene_route", "scene.vs", "scene_route.fs" ); + _S( "scene_route", "scene_override.vs", "scene_route.fs" ); _S( "scene_depth", "scene.vs", "scene_depth.fs" ); _S( "scene_position", "scene.vs", "scene_position.fs" ); _S( "scene_cubemapped", "scene.vs", "scene_cubemapped.fs" ); @@ -259,6 +260,7 @@ void build_shaders(void){ /* Models */ _S( "model_sky", "model.vs", "model_sky.fs" ); + _S( "model_sky_space", "model.vs", "model_sky_space.fs" ); _S( "model_menu", "model.vs", "model_menu.fs" ); _S( "model_character_view", "model_skinned.vs", "model_character_view.fs" ); _S( "model_board_view", "model.vs", "model_character_view.fs" ); @@ -273,5 +275,6 @@ void build_shaders(void){ _S( "blit", "blit.vs", "blit.fs" ); _S( "blitblur", "blit.vs", "blitblur.fs" ); _S( "blitcolour","blit.vs", "colour.fs" ); + _S( "blit_transition", "blit.vs", "blit_transition.fs" ); _S( "routeui", "routeui.vs", "routeui.fs" ); }