started working on ini parser
This commit is contained in:
31
tier2/__build.cpp
Normal file
31
tier2/__build.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "helper.h"
|
||||
#include "c.h"
|
||||
#include "ld.h"
|
||||
#include "tier1/utlstring.h"
|
||||
#include "tier1/commandline.h"
|
||||
|
||||
CUtlVector<CUtlString> tier2_CompiledFiles = {
|
||||
"tier2/fileformats/ini.cpp",
|
||||
"tier2/fileformats/json.cpp",
|
||||
"tier2/filesystem.cpp",
|
||||
"tier2/filesystem_libc.cpp",
|
||||
};
|
||||
CUtlString tier2_lib;
|
||||
|
||||
DECLARE_BUILD_STAGE(tier2)
|
||||
{
|
||||
CProject_t compileProject = {};
|
||||
LinkProject_t ldProject = {};
|
||||
|
||||
compileProject.m_szName = "tier2";
|
||||
compileProject.files = tier2_CompiledFiles;
|
||||
compileProject.includeDirectories = all_IncludeDirectories;
|
||||
compileProject.bFPIC = true;
|
||||
ldProject = ccompiler->Compile(&compileProject);
|
||||
ldProject.linkType = ELINK_STATIC_LIBRARY;
|
||||
|
||||
CUtlString outputProject = linker->Link(&ldProject);
|
||||
tier2_lib = outputProject;
|
||||
|
||||
return 0;
|
||||
};
|
||||
Reference in New Issue
Block a user