|
565 | 565 | </ItemGroup>
|
566 | 566 |
|
567 | 567 | <!-- Setup eventing file generation -->
|
568 |
| - <ItemGroup> |
569 |
| - <EventingGenerationScript Include="$(CoreClrProjectRoot)scripts/genRuntimeEventSources.py" /> |
570 |
| - <EventManifestFile Include="$(CoreClrProjectRoot)vm/ClrEtwAll.man" /> |
571 |
| - <EventingInclusionList Include="$(CoreClrProjectRoot)nativeaot/Runtime/eventpipe/gen-eventing-event-inc.lst" /> |
572 |
| - <EventingSourceFile Include="$(IntermediateOutputPath)NativeRuntimeEventSource.Generated.cs" Condition="'$(FeaturePerfTracing)' == 'true' "> |
573 |
| - <Link>src\System\Diagnostics\Eventing\NativeRuntimeEventSource.Generated.cs</Link> |
574 |
| - </EventingSourceFile> |
575 |
| - <Compile Include="@(EventingSourceFile)" /> |
| 568 | + <ItemGroup Condition="'$(FeaturePerfTracing)' == 'true'"> |
| 569 | + <AdditionalFiles Include="$(CoreClrProjectRoot)vm/ClrEtwAll.man" /> |
| 570 | + <AdditionalFiles Include="$(CoreClrProjectRoot)nativeaot/Runtime/eventpipe/gen-eventing-event-inc.lst" /> |
576 | 571 | </ItemGroup>
|
577 |
| - |
578 |
| - <Target Name="GenerateEventingFiles" |
579 |
| - Inputs="@(EventingGenerationScript);@(EventManifestFile);@(EventingInclusionList)" |
580 |
| - Outputs="@(EventingSourceFile)" |
581 |
| - DependsOnTargets="FindPython" |
582 |
| - BeforeTargets="BeforeCompile"> |
583 |
| - |
584 |
| - <Error Condition="'$(PYTHON)' == ''" Text="Unable to locate Python. NativeRuntimeEventSource.Generared.cs cannot be generated without Python installed on the machine. Either install Python in your path or point to it with the PYTHON environment variable." /> |
585 |
| - <PropertyGroup> |
586 |
| - <_PythonWarningParameter>-Wall</_PythonWarningParameter> |
587 |
| - <_PythonWarningParameter Condition="'$(MSBuildTreatWarningsAsErrors)' == 'true'">$(_PythonWarningParameter) -Werror</_PythonWarningParameter> |
588 |
| - <_EventingSourceFileDirectory>%(EventingSourceFile.RootDir)%(EventingSourceFile.Directory)</_EventingSourceFileDirectory> |
589 |
| - <_EventingSourceFileDirectory Condition="HasTrailingSlash('$(_EventingSourceFileDirectory)')">$(_EventingSourceFileDirectory.TrimEnd('\'))</_EventingSourceFileDirectory> |
590 |
| - </PropertyGroup> |
591 |
| - |
592 |
| - <Exec Command=""$(PYTHON)" -B $(_PythonWarningParameter) "@(EventingGenerationScript)" --man "@(EventManifestFile)" --intermediate "$(_EventingSourceFileDirectory)" --inc "@(EventingInclusionList)"" /> |
593 |
| - |
594 |
| - <ItemGroup> |
595 |
| - <FileWrites Include="@(EventingSourceFile)" /> |
596 |
| - </ItemGroup> |
597 |
| - </Target> |
598 | 572 | </Project>
|
0 commit comments