no engine anymore
This commit is contained in:
@@ -5,20 +5,28 @@
|
||||
#include "signal.h"
|
||||
|
||||
CUtlVector<CUtlString> g_CompiledFiles = {
|
||||
|
||||
"../tier0/lib.cpp",
|
||||
"../tier0/mem.cpp",
|
||||
"../tier0/platform.cpp",
|
||||
"../tier1/interface.cpp",
|
||||
"../tier1/utlbuffer.cpp",
|
||||
"../tier1/utlstring.cpp",
|
||||
"../tier1/utlvector.cpp",
|
||||
"../tier1/utlmap.cpp",
|
||||
"../tier1/commandline.cpp",
|
||||
|
||||
"main.cpp",
|
||||
"library/runner.cpp",
|
||||
"library/helper.cpp",
|
||||
"library/c.cpp",
|
||||
"library/ld.cpp",
|
||||
"library/target.cpp",
|
||||
"../tier0/lib.cpp",
|
||||
"../tier0/mem.cpp",
|
||||
"../tier0/platform.cpp",
|
||||
"../tier1/utlbuffer.cpp",
|
||||
"../tier1/utlstring.cpp",
|
||||
"../tier1/utlvector.cpp",
|
||||
"../tier1/utlmap.cpp",
|
||||
"../tier1/commandline.cpp",
|
||||
|
||||
"library/android/apktool.cpp",
|
||||
|
||||
"library/clang/c.cpp",
|
||||
"library/clang/ld.cpp",
|
||||
};
|
||||
|
||||
CUtlVector<CUtlString> g_IncludeDirectories = {
|
||||
@@ -27,21 +35,20 @@ CUtlVector<CUtlString> g_IncludeDirectories = {
|
||||
};
|
||||
|
||||
|
||||
int build_fpc()
|
||||
DECLARE_BUILD_STAGE(fpc)
|
||||
{
|
||||
CCProject compileProject = {};
|
||||
CLDProject ldProject = {};
|
||||
CProject_t compileProject = {};
|
||||
LinkProject_t ldProject = {};
|
||||
|
||||
compileProject.m_szName = "fpc";
|
||||
compileProject.files = g_CompiledFiles;
|
||||
compileProject.includeDirectories = g_IncludeDirectories;
|
||||
ldProject = compileProject.Compile();
|
||||
ldProject = ccompiler->Compile(&compileProject);
|
||||
|
||||
CUtlString outputProject = ldProject.Link();
|
||||
CUtlString outputProject = linker->Link(&ldProject);
|
||||
|
||||
IFileSystem2::MakeDirectory("../build/tools");
|
||||
IFileSystem2::CopyFile("fpc_temp", outputProject);
|
||||
filesystem2->MakeDirectory("../build/tools");
|
||||
filesystem2->CopyFile("fpc_temp", outputProject);
|
||||
|
||||
return 0;
|
||||
};
|
||||
DECLARE_BUILD_STAGE(fpc, build_fpc);
|
||||
|
||||
Reference in New Issue
Block a user