mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
adf6ef066d
We branch in most of the VPC project files. These are not useful to the opensource code without the partner module. They are only needed to build SDR or console support. But if I don't branch the files then I have to leave a symlink for each one, and since they are small and don't have anything secret, it's easier to just have the actual files themselves. We branch in some third party sources where we need to control the version and/or need to make modifications. We add symlinks to directories in the modules folder. These will be broken if you don't have access to that stuff, but it's the cleanest way I know to "overlay" one project on top of another. Also add some public header files which are not part of the Steamworks SDK right now but might be in the future. I really wish there was a way for me to NOT pin the submodule to a particular commit, and just always have it point at whatever the current head is. I used a .gitattributes file as a workaround for Windows directory symlinks https://github.com/git-for-windows/git/issues/2177
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
$Macro SRCDIR "..\.."
|
|
$Macro OUTBINDIR "."
|
|
$Macro OUTBINNAME "example_chat"
|
|
|
|
$Include "../steamnetworkingsockets_branch_config.vpc"
|
|
$Include "$SRCDIR/vpc_scripts/steam_exe_base.vpc"
|
|
$include "../steamnetworkingsockets_linkbaselibs_include.vpc"
|
|
$include "../../vpc_scripts/steam_steamapilib_include.vpc"
|
|
|
|
$Configuration
|
|
{
|
|
$General
|
|
{
|
|
$OutputDirectory "$OUTBINDIR"
|
|
$AdditionalProjectDependencies "$BASE;steamnetworkingsockets"
|
|
}
|
|
$Compiler
|
|
{
|
|
$PreprocessorDefinitions "$BASE;STEAMNETWORKINGSOCKETS_STANDALONELIB"
|
|
}
|
|
$Linker
|
|
{
|
|
$SubSystem "Console (/SUBSYSTEM:CONSOLE)" [$WINDOWS]
|
|
$AdditionalDependencies "$BASE ws2_32.lib" [$WINDOWS]
|
|
$OutputFile "$OUTBINDIR/$OUTBINNAME" [$POSIX]
|
|
$OutputFile "$OUTBINDIR/$OUTBINNAME.exe" [$WINDOWS]
|
|
}
|
|
}
|
|
|
|
// Always compile in asserts, even in release builds
|
|
$Configuration "Release"
|
|
{
|
|
$Compiler
|
|
{
|
|
$PreprocessorDefinitions "$BASE;RELEASE_ASSERTS;RETAIL_ASSERTS"
|
|
}
|
|
}
|
|
|
|
$Project "steamnetworkingsockes_example_chat"
|
|
{
|
|
$Folder "Source Files"
|
|
{
|
|
$File "example_chat.cpp"
|
|
}
|
|
|
|
$Folder "Link Libraries"
|
|
{
|
|
$ImpLib "$STEAMNETWORKINGSOCKETS_BINDIR/steamnetworkingsockets"
|
|
}
|
|
}
|