vs: split target names for avx and avx2 builds

This commit is contained in:
kojin 2021-06-28 16:30:07 -04:00 committed by Kojin
parent 8dd9af23d4
commit 32c30ad9e4
2 changed files with 12 additions and 1 deletions

View File

@ -5,6 +5,14 @@
<SvnRootDir>$(ProjectRootDir)\..</SvnRootDir>
<SvnCommonDir>$(SvnRootDir)\common</SvnCommonDir>
<PcsxSubsection />
<SSEString />
<SSEString Condition="$(Configuration.Contains(AVX2))">-avx2</SSEString>
<ArchString />
<ArchString Condition="'$(Platform)'=='x64'">x64</ArchString>
<BuildString />
<BuildString Condition="$(Configuration.Contains(Debug))">-dbg</BuildString>
<BuildString Condition="$(Configuration.Contains(Devel))">-dev</BuildString>
<EXEString>$(ProjectName)$(ArchString)$(SSEString)$(BuildString)</EXEString>
</PropertyGroup>
<PropertyGroup>
<_ProjectFileVersion>10.0.30128.1</_ProjectFileVersion>

View File

@ -78,6 +78,7 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<TargetName>$(EXEString)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
@ -99,7 +100,9 @@
<PreprocessorDefinitions Condition="'$(CI)'=='true'">PCSX2_CI;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="!$(Configuration.Contains(AVX2))">_M_SSE=0x401;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="$(Configuration.Contains(AVX2))">_M_SSE=0x501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
<!-- This flag will throw a warning on x64 as SSE2 is implied-->
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<EnableEnhancedInstructionSet Condition="'$(Platform)'!='x64'">StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
<EnableEnhancedInstructionSet Condition="$(Configuration.Contains(AVX2))">AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
<MinimalRebuild>false</MinimalRebuild>
<ObjectFileName>$(IntDir)%(RelativeDir)</ObjectFileName>