8989 <ImportGroup Label =" ExtensionTargets" >
9090 </ImportGroup >
9191
92- <Target Name =" BuildPython3_dDef" BeforeTargets =" BuildStubDef" Inputs = " ..\PC\python3.def " Outputs = " $(IntDir)python3_d.def " Condition =" $(Configuration) == 'Debug'" >
92+ <Target Name =" BuildPython3_dDef" BeforeTargets =" BuildStubDef" Condition =" $(Configuration) == 'Debug'" >
9393 <ItemGroup >
9494 <_DefLines Remove =" @(_DefLines)" />
9595 <_Lines Remove =" @(_Lines)" />
96+ <_OriginalLines Remove =" @(_OriginalLines)" />
9697 </ItemGroup >
9798 <ReadLinesFromFile File =" ..\PC\python3.def" >
9899 <Output TaskParameter =" Lines" ItemName =" _DefLines" />
99100 </ReadLinesFromFile >
101+ <ReadLinesFromFile File =" $(IntDir)python3_d.def" Condition =" Exists('$(IntDir)python3_d.def')" >
102+ <Output TaskParameter =" Lines" ItemName =" _OriginalLines" />
103+ </ReadLinesFromFile >
100104 <PropertyGroup >
101105 <_Pattern1 >(=python$(MajorVersionNumber)$(MinorVersionNumber))\.</_Pattern1 >
102106 <_Sub1 >$1_d.</_Sub1 >
109113 </_Lines >
110114 </ItemGroup >
111115 <MakeDir Directories =" $(IntDir)" />
112- <WriteLinesToFile File =" $(IntDir)python3_d.def" Lines =" @(_Lines->'%(New)')" Overwrite =" true" />
116+ <Message Text =" Updating python3_d.def" Condition =" @(_Lines->'%(New)') != @(_OriginalLines)" Importance =" high" />
117+ <WriteLinesToFile File =" $(IntDir)python3_d.def" Lines =" @(_Lines->'%(New)')" Overwrite =" true"
118+ Condition =" @(_Lines->'%(New)') != @(_OriginalLines)" />
113119 </Target >
114120
115- <Target Name =" BuildStubDef" BeforeTargets =" PreLinkEvent" Inputs = " ..\PC\python3.def " Outputs = " $(IntDir)python3stub.def " >
121+ <Target Name =" BuildStubDef" BeforeTargets =" PreLinkEvent" >
116122 <ItemGroup >
117123 <_DefLines Remove =" @(_DefLines)" />
118124 <_Lines Remove =" @(_Lines)" />
125+ <_OriginalLines Remove =" @(_OriginalLines)" />
119126 </ItemGroup >
120127 <ReadLinesFromFile File =" ..\PC\python3.def" >
121128 <Output TaskParameter =" Lines" ItemName =" _DefLines" />
122129 </ReadLinesFromFile >
130+ <ReadLinesFromFile File =" $(IntDir)python3stub.def" Condition =" Exists('$(IntDir)python3stub.def')" >
131+ <Output TaskParameter =" Lines" ItemName =" _OriginalLines" />
132+ </ReadLinesFromFile >
123133 <PropertyGroup >
124134 <_Pattern >^[\w.]+=.+?\.([^ ]+).*$</_Pattern >
125135 <_Sub >$1</_Sub >
132142 <_Lines Include =" @(_Symbols->'%(Symbol)')" />
133143 </ItemGroup >
134144 <MakeDir Directories =" $(IntDir)" />
135- <WriteLinesToFile File =" $(IntDir)python3stub.def" Lines =" @(_Lines)" Overwrite =" true" />
145+ <Message Text =" Updating python3stub.def" Condition =" @(_OriginalLines) != @(_Lines)" Importance =" high" />
146+ <WriteLinesToFile File =" $(IntDir)python3stub.def" Lines =" @(_Lines)" Overwrite =" true"
147+ Condition =" @(_DefLines) != @(_Lines)" />
136148 </Target >
137149</Project >
0 commit comments