56 lines
1.0 KiB
C
56 lines
1.0 KiB
C
#include "god/build.h"
|
|
#include "god/utils.h"
|
|
|
|
#define GAME_NAME "funnygame"
|
|
|
|
char* include_dirs[] = {
|
|
"public",
|
|
"external/cglm/include",
|
|
"external/Vulkan-Headers/include",
|
|
"external/VulkanMemoryAllocator/include",
|
|
"external/stb",
|
|
NULL,
|
|
};
|
|
|
|
#include "tier0/__build.c"
|
|
#include "tier1/__build.c"
|
|
|
|
#include "fgui/__build.c"
|
|
#include "rapier/__build.c"
|
|
#include "engine/__build.c"
|
|
#include "game/server/__build.c"
|
|
#include "game/client/__build.c"
|
|
|
|
#include "launcher/__build.c"
|
|
#include "funnyassets/__build.c"
|
|
|
|
|
|
int build(struct build_data b) {
|
|
trace = 1;
|
|
makedir("build/"GAME_NAME"/game/" GAME_NAME);
|
|
makedir("build/"GAME_NAME"/game/" GAME_NAME "/bin");
|
|
makedir("build/"GAME_NAME"/game/bin/");
|
|
tier0_build(b);
|
|
tier1_build(b);
|
|
fgui_build(b);
|
|
rapier_build(b);
|
|
engine_build(b);
|
|
launcher_build(b);
|
|
|
|
server_build(b);
|
|
client_build(b);
|
|
|
|
if (step("noassets"))
|
|
{
|
|
assets_build(b);
|
|
}
|
|
mv("build", "tools");
|
|
|
|
if (step("run")!=STEP_FAILED)
|
|
{
|
|
struct run_project rp = run_new("build/"GAME_NAME"/game/bin/"GAME_NAME);
|
|
run_run(&rp);
|
|
}
|
|
return 0;
|
|
};
|