init
This commit is contained in:
47
build.c
Normal file
47
build.c
Normal file
@@ -0,0 +1,47 @@
|
||||
#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 "launcher/__build.c"
|
||||
#include "engine/__build.c"
|
||||
#include "game/__build.c"
|
||||
#include "funnyassets/__build.c"
|
||||
|
||||
int build(struct build_data b) {
|
||||
if (!step("trace"))
|
||||
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);
|
||||
engine_build(b);
|
||||
launcher_build(b);
|
||||
|
||||
server_build(b);
|
||||
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user