Skip to content

Instantly share code, notes, and snippets.

@zhaozg
Created April 29, 2015 03:45
Show Gist options
  • Save zhaozg/2c5dd35855679ee2ee83 to your computer and use it in GitHub Desktop.
Save zhaozg/2c5dd35855679ee2ee83 to your computer and use it in GitHub Desktop.
nasm.props for visualstudio 2012
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup
Condition="'$(NASMBeforeTargets)' == '' and '$(NASMAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
<NASMBeforeTargets>Midl</NASMBeforeTargets>
<NASMAfterTargets>CustomBuild</NASMAfterTargets>
</PropertyGroup>
<ItemDefinitionGroup>
<NASM>
<OutputFormat>$(IntDir)%(FileName).obj</OutputFormat>
<Outputswitch>0</Outputswitch>
<PackAlignmentBoundary>0</PackAlignmentBoundary>
<CommandLineTemplate Condition="'$(Platform)' == 'Win32'">nasm [AllOptions] [AdditionalOptions] %(FullPath) </CommandLineTemplate>
<CommandLineTemplate Condition="'$(Platform)' == 'X64'">nasm [AllOptions] [AdditionalOptions] %(FullPath)</CommandLineTemplate>
<CommandLineTemplate Condition="'$(Platform)' != 'Win32' and '$(Platform)' != 'X64'">echo NASM not supported on this platform</CommandLineTemplate>
<ExecutionDescription>%(FileName).asm</ExecutionDescription>
</NASM>
</ItemDefinitionGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment