2018-04-28 10:50:47 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-08-19 00:34:06 +00:00
|
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<Import Project="Base.Macros.props" Condition="'$(BaseMacrosImported)'==''" />
|
2013-12-07 20:12:02 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<IntDir>$(BuildRootDir)$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
|
|
|
<OutDir>$(IntDir)bin\</OutDir>
|
|
|
|
<TargetName Condition="'$(ConfigurationType)'=='Application'">$(ProjectName)$(TargetSuffix)</TargetName>
|
2020-08-28 06:59:22 +00:00
|
|
|
<!--Set link /INCREMENTAL:NO to remove some entropy from builds (assists with /Brepro)-->
|
|
|
|
<LinkIncremental>false</LinkIncremental>
|
2021-06-03 22:42:23 +00:00
|
|
|
<!--
|
|
|
|
Coagulate external include directories.
|
|
|
|
Order matters! (first hit, first use).
|
|
|
|
Note: Directory containing source file being compiled is always searched first.
|
|
|
|
-->
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)Bochs_disasm;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)bzip2;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)cpp-optparse;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)FreeSurround\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)cubeb\include;$(ExternalsDir)cubeb\msvc;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)curl\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)discord-rpc\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)ed25519;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)enet\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)ffmpeg\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)fmt\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)GL;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)glslang;$(ExternalsDir)glslang\StandAlone;$(ExternalsDir)glslang\glslang\Public;$(ExternalsDir)glslang\SPIRV;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)imgui;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)liblzma\api;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)libpng;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)libusb\libusb;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)LZO;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)miniupnpc\src;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)minizip;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)mbedtls\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)OpenAL\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)picojson;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)pugixml;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)rangeset\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)SFML\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)soundtouch;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)Vulkan\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)WIL\include;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)xxhash;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)zlib;$(ExternalIncludePath)</ExternalIncludePath>
|
|
|
|
<ExternalIncludePath>$(ExternalsDir)zstd\lib;$(ExternalIncludePath)</ExternalIncludePath>
|
2013-12-07 20:12:02 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<!--ClCompile Base-->
|
|
|
|
<ClCompile>
|
2014-02-18 18:21:12 +00:00
|
|
|
<AdditionalIncludeDirectories>$(CoreDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2021-06-03 22:42:23 +00:00
|
|
|
<!--Base external header policy: ignore all warnings except template instantiations, and disable analyzer-->
|
|
|
|
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
|
|
|
|
<ExternalTemplatesDiagnostics>true</ExternalTemplatesDiagnostics>
|
|
|
|
<DisableAnalyzeExternal>true</DisableAnalyzeExternal>
|
2019-06-14 17:43:22 +00:00
|
|
|
<PreprocessorDefinitions>FMT_HEADER_ONLY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2020-08-22 01:58:38 +00:00
|
|
|
<!--
|
|
|
|
It would be a good idea to disable _CRT_SECURE_NO_WARNINGS and get rid of e.g. C string parsing funcs
|
|
|
|
Unfortunately this also complains about FILE* APIs, which can be inconvenient to replace.
|
|
|
|
-->
|
|
|
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
<!--IOS net code uses some ipv4-only functions which are marked as deprecated by winsock2-->
|
|
|
|
<PreprocessorDefinitions>_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2020-08-22 09:07:33 +00:00
|
|
|
<!--Currently needed for some code in StringUtil used only on Android-->
|
|
|
|
<PreprocessorDefinitions>_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2017-01-24 17:25:18 +00:00
|
|
|
<PreprocessorDefinitions>USE_UPNP;USE_USBDK;__LIBUSB__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2014-11-09 22:30:06 +00:00
|
|
|
<PreprocessorDefinitions>SFML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2017-04-26 21:27:13 +00:00
|
|
|
<PreprocessorDefinitions>USE_ANALYTICS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2018-06-01 02:56:31 +00:00
|
|
|
<PreprocessorDefinitions>USE_DISCORD_PRESENCE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2016-06-17 00:28:34 +00:00
|
|
|
<PreprocessorDefinitions>CURL_STATICLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2019-10-31 23:09:52 +00:00
|
|
|
<PreprocessorDefinitions>WIL_SUPPRESS_EXCEPTIONS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2019-12-30 14:07:54 +00:00
|
|
|
<PreprocessorDefinitions>LZMA_API_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2019-11-26 04:31:15 +00:00
|
|
|
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">_ARCH_64=1;_M_X86=1;_M_X86_64=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
<PreprocessorDefinitions Condition="'$(Platform)'=='ARM64'">_ARCH_64=1;_M_ARM_64=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">HAVE_FFMPEG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2021-01-10 05:56:46 +00:00
|
|
|
<PreprocessorDefinitions>USE_GDBSTUB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2021-01-28 03:10:53 +00:00
|
|
|
<PreprocessorDefinitions Condition="'$(Platform)'!='ARM64'">HAS_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
<PreprocessorDefinitions>HAS_VULKAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2015-01-20 22:54:53 +00:00
|
|
|
<!--
|
|
|
|
Make sure we include a clean version of windows.h.
|
|
|
|
-->
|
2018-04-28 10:50:47 +00:00
|
|
|
<PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2017-06-07 11:43:08 +00:00
|
|
|
<WarningLevel>Level4</WarningLevel>
|
2014-08-20 03:20:29 +00:00
|
|
|
<TreatWarningAsError>true</TreatWarningAsError>
|
2013-12-07 20:12:02 +00:00
|
|
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
|
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
|
|
|
<MinimalRebuild>false</MinimalRebuild>
|
2020-08-27 10:20:54 +00:00
|
|
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
2013-12-07 20:12:02 +00:00
|
|
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
2017-05-26 16:03:32 +00:00
|
|
|
<!--Enable latest C++ standard-->
|
|
|
|
<LanguageStandard>stdcpplatest</LanguageStandard>
|
2017-05-26 12:36:33 +00:00
|
|
|
<!--Enable Standard Conformance-->
|
2019-08-15 15:47:55 +00:00
|
|
|
<ConformanceMode>true</ConformanceMode>
|
2020-08-28 04:58:48 +00:00
|
|
|
<!--Enforce some behaviors as standards-conformant when they don't default as such.-->
|
|
|
|
<AdditionalOptions>/Zc:externConstexpr,lambda,preprocessor,throwingNew /volatile:iso %(AdditionalOptions)</AdditionalOptions>
|
2014-08-20 03:06:27 +00:00
|
|
|
<!--Enable detailed debug info-->
|
2017-06-02 10:28:33 +00:00
|
|
|
<AdditionalOptions>/Zo %(AdditionalOptions)</AdditionalOptions>
|
|
|
|
<!--Treat sources as utf-8-->
|
|
|
|
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
2014-08-15 06:51:13 +00:00
|
|
|
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
2017-06-02 23:38:41 +00:00
|
|
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
2017-06-07 11:43:08 +00:00
|
|
|
<!-- Warnings one may want to ignore when using Level4.
|
|
|
|
4201 nonstandard extension used : nameless struct/union
|
|
|
|
4127 conditional expression is constant
|
|
|
|
4100 'identifier' : unreferenced formal parameter
|
|
|
|
4244 'conversion' conversion from 'type1' to 'type2', possible loss of data
|
|
|
|
Level4 warns if type1==int and there is narrowing
|
|
|
|
4121 'symbol' : alignment of a member was sensitive to packing
|
|
|
|
4324 Padding was added at the end of a structure because you specified a __declspec(align) value.
|
|
|
|
4714 function 'function' marked as __forceinline not inlined
|
|
|
|
-->
|
|
|
|
<DisableSpecificWarnings>4201;4127;4100;4244;4121;4324;4714;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
|
|
<!-- Level4 warnings which should eventually be enabled
|
|
|
|
4245 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch
|
|
|
|
Currently jits use some annoying code patterns which makes this common
|
|
|
|
-->
|
|
|
|
<DisableSpecificWarnings>4245;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
2020-08-28 04:58:48 +00:00
|
|
|
<!-- Temporarily disable warnings to enable /Zc:preprocessor compatibility with WinSDK headers.
|
|
|
|
5105 macro expansion producing 'defined' has undefined behavior
|
|
|
|
-->
|
|
|
|
<DisableSpecificWarnings>5105;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
2017-06-07 22:25:13 +00:00
|
|
|
<!-- Enable some off-by-default warnings
|
|
|
|
4263 Non-virtual member function hides base class virtual function
|
|
|
|
4265 Class has virtual functions, but destructor is not virtual
|
|
|
|
4946 Reinterpret cast between related types
|
|
|
|
-->
|
2017-06-08 04:03:02 +00:00
|
|
|
<AdditionalOptions>/w44263 /w44265 /w44946 %(AdditionalOptions)</AdditionalOptions>
|
2020-08-27 08:57:18 +00:00
|
|
|
<AdditionalOptions>/Brepro %(AdditionalOptions)</AdditionalOptions>
|
2020-08-28 08:39:38 +00:00
|
|
|
<!--
|
|
|
|
A (currently) hidden switch, like /Brepro, furthermore enabling warnings about non-deterministic code.
|
|
|
|
This may be advantageous over /Brepro, which inits __DATE__, __TIME__, etc. equal to 1 (and allows
|
|
|
|
them to be redefined), which could have unexpected results.
|
|
|
|
-->
|
|
|
|
<AdditionalOptions>/experimental:deterministic %(AdditionalOptions)</AdditionalOptions>
|
2013-12-07 20:12:02 +00:00
|
|
|
</ClCompile>
|
|
|
|
<!--ClCompile Debug-->
|
|
|
|
<ClCompile Condition="'$(Configuration)'=='Debug'">
|
|
|
|
<PreprocessorDefinitions>_DEBUG;_SECURE_SCL=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
|
|
|
<Optimization>Disabled</Optimization>
|
|
|
|
</ClCompile>
|
2020-08-19 04:54:08 +00:00
|
|
|
<ClCompile Condition="'$(Configuration)'=='Debug' And '$(EnableASAN)'=='true'">
|
|
|
|
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
|
|
|
</ClCompile>
|
2013-12-07 20:12:02 +00:00
|
|
|
<!--ClCompile Release-->
|
|
|
|
<ClCompile Condition="'$(Configuration)'=='Release'">
|
|
|
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
|
|
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
|
|
|
<OmitFramePointers>true</OmitFramePointers>
|
|
|
|
<StringPooling>true</StringPooling>
|
|
|
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
|
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
|
|
|
<PreprocessorDefinitions>_SECURE_SCL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2020-08-27 10:20:54 +00:00
|
|
|
<AdditionalOptions>/Gw %(AdditionalOptions)</AdditionalOptions>
|
|
|
|
<WholeProgramOptimization Condition="'$(DolphinRelease)'=='true'">true</WholeProgramOptimization>
|
2013-12-07 20:12:02 +00:00
|
|
|
</ClCompile>
|
|
|
|
<!--Link Base-->
|
|
|
|
<Link>
|
|
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
|
|
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
|
2020-08-27 08:57:18 +00:00
|
|
|
<AdditionalOptions>/Brepro %(AdditionalOptions)</AdditionalOptions>
|
2013-12-07 20:12:02 +00:00
|
|
|
</Link>
|
|
|
|
<!--Link Release-->
|
|
|
|
<Link Condition="'$(Configuration)'=='Release'">
|
|
|
|
<LinkTimeCodeGeneration Condition="'$(DolphinRelease)'=='true'">UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
|
|
|
<OptimizeReferences>true</OptimizeReferences>
|
|
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
|
|
</Link>
|
2014-05-27 20:41:19 +00:00
|
|
|
<!--Link Base:Application-->
|
|
|
|
<Link Condition="'$(ConfigurationType)'=='Application'">
|
2017-06-09 05:15:42 +00:00
|
|
|
<!--See Common/CompatPatches.cpp-->
|
|
|
|
<ForceSymbolReferences>enableCompatPatches</ForceSymbolReferences>
|
2017-06-07 04:41:20 +00:00
|
|
|
<!--TODO fix up ffmpeg garbage-->
|
2020-08-27 08:57:18 +00:00
|
|
|
<AdditionalOptions>/NODEFAULTLIB:libcmt %(AdditionalOptions)</AdditionalOptions>
|
2014-05-27 20:41:19 +00:00
|
|
|
</Link>
|
2013-12-07 20:12:02 +00:00
|
|
|
<Lib>
|
|
|
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
|
|
|
<LinkTimeCodeGeneration Condition="'$(DolphinRelease)'=='true'">true</LinkTimeCodeGeneration>
|
2020-08-27 08:57:18 +00:00
|
|
|
<AdditionalOptions>/Brepro %(AdditionalOptions)</AdditionalOptions>
|
2013-12-07 20:12:02 +00:00
|
|
|
</Lib>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
<ItemGroup />
|
2014-05-28 04:43:49 +00:00
|
|
|
</Project>
|