33 lines
706 B
C++
33 lines
706 B
C++
#include "helper.h"
|
|
#include "c.h"
|
|
#include "ld.h"
|
|
#include "tier1/utlstring.h"
|
|
#include "tier1/commandline.h"
|
|
|
|
CUtlVector<CUtlString> tier0_CompiledFiles = {
|
|
"lib.cpp",
|
|
"mem.cpp",
|
|
"platform.cpp",
|
|
"network.cpp",
|
|
};
|
|
|
|
DECLARE_BUILD_STAGE(tier0)
|
|
{
|
|
CProject_t compileProject = {};
|
|
LinkProject_t ldProject = {};
|
|
CUtlString szOutputProject = "";
|
|
|
|
compileProject.m_szName = "tier0";
|
|
compileProject.files = tier0_CompiledFiles;
|
|
compileProject.includeDirectories = {"../public"};
|
|
compileProject.bFPIC = true;
|
|
ldProject = ccompiler->Compile(&compileProject);
|
|
|
|
ldProject.linkType = ELINK_DYNAMIC_LIBRARY;
|
|
szOutputProject = linker->Link(&ldProject);
|
|
|
|
ADD_OUTPUT_LIBRARY(szOutputProject);
|
|
|
|
return 0;
|
|
};
|