33 lines
854 B
C++
33 lines
854 B
C++
#include "helper.h"
|
|
#include "c.h"
|
|
#include "ld.h"
|
|
#include "tier1/utlstring.h"
|
|
#include "tier1/commandline.h"
|
|
|
|
CUtlVector<CUtlString> client_CompiledFiles = {
|
|
"game/client/baseplayer.cpp",
|
|
};
|
|
|
|
int client_build()
|
|
{
|
|
CCProject compileProject = {};
|
|
CLDProject ldProject = {};
|
|
|
|
compileProject.m_szName = "client";
|
|
compileProject.files = client_CompiledFiles;
|
|
compileProject.includeDirectories = all_IncludeDirectories;
|
|
compileProject.bFPIC = true;
|
|
ldProject = compileProject.Compile();
|
|
ldProject.linkType = ELINK_DYNAMIC_LIBRARY;
|
|
|
|
CUtlString outputProject = ldProject.Link();
|
|
|
|
const char *szGameName = ICommandLine::ParamValue("-game");
|
|
if (szGameName == NULL)
|
|
szGameName = "funnygame";
|
|
IFileSystem2::CopyFile(CUtlString("build/%s/game/%s/bin",szGameName,szGameName), outputProject);
|
|
|
|
return 0;
|
|
};
|
|
DECLARE_BUILD_STAGE(client, client_build);
|