source-engine/unitlib/unitlib.vpc

51 lines
992 B
Plaintext
Raw Permalink Normal View History

2020-04-23 00:56:21 +08:00
//-----------------------------------------------------------------------------
// UNITLIB.VPC
//
// Project Script
//-----------------------------------------------------------------------------
$Macro SRCDIR ".."
2020-10-23 02:00:42 +08:00
$Macro OUTBINDIR "$LIBPUBLIC"
2020-04-23 00:56:21 +08:00
$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
$Linux
{
$BuildForLinux 1
}
$Configuration
{
$Compiler
{
$PreprocessorDefinitions "$BASE;fopen=dont_use_fopen;UNITLIB_DLL_EXPORT"
}
$PreLinkEvent [$WIN32]
{
$CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $SRCDIR\lib\public\$(TargetName).lib $SRCDIR" "\n" \
"call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $SRCDIR\lib\public\$(TargetName).exp $SRCDIR" "\n" \
"$BASE"
}
$Linker
{
$AdditionalDependencies "$BASE odbc32.lib odbccp32.lib"
$ImportLibrary "$SRCDIR\lib\public\$(TargetName).lib"
}
}
$Project "Unitlib"
{
$Folder "Source Files"
{
$File "unitlib.cpp"
}
$Folder "Header Files"
{
$File "$SRCDIR\public\unitlib\UnitLib.h"
}
}