added forgotten files
This commit is contained in:
34
tier1/build.cpp
Normal file
34
tier1/build.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "helper.h"
|
||||
#include "c.h"
|
||||
#include "ld.h"
|
||||
#include "tier1/utlstring.h"
|
||||
#include "tier1/commandline.h"
|
||||
|
||||
CUtlVector<CUtlString> tier1_CompiledFiles = {
|
||||
"interface.cpp",
|
||||
"appinit.cpp",
|
||||
"commandline.cpp",
|
||||
"utlbuffer.cpp",
|
||||
"utlmap.cpp",
|
||||
"utlstring.cpp",
|
||||
"utlvector.cpp",
|
||||
};
|
||||
|
||||
DECLARE_BUILD_STAGE(tier1)
|
||||
{
|
||||
CProject_t compileProject = {};
|
||||
LinkProject_t ldProject = {};
|
||||
|
||||
compileProject.m_szName = "tier1";
|
||||
compileProject.files = tier1_CompiledFiles;
|
||||
compileProject.includeDirectories = {"../public"};
|
||||
compileProject.bFPIC = true;
|
||||
ldProject = ccompiler->Compile(&compileProject);
|
||||
ldProject.linkType = ELINK_STATIC_LIBRARY;
|
||||
|
||||
CUtlString szOutputDir = linker->Link(&ldProject);
|
||||
|
||||
ADD_OUTPUT_LIBRARY(szOutputDir)
|
||||
|
||||
return 0;
|
||||
};
|
||||
Reference in New Issue
Block a user