21 lines
485 B
C++
21 lines
485 B
C++
#include "target.h"
|
|
#include "helper.h"
|
|
#include "c.h"
|
|
#include "ld.h"
|
|
#include "tier1/utlstring.h"
|
|
|
|
DECLARE_BUILD_STAGE(launcher)
|
|
{
|
|
CProject_t compileProject = {};
|
|
LinkProject_t ldProject = {};
|
|
|
|
compileProject.m_szName = "launcher";
|
|
compileProject.files = {"launcher.cpp"};
|
|
ldProject = ccompiler->Compile(&compileProject);
|
|
ldProject.linkType = ELINK_EXECUTABLE;
|
|
|
|
CUtlString outputProject = linker->Link(&ldProject);
|
|
ADD_OUTPUT_OBJECT("launcher", outputProject);
|
|
return 0;
|
|
};
|