| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<Project> |
| 3 |
<!-- |
| 4 |
This file is included by *everything* (Externals and Dolphin code). |
| 5 |
If you want to define something that only applies to Dolphin code, use Base.Dolphin.props |
| 6 |
--> |
| 7 |
<Import Project="Base.Macros.props" Condition="'$(BaseMacrosImported)'==''" /> |
| 8 |
<PropertyGroup> |
| 9 |
<IntDir>$(BuildRootDir)$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> |
| 10 |
<OutDir>$(IntDir)bin\</OutDir> |
| 11 |
<!--Set link /INCREMENTAL:NO to remove some entropy from builds (assists with deterministic build)--> |
| 12 |
<LinkIncremental>false</LinkIncremental> |
| 13 |
<!--Disable vcpkg to avoid accidentally linking to its packages--> |
| 14 |
<VcpkgEnabled>false</VcpkgEnabled> |
| 15 |
</PropertyGroup> |
| 16 |
<ItemDefinitionGroup> |
| 17 |
<!--ClCompile Base--> |
| 18 |
<ClCompile> |
| 19 |
<!--Base external header policy: ignore all warnings except template instantiations, and disable analyzer--> |
| 20 |
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel> |
| 21 |
<ExternalTemplatesDiagnostics>true</ExternalTemplatesDiagnostics> |
| 22 |
<DisableAnalyzeExternal>true</DisableAnalyzeExternal> |
| 23 |
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal> |
| 24 |
|
| 25 |
<WarningLevel>Level4</WarningLevel> |
| 26 |
<TreatWarningAsError>true</TreatWarningAsError> |
| 27 |
<IntrinsicFunctions>true</IntrinsicFunctions> |
| 28 |
<RuntimeTypeInfo>false</RuntimeTypeInfo> |
| 29 |
<FunctionLevelLinking>true</FunctionLevelLinking> |
| 30 |
<MultiProcessorCompilation>true</MultiProcessorCompilation> |
| 31 |
<!--This doesn't seem required but nice to be future-proof--> |
| 32 |
<LanguageStandard_C>stdc17</LanguageStandard_C> |
| 33 |
<!--Enable latest C++ standard--> |
| 34 |
<LanguageStandard>stdcpplatest</LanguageStandard> |
| 35 |
<BuildStlModules>false</BuildStlModules> |
| 36 |
<!--Enable Standard Conformance--> |
| 37 |
<ConformanceMode>true</ConformanceMode> |
| 38 |
<!--Enforce some behaviors as standards-conformant when they don't default as such.--> |
| 39 |
<AdditionalOptions>/Zc:__cplusplus,enumTypes,externConstexpr,preprocessor,templateScope,throwingNew /volatile:iso %(AdditionalOptions)</AdditionalOptions> |
| 40 |
<!--Enable detailed debug info--> |
| 41 |
<AdditionalOptions>/Zo %(AdditionalOptions)</AdditionalOptions> |
| 42 |
<!--Treat sources as utf-8--> |
| 43 |
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions> |
| 44 |
<DebugInformationFormat>OldStyle</DebugInformationFormat> |
| 45 |
<DiagnosticsFormat>Caret</DiagnosticsFormat> |
| 46 |
<!-- |
| 47 |
A (currently) hidden switch, like /Brepro, furthermore enabling warnings about non-deterministic code. |
| 48 |
This may be advantageous over /Brepro, which inits __DATE__, __TIME__, etc. equal to 1 (and allows |
| 49 |
them to be redefined), which could have unexpected results. |
| 50 |
--> |
| 51 |
<AdditionalOptions>/experimental:deterministic %(AdditionalOptions)</AdditionalOptions> |
| 52 |
<!-- |
| 53 |
pathmap replaces path prefixes of source files with a hardcoded value, assisting with keeping output |
| 54 |
files uniform even if actually built from different locations. The mapped path doesn't really need full |
| 55 |
drive prefix, but it keeps things human readable. Note the trailing "\" is actually to be escaped by a |
| 56 |
preceding "\" in the expanded variable. |
| 57 |
--> |
| 58 |
<AdditionalOptions>/pathmap:"$(DolphinRootDir)\"=d:\ %(AdditionalOptions)</AdditionalOptions> |
| 59 |
<AdditionalOptions>/pathmap:"$(WindowsSdkDir)\"=w:\ %(AdditionalOptions)</AdditionalOptions> |
| 60 |
<AdditionalOptions>/pathmap:"$(VCToolsetsDir)\"=v:\ %(AdditionalOptions)</AdditionalOptions> |
| 61 |
</ClCompile> |
| 62 |
<!--ClCompile Debug--> |
| 63 |
<ClCompile Condition="'$(Configuration)'=='Debug'"> |
| 64 |
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 65 |
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> |
| 66 |
<Optimization>Disabled</Optimization> |
| 67 |
</ClCompile> |
| 68 |
<ClCompile Condition="'$(Configuration)'=='Debug' And '$(EnableASAN)'=='true'"> |
| 69 |
<BasicRuntimeChecks>Default</BasicRuntimeChecks> |
| 70 |
</ClCompile> |
| 71 |
<!--ClCompile Release--> |
| 72 |
<ClCompile Condition="'$(Configuration)'=='Release'"> |
| 73 |
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion> |
| 74 |
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> |
| 75 |
<OmitFramePointers>true</OmitFramePointers> |
| 76 |
<StringPooling>true</StringPooling> |
| 77 |
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> |
| 78 |
<BufferSecurityCheck>false</BufferSecurityCheck> |
| 79 |
<AdditionalOptions>/Gw /Zc:checkGwOdr %(AdditionalOptions)</AdditionalOptions> |
| 80 |
<WholeProgramOptimization Condition="'$(DolphinRelease)'=='true'">true</WholeProgramOptimization> |
| 81 |
</ClCompile> |
| 82 |
<!--Link Base--> |
| 83 |
<Link> |
| 84 |
<GenerateDebugInformation>true</GenerateDebugInformation> |
| 85 |
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors> |
| 86 |
<AdditionalOptions>/experimental:deterministic %(AdditionalOptions)</AdditionalOptions> |
| 87 |
</Link> |
| 88 |
<!--Link Release--> |
| 89 |
<Link Condition="'$(Configuration)'=='Release'"> |
| 90 |
<LinkTimeCodeGeneration Condition="'$(DolphinRelease)'=='true'">UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> |
| 91 |
<OptimizeReferences>true</OptimizeReferences> |
| 92 |
<EnableCOMDATFolding>true</EnableCOMDATFolding> |
| 93 |
</Link> |
| 94 |
<Lib> |
| 95 |
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors> |
| 96 |
<LinkTimeCodeGeneration Condition="'$(DolphinRelease)'=='true'">true</LinkTimeCodeGeneration> |
| 97 |
<AdditionalOptions>/experimental:deterministic %(AdditionalOptions)</AdditionalOptions> |
| 98 |
</Lib> |
| 99 |
</ItemDefinitionGroup> |
| 100 |
<ItemGroup /> |
| 101 |
</Project> |