Files
funnygame/game/client/__build.c
2025-05-28 14:36:57 +03:00

36 lines
672 B
C

#include "god/build.h"
#include "god/c.h"
#include "god/ld.h"
char* client_dll = 0;
void client_build(struct build_data b)
{
char* files[] = {
"game/client/baseplayer.cpp",
NULL,
};
struct project p = {
.b = &b,
.files = files,
.name = "client",
};
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,
};
client_dll = ld_link_project(o, (struct link_settings){
.type = LINK_TYPE_DYNAMIC,
.libs = libs,
});
mv("build/"GAME_NAME"/game/"GAME_NAME"/bin/libclient.so",server_dll);
}