|
23 | 23 | AssemblyName="Microsoft.Build.Tasks.v4.0"> |
24 | 24 | <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task> |
25 | 25 | </UsingTask> |
| 26 | + <Target |
| 27 | + Name="_WriteYasmTlogs" |
| 28 | + Condition="'@(YASM)' != '' and '@(SelectedFiles)' == ''"> |
| 29 | + <ItemGroup> |
| 30 | + <YASM Remove="@(YASM)" Condition="'%(YASM.ExcludedFromBuild)' == 'true' or '%(YASM.ObjectFileName)' == ''" /> |
| 31 | + </ItemGroup> |
| 32 | + <ItemGroup Condition="'@(YASM)' != ''"> |
| 33 | + <_YasmReadTlog Include="^%(YASM.FullPath);%(YASM.AdditionalDependencies)" /> |
| 34 | + <_YasmWriteTlog Include="^%(YASM.FullPath);$([MSBuild]::NormalizePath('$(MSBuildProjectDirectory)', '%(YASM.ObjectFileName)'))" /> |
| 35 | + </ItemGroup> |
| 36 | + <WriteLinesToFile |
| 37 | + Condition="'@(_YasmReadTlog)' != ''" |
| 38 | + File="$(TLogLocation)Yasm.read.1u.tlog" |
| 39 | + Lines="@(_YasmReadTlog->MetaData('Identity')->ToUpperInvariant());" |
| 40 | + Overwrite="true" |
| 41 | + Encoding="Unicode"/> |
| 42 | + <WriteLinesToFile |
| 43 | + Condition="'@(_YasmWriteTlog)' != ''" |
| 44 | + File="$(TLogLocation)Yasm.write.1u.tlog" |
| 45 | + Lines="@(_YasmWriteTlog->MetaData('Identity')->ToUpperInvariant());" |
| 46 | + Overwrite="true" |
| 47 | + Encoding="Unicode"/> |
| 48 | + <ItemGroup> |
| 49 | + <_YasmReadTlog Remove="@(_YasmReadTlog)" /> |
| 50 | + <_YasmWriteTlog Remove="@(_YasmWriteTlog)" /> |
| 51 | + </ItemGroup> |
| 52 | + </Target> |
26 | 53 | <Target |
27 | 54 | Name="_YASM" |
28 | 55 | BeforeTargets="$(YASMBeforeTargets)" |
|
34 | 61 | <ItemGroup Condition="'@(SelectedFiles)' != ''"> |
35 | 62 | <YASM Remove="@(YASM)" Condition="'%(Identity)' != '@(SelectedFiles)'" /> |
36 | 63 | </ItemGroup> |
37 | | - <ItemGroup> |
38 | | - <YASM_tlog Include="%(YASM.ObjectFileName)" Condition="'%(YASM.ObjectFileName)' != '' and '%(YASM.ExcludedFromBuild)' != 'true'"> |
39 | | - <Source>@(YASM, '|')</Source> |
40 | | - </YASM_tlog> |
41 | | - </ItemGroup> |
42 | 64 | <Message |
43 | 65 | Condition="'@(YASM)' != '' and '%(YASM.ExcludedFromBuild)' != 'true'" |
44 | 66 | Importance="High" |
45 | 67 | Text="%(YASM.ExecutionDescription)" /> |
46 | | - <WriteLinesToFile |
47 | | - Condition="'@(YASM_tlog)' != '' and '%(YASM_tlog.ExcludedFromBuild)' != 'true'" |
48 | | - File="$(IntDir)$(ProjectName).write.1.tlog" |
49 | | - Lines="^%(YASM_tlog.Source);@(YASM_tlog->'%(Fullpath)')"/> |
50 | 68 | <YASM |
51 | 69 | Condition="'@(YASM)' != '' and '%(YASM.ExcludedFromBuild)' != 'true'" |
52 | 70 | Inputs="%(YASM.Inputs)" |
53 | 71 | ObjectFileName="%(YASM.ObjectFileName)" |
54 | | - SymbolsPrefix="%(NASM.SymbolsPrefix)" |
55 | | - SymbolsPostfix="%(NASM.SymbolsPostfix)" |
| 72 | + SymbolsPrefix="%(YASM.SymbolsPrefix)" |
| 73 | + SymbolsPostfix="%(YASM.SymbolsPostfix)" |
56 | 74 | GenerateDebugInformation="%(YASM.GenerateDebugInformation)" |
57 | 75 | IncludePaths="%(YASM.IncludePaths)" |
58 | 76 | PreIncludeFiles="%(YASM.PreIncludeFiles)" |
|
0 commit comments