Fix build on Win32

On Windows, the platform name (Win32 or x64) is used as the object
format parameter for vsyasm. However, vsyasm 1.3.0 expects the format
name to be in lower case. This commit changes vsyasm.props so that the
object format is converted to lower case.

Fixes #168.
This commit is contained in:
Arttu Ylä-Outinen 2017-05-22 14:15:01 +03:00
parent 5f8e17d4ba
commit 7086bc144a

View file

@ -9,16 +9,23 @@
<YASMDependsOn <YASMDependsOn
Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(YASMDependsOn)</YASMDependsOn> Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(YASMDependsOn)</YASMDependsOn>
</PropertyGroup> </PropertyGroup>
<!-- Object format name for vsyasm must be in lower case. -->
<PropertyGroup Condition="'$(Platform)' == 'Win32'">
<YASMFormat>win32</YASMFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'x64'">
<YASMFormat>win64</YASMFormat>
</PropertyGroup>
<ItemDefinitionGroup> <ItemDefinitionGroup>
<YASM> <YASM>
<Debug>False</Debug> <Debug>False</Debug>
<ObjectFile>$(IntDir)</ObjectFile> <ObjectFile>$(IntDir)</ObjectFile>
<PreProc>0</PreProc> <PreProc>0</PreProc>
<Parser>0</Parser> <Parser>0</Parser>
<CommandLineTemplate>vsyasm.exe -Xvc -f $(Platform) [AllOptions] [AdditionalOptions] [Inputs]</CommandLineTemplate> <CommandLineTemplate>vsyasm.exe -Xvc -f $(YASMFormat) [AllOptions] [AdditionalOptions] [Inputs]</CommandLineTemplate>
<Outputs>%(ObjectFile)</Outputs> <Outputs>%(ObjectFile)</Outputs>
<ExecutionDescription>Assembling %(Filename)%(Extension)</ExecutionDescription> <ExecutionDescription>Assembling %(Filename)%(Extension)</ExecutionDescription>
<ShowOnlyRuleProperties>false</ShowOnlyRuleProperties> <ShowOnlyRuleProperties>false</ShowOnlyRuleProperties>
</YASM> </YASM>
</ItemDefinitionGroup> </ItemDefinitionGroup>
</Project> </Project>