32 lines
840 B
C++
32 lines
840 B
C++
#include "helper.h"
|
|
#include "tier0/commandline.h"
|
|
|
|
#define EXTERNAL "external/"
|
|
DECLARE_BUILD_STAGE(config)
|
|
{
|
|
if (Target_t::DefaultTarget().kernel == TARGET_KERNEL_IOS)
|
|
{
|
|
ADD_OUTPUT_VALUE("static", "true");
|
|
ADD_OUTPUT_VALUE("steam", "false");
|
|
}
|
|
else
|
|
{
|
|
if (Target_t::DefaultTarget().GetTriplet() == "x86_64-unknown-linux")
|
|
{
|
|
ADD_OUTPUT_VALUE("steam", "true");
|
|
ADD_OUTPUT_OBJECT("steam_lib", EXTERNAL"steamworks/redistributable_bin/linux64/libsteam_api.so");
|
|
}
|
|
else if (Target_t::DefaultTarget().kernel == TARGET_KERNEL_WINDOWS)
|
|
{
|
|
ADD_OUTPUT_VALUE("steam", "true");
|
|
ADD_OUTPUT_OBJECT("steam_lib", EXTERNAL"steamworks/redistributable_bin/win64/steam_api64.dll");
|
|
}
|
|
else {
|
|
ADD_OUTPUT_VALUE("steam", "false");
|
|
}
|
|
ADD_OUTPUT_VALUE("static", "false");
|
|
}
|
|
ADD_OUTPUT_VALUE("static", "true");
|
|
return 0;
|
|
}
|