33 lines
719 B
C++
33 lines
719 B
C++
#include "helper.h"
|
|
#include "c.h"
|
|
#include "ld.h"
|
|
#include "tier1/utlstring.h"
|
|
#include "tier1/commandline.h"
|
|
|
|
CUtlVector<CUtlString> fgui_CompiledFiles = {
|
|
"fgui/fgui.cpp",
|
|
"fgui/widget.cpp",
|
|
"fgui/rect.cpp",
|
|
"fgui/label.cpp",
|
|
};
|
|
CUtlString fgui_lib;
|
|
|
|
int fgui_build()
|
|
{
|
|
CCProject compileProject = {};
|
|
CLDProject ldProject = {};
|
|
|
|
compileProject.m_szName = "fgui";
|
|
compileProject.files = fgui_CompiledFiles;
|
|
compileProject.includeDirectories = all_IncludeDirectories;
|
|
compileProject.bFPIC = true;
|
|
ldProject = compileProject.Compile();
|
|
ldProject.linkType = ELINK_STATIC_LIBRARY;
|
|
|
|
CUtlString outputProject = ldProject.Link();
|
|
fgui_lib = outputProject;
|
|
|
|
return 0;
|
|
};
|
|
DECLARE_BUILD_STAGE(fgui, fgui_build);
|