|
73 | 73 | </Target>
|
74 | 74 |
|
75 | 75 | <Target Name="_RegenKeywords" Inputs="@(_KeywordSources)" Outputs="@(_KeywordOutputs)">
|
76 |
| - <Message Text="Regenerate @(KeywordOutputs->'%(Filename)%(Extension)',' ')" Importance="high" /> |
| 76 | + <Message Text="Regenerate @(_KeywordOutputs->'%(Filename)%(Extension)',' ')" Importance="high" /> |
77 | 77 | <Exec Command="set PYTHONPATH=Tools\peg_generator%0D%0A$(PythonForBuild) -m pegen.keywordgen Grammar\python.gram Grammar\Tokens Lib\keyword.py"
|
78 | 78 | WorkingDirectory="$(PySourcePath)" />
|
79 | 79 | </Target>
|
80 |
| - |
| 80 | + |
81 | 81 | <Target Name="Regen" DependsOnTargets="_TouchRegenSources;_RegenPegen;_RegenAST_H;_RegenOpcodes;_RegenTokens;_RegenKeywords">
|
82 | 82 | <Message Text="Generated sources are up to date" Importance="high" />
|
83 | 83 | </Target>
|
| 84 | + |
| 85 | + |
| 86 | + <ItemGroup> |
| 87 | + <_TestFrozenSources Include="$(PySourcePath)Programs\freeze_test_frozenmain.py; |
| 88 | + $(PySourcePath)Programs\test_frozenmain.py; |
| 89 | + @(_OpcodeOutputs)" /> |
| 90 | + <_TestFrozenOutputs Include="$(PySourcePath)Programs\test_frozenmain.h" /> |
| 91 | + <_LicenseSources Include="$(PySourcePath)LICENSE; |
| 92 | + $(PySourcePath)PC\crtlicense.txt; |
| 93 | + $(bz2Dir)LICENSE; |
| 94 | + $(opensslOutDir)LICENSE; |
| 95 | + $(libffiDir)LICENSE;" /> |
| 96 | + <_LicenseSources Include="$(tcltkDir)tcllicense.terms; |
| 97 | + $(tcltkDir)tklicense.terms; |
| 98 | + $(tcltkDir)tixlicense.terms" Condition="$(IncludeTkinter)" /> |
| 99 | + <_LicenseOutputs Include="$(OutDir)LICENSE.txt" /> |
| 100 | + </ItemGroup> |
| 101 | + |
| 102 | + <Target Name="_RegenTestFrozenmain" Inputs="@(_TestFrozenSources)" Outputs="@(_TestFrozenOutputs)" |
| 103 | + Condition="$(Platform) == 'Win32' or $(Platform) == 'x64'"> |
| 104 | + <Message Text="Regenerate @(_TestFrozenOutputs->'%(Filename)%(Extension)', ' ')" Importance="high" /> |
| 105 | + <Exec Command="$(PythonExe) Programs\freeze_test_frozenmain.py Programs/test_frozenmain.h" |
| 106 | + WorkingDirectory="$(PySourcePath)" /> |
| 107 | + </Target> |
| 108 | + |
| 109 | + <Target Name="_RegenLicense" Inputs="@(_LicenseSources)" Outputs="@(_LicenseOutputs)"> |
| 110 | + <Message Text="Regenerate @(_LicenseOutputs->'%(Filename)%(Extension)', ' ')" Importance="high" /> |
| 111 | + <ItemGroup> |
| 112 | + <_Text Include="@(_LicenseFiles)"> |
| 113 | + <Content Condition="Exists(%(FullPath))">$([System.IO.File]::ReadAllText(%(FullPath)))</Content> |
| 114 | + </_Text> |
| 115 | + </ItemGroup> |
| 116 | + |
| 117 | + <WriteLinesToFile File="@(_LicenseOutputs)" Overwrite="true" Lines="@(_Text->'%(Content)')" /> |
| 118 | + </Target> |
| 119 | + |
| 120 | + <Target Name="PostBuildRegen" DependsOnTargets="_RegenTestFrozenmain;_RegenLicense"> |
| 121 | + <Message Text="Other generated files are up to date" Importance="high" /> |
| 122 | + </Target> |
84 | 123 | </Project>
|
0 commit comments