Files
funnygame/launcher/__build.cpp

32 lines
899 B
C++

#include "helper.h"
#include "c.h"
#include "ld.h"
#include "tier1/utlstring.h"
CUtlVector<CUtlString> launcher_CompiledFiles = {
"launcher/launcher.cpp",
};
int launcher_build()
{
CCProject compileProject = {};
CLDProject ldProject = {};
compileProject.m_szName = "launcher";
compileProject.files = launcher_CompiledFiles;
compileProject.includeDirectories = all_IncludeDirectories;
compileProject.bFPIC = true;
ldProject = compileProject.Compile();
ldProject.linkType = ELINK_EXECUTABLE;
CUtlString outputProject = ldProject.Link();
const char *szGameName = ICommandLine::ParamValue("-game");
if (szGameName == NULL)
szGameName = "funnygame";
IFileSystem2::MakeDirectory(CUtlString("build/%s/game/bin",szGameName));
IFileSystem2::CopyFile(CUtlString("build/%s/game/bin/%s", szGameName, szGameName), outputProject);
return 0;
};
DECLARE_BUILD_STAGE(launcher, launcher_build);