this must have been in previous commit
This commit is contained in:
@@ -25,10 +25,6 @@ CUtlVector<CUtlString> engine_CompiledFiles = {
|
||||
/* client entities */
|
||||
"engine/cl_worldspawn.cpp",
|
||||
"engine/cl_light.cpp",
|
||||
|
||||
/* rendering */
|
||||
"engine/vk_videosdl.cpp",
|
||||
"engine/vk_video.cpp",
|
||||
|
||||
/* io */
|
||||
"engine/input.cpp",
|
||||
@@ -42,10 +38,18 @@ CUtlVector<CUtlString> engine_Libraries = {
|
||||
|
||||
int engine_build()
|
||||
{
|
||||
if (Target_t::DefaultTarget().kernel == TARGET_KERNEL_DARWIN)
|
||||
engine_Libraries.AppendTail("MoltenVK");
|
||||
if (Target_t::DefaultTarget().kernel == TARGET_KERNEL_IOS || Target_t::DefaultTarget().kernel == TARGET_KERNEL_DARWIN)
|
||||
{
|
||||
engine_CompiledFiles.AppendTail("engine/ml_videosdl.cpp");
|
||||
engine_CompiledFiles.AppendTail("engine/ml_video.cpp");
|
||||
} else {
|
||||
engine_CompiledFiles.AppendTail("engine/vk_videosdl.cpp");
|
||||
engine_CompiledFiles.AppendTail("engine/vk_video.cpp");
|
||||
}
|
||||
if (Target_t::DefaultTarget().kernel == TARGET_KERNEL_LINUX)
|
||||
{
|
||||
engine_Libraries.AppendTail("vulkan");
|
||||
}
|
||||
CCProject compileProject = {};
|
||||
CLDProject ldProject = {};
|
||||
|
||||
@@ -53,6 +57,8 @@ int engine_build()
|
||||
compileProject.files = engine_CompiledFiles;
|
||||
compileProject.includeDirectories = all_IncludeDirectories;
|
||||
compileProject.bFPIC = true;
|
||||
if (bStaticBuild)
|
||||
compileProject.macros.AppendTail((C_Macro_t){"STATIC_BUILD","1"});
|
||||
ldProject = compileProject.Compile();
|
||||
ldProject.libraries = engine_Libraries;
|
||||
if (bStaticBuild)
|
||||
|
||||
Reference in New Issue
Block a user