-
Notifications
You must be signed in to change notification settings - Fork 37
/
yasm.props
23 lines (23 loc) · 1.21 KB
/
yasm.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup
Condition="'$(YASMBeforeTargets)' == '' and '$(YASMAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
<YASMBeforeTargets>Midl</YASMBeforeTargets>
<YASMAfterTargets>CustomBuild</YASMAfterTargets>
</PropertyGroup>
<PropertyGroup>
<YasmPath Condition= "'$(YASMPATH)' == ''">$(VCInstallDir)</YasmPath>
</PropertyGroup>
<ItemDefinitionGroup>
<YASM>
<Preprocessor>0</Preprocessor>
<Parser>0</Parser>
<ObjectFileName>$(IntDir)%(FileName).obj</ObjectFileName>
<CommandLineTemplate Condition="'$(Platform)' == 'Win32'">"$(YasmPath)"yasm.exe -Xvc -f win32 [AllOptions] [AdditionalOptions] "%(FullPath)"</CommandLineTemplate>
<CommandLineTemplate Condition="'$(Platform)' == 'x64'">"$(YasmPath)"yasm.exe -Xvc -f win64 [AllOptions] [AdditionalOptions] "%(FullPath)"</CommandLineTemplate>
<CommandLineTemplate Condition="'$(Platform)' != 'Win32' and '$(Platform)' != 'x64'">echo YASM not supported on this platform
exit 1</CommandLineTemplate>
<ExecutionDescription>%(Identity)</ExecutionDescription>
</YASM>
</ItemDefinitionGroup>
</Project>