#include "god/c.h" #include "god/ld.h" #include "god/utils.h" void launcher_build(struct build_data b) { char* files[] = { "launcher/launcher.cpp", NULL, }; struct project p = { .b = &b, .files = files, .name = "launcher", }; struct project o = C_compile(p, (struct C_settings){ .generation_flags = C_GENERATION_FLAGS_PIC, .compile_flags = C_COMPILE_FLAGS_WALL, .include_dirs = include_dirs, }); char* libs[] = { "c", NULL, }; char* launcher_dll = ld_link_project(o, (struct link_settings){ .type = LINK_TYPE_EXECUTABLE, .libs = libs, }); mv("build/"GAME_NAME"/game/bin/"GAME_NAME,launcher_dll); }