Skip to content

Commit

Permalink
Fix build with Yasm 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberbeing committed Oct 1, 2014
1 parent c70cd5a commit da595cf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/YASM.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@
</PropertyGroup>
<ItemDefinitionGroup>
<YASM>
<CommandLineTemplate>yasm -X vc -f $(Platform) [Debug] [Defines] [IncludePaths] -o "$(IntDir)%(Filename).obj" "%(FullPath)"</CommandLineTemplate>
<CommandLineTemplate>yasm -X vc [Platform] [Debug] [Defines] [IncludePaths] -o "$(IntDir)%(Filename).obj" "%(FullPath)"</CommandLineTemplate>
<Outputs>$(IntDir)%(Filename).obj</Outputs>
<ExecutionDescription>YASM: Assembling %(Filename)%(Extension)</ExecutionDescription>
<Debug>False</Debug>
</YASM>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
<YASM>
<Platform>win32</Platform>
</YASM>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
<YASM>
<Platform>win64</Platform>
</YASM>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Debug Filter'">
<YASM>
<Debug>True</Debug>
Expand Down
1 change: 1 addition & 0 deletions src/YASM.targets
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<YASM
Condition="'@(YASM)' != '' and '%(YASM.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(YASM.CommandLineTemplate)"
Platform="%(YASM.Platform)"
Debug="%(YASM.Debug)"
Defines="%(YASM.Defines)"
AdditionalOptions="%(YASM.AdditionalOptions)"
Expand Down
5 changes: 5 additions & 0 deletions src/YASM.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
</Category.DisplayName>
</Category>
</Rule.Categories>
<StringProperty
Name="Platform"
DisplayName="Platform"
Description="Specify the yasm object format"
Switch="-f [value]" />
<BoolProperty
Name="Debug"
DisplayName="Debug Information"
Expand Down

0 comments on commit da595cf

Please sign in to comment.