added forgotten files
This commit is contained in:
32
tier2/build.cpp
Normal file
32
tier2/build.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "helper.h"
|
||||
#include "c.h"
|
||||
#include "ld.h"
|
||||
#include "tier1/utlstring.h"
|
||||
#include "tier1/commandline.h"
|
||||
|
||||
CUtlVector<CUtlString> tier2_CompiledFiles = {
|
||||
"fileformats/ini.cpp",
|
||||
"fileformats/json.cpp",
|
||||
"filesystem.cpp",
|
||||
};
|
||||
|
||||
|
||||
DECLARE_BUILD_STAGE(tier2)
|
||||
{
|
||||
V_printf("%s\n", Plat_GetWorkingDir());
|
||||
CProject_t compileProject = {};
|
||||
LinkProject_t ldProject = {};
|
||||
|
||||
compileProject.m_szName = "tier2";
|
||||
compileProject.files = tier2_CompiledFiles;
|
||||
compileProject.includeDirectories = {"../public"};
|
||||
compileProject.bFPIC = true;
|
||||
ldProject = ccompiler->Compile(&compileProject);
|
||||
ldProject.linkType = ELINK_STATIC_LIBRARY;
|
||||
|
||||
CUtlString szOutputProject = linker->Link(&ldProject);
|
||||
|
||||
ADD_OUTPUT_LIBRARY(szOutputProject)
|
||||
|
||||
return 0;
|
||||
};
|
||||
Reference in New Issue
Block a user