Build system almost done
This commit is contained in:
@@ -1,8 +1,46 @@
|
||||
#include "helper.h"
|
||||
#include "public/c.h"
|
||||
#include "public/ld.h"
|
||||
#include "public/c.h"
|
||||
#include "public/helper.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "signal.h"
|
||||
|
||||
CUtlVector<CUtlString> g_CompiledFiles = {
|
||||
"main.cpp",
|
||||
"library/runner.cpp",
|
||||
"library/helper.cpp",
|
||||
"library/c.cpp",
|
||||
"library/ld.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",
|
||||
};
|
||||
|
||||
CUtlVector<CUtlString> g_IncludeDirectories = {
|
||||
"public",
|
||||
"../public",
|
||||
};
|
||||
|
||||
|
||||
int build_fpc()
|
||||
{
|
||||
V_printf("cool\n");
|
||||
CCProject compileProject = {};
|
||||
CLDProject ldProject = {};
|
||||
|
||||
compileProject.m_szName = "fpc";
|
||||
compileProject.files = g_CompiledFiles;
|
||||
compileProject.includeDirectories = g_IncludeDirectories;
|
||||
ldProject = compileProject.Compile();
|
||||
|
||||
ldProject.Link();
|
||||
|
||||
IFileSystem2::MakeDirectory("../build/tools");
|
||||
|
||||
return 0;
|
||||
};
|
||||
DECLARE_BUILD_STAGE(fpc, build_fpc);
|
||||
|
||||
Reference in New Issue
Block a user