Migrated
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "c.h"
|
||||
#include "ld.h"
|
||||
#include "tier1/utlstring.h"
|
||||
#include "tier1/commandline.h"
|
||||
|
||||
CUtlVector<CUtlString> engine_CompiledFiles = {
|
||||
"engine/console.cpp",
|
||||
@@ -29,6 +30,12 @@ CUtlVector<CUtlString> engine_CompiledFiles = {
|
||||
"engine/vk_videosdl.cpp",
|
||||
};
|
||||
|
||||
CUtlVector<CUtlString> engine_Libraries = {
|
||||
"c",
|
||||
"SDL3",
|
||||
"vulkan",
|
||||
};
|
||||
|
||||
int engine_build()
|
||||
{
|
||||
CCProject compileProject = {};
|
||||
@@ -40,9 +47,19 @@ int engine_build()
|
||||
compileProject.bFPIC = true;
|
||||
ldProject = compileProject.Compile();
|
||||
ldProject.linkType = ELINK_DYNAMIC_LIBRARY;
|
||||
ldProject.libraries = engine_Libraries;
|
||||
ldProject.objects.AppendTail((CObject){tier1_lib});
|
||||
ldProject.objects.AppendTail((CObject){rapier_lib});
|
||||
|
||||
CUtlString outputProject = ldProject.Link();
|
||||
|
||||
|
||||
const char *szGameName = ICommandLine::ParamValue("-game");
|
||||
if (szGameName == NULL)
|
||||
szGameName = "funnygame";
|
||||
IFileSystem2::CopyFile(CUtlString("build/%s/game/bin",szGameName), outputProject);
|
||||
|
||||
|
||||
return 0;
|
||||
};
|
||||
DECLARE_BUILD_STAGE(engine, engine_build);
|
||||
|
||||
Reference in New Issue
Block a user