17db96d56Sopenharmony_ci<?xml version="1.0" encoding="utf-8"?> 27db96d56Sopenharmony_ci<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 37db96d56Sopenharmony_ci 47db96d56Sopenharmony_ci <Target Name="ProcessInstallFiles" 57db96d56Sopenharmony_ci AfterTargets="PrepareForBuild" 67db96d56Sopenharmony_ci DependsOnTargets="FindPythonForBuild" 77db96d56Sopenharmony_ci Condition="@(InstallFiles) != ''"> 87db96d56Sopenharmony_ci <PropertyGroup> 97db96d56Sopenharmony_ci <_FileListTarget>$(IntermediateOutputPath)$(MSBuildProjectName).g.csv</_FileListTarget> 107db96d56Sopenharmony_ci <_InstallFilesTarget>$(IntermediateOutputPath)$(MSBuildProjectName).g.wxs</_InstallFilesTarget> 117db96d56Sopenharmony_ci </PropertyGroup> 127db96d56Sopenharmony_ci 137db96d56Sopenharmony_ci <ItemGroup> 147db96d56Sopenharmony_ci <InstallFiles> 157db96d56Sopenharmony_ci <_Source>%(Source)$([msbuild]::MakeRelative(%(SourceBase), %(FullPath)))</_Source> 167db96d56Sopenharmony_ci <_Target>%(Target_)$([msbuild]::MakeRelative(%(TargetBase), %(FullPath)))</_Target> 177db96d56Sopenharmony_ci </InstallFiles> 187db96d56Sopenharmony_ci 197db96d56Sopenharmony_ci <_CatalogFiles Include="@(InstallFiles)" Condition="%(InstallFiles.IncludeInCat) and ''!=$([System.IO.File]::ReadAllText(%(InstallFiles.FullPath)))" /> 207db96d56Sopenharmony_ci </ItemGroup> 217db96d56Sopenharmony_ci 227db96d56Sopenharmony_ci <WriteLinesToFile File="$(_FileListTarget)" Lines="@(InstallFiles->'"%(_Source)","%(_Target)","%(Group)","%(DiskId)","%(Condition)"')" Overwrite="true" /> 237db96d56Sopenharmony_ci <Exec Command='$(PythonForBuild) csv_to_wxs.py "$(_FileListTarget)" "$(_InstallFilesTarget)"' 247db96d56Sopenharmony_ci WorkingDirectory="$(MSBuildThisFileDirectory)" /> 257db96d56Sopenharmony_ci 267db96d56Sopenharmony_ci <ItemGroup> 277db96d56Sopenharmony_ci <FileWrites Include="$(_FileListTarget);$(_InstallFilesTarget)" /> 287db96d56Sopenharmony_ci <Compile Include="$(_InstallFilesTarget)" /> 297db96d56Sopenharmony_ci </ItemGroup> 307db96d56Sopenharmony_ci </Target> 317db96d56Sopenharmony_ci 327db96d56Sopenharmony_ci <Target Name="GenerateCatalog" AfterTargets="ProcessInstallFiles" Condition="'@(_CatalogFiles)' != ''"> 337db96d56Sopenharmony_ci <PropertyGroup> 347db96d56Sopenharmony_ci <_CatFileSourceTarget>$(IntermediateOutputPath)$(MSBuildProjectName).cdf</_CatFileSourceTarget> 357db96d56Sopenharmony_ci <_CatFileTarget>$(IntermediateOutputPath)python_$(MSBuildProjectName).cat</_CatFileTarget> 367db96d56Sopenharmony_ci <_CatFile>[CatalogHeader] 377db96d56Sopenharmony_ciName=$([System.IO.Path]::GetFileName($(_CatFileTarget))) 387db96d56Sopenharmony_ciResultDir=$([System.IO.Path]::GetDirectoryName($(_CatFileTarget))) 397db96d56Sopenharmony_ciPublicVersion=1 407db96d56Sopenharmony_ciCatalogVersion=2 417db96d56Sopenharmony_ciHashAlgorithms=SHA256 427db96d56Sopenharmony_ciPageHashes=false 437db96d56Sopenharmony_ciEncodingType= 447db96d56Sopenharmony_ci 457db96d56Sopenharmony_ci[CatalogFiles] 467db96d56Sopenharmony_ci@(_CatalogFiles->'<HASH>%(Filename)%(Extension)=%(FullPath)',' 477db96d56Sopenharmony_ci') 487db96d56Sopenharmony_ci</_CatFile> 497db96d56Sopenharmony_ci </PropertyGroup> 507db96d56Sopenharmony_ci 517db96d56Sopenharmony_ci <WriteLinesToFile File="$(_CatFileSourceTarget)" Lines="$(_CatFile)" Overwrite="true" /> 527db96d56Sopenharmony_ci <Exec Command='$(_MakeCatCommand) "$(_CatFileSourceTarget)"' WorkingDirectory="$(MSBuildThisFileDirectory)" /> 537db96d56Sopenharmony_ci <Exec Command='$(_SignCommand) "$(_CatFileTarget)" || $(_SignCommand) "$(_CatFileTarget)" || $(_SignCommand) "$(_CatFileTarget)"' WorkingDirectory="$(MSBuildThisFileDirectory)" 547db96d56Sopenharmony_ci Condition="Exists($(_CatFileTarget)) and '$(_SignCommand)' != ''" /> 557db96d56Sopenharmony_ci 567db96d56Sopenharmony_ci <ItemGroup> 577db96d56Sopenharmony_ci <FileWrites Include="$(_CatFileSourceTarget);$(_CatFileTarget)" /> 587db96d56Sopenharmony_ci </ItemGroup> 597db96d56Sopenharmony_ci </Target> 607db96d56Sopenharmony_ci 617db96d56Sopenharmony_ci <Target Name="_TransformWxlTemplates" AfterTargets="PrepareForBuild" Inputs="@(WxlTemplate);$(PySourcePath)include\patchlevel.h" Outputs="$(IntermediateOutputPath)%(Filename).wxl"> 627db96d56Sopenharmony_ci <PropertyGroup Condition="'@(WxlTemplate)' != ''"> 637db96d56Sopenharmony_ci <_Content>$([System.IO.File]::ReadAllText(%(WxlTemplate.FullPath)).Replace(`{{ShortVersion}}`, `$(MajorVersionNumber).$(MinorVersionNumber)$(PyTestExt)`).Replace(`{{LongVersion}}`, `$(PythonVersion)$(PyTestExt)`).Replace(`{{Bitness}}`, `$(Bitness)`))</_Content> 647db96d56Sopenharmony_ci <_ExistingContent Condition="Exists('$(IntermediateOutputPath)%(WxlTemplate.Filename).wxl')">$([System.IO.File]::ReadAllText($(IntermediateOutputPath)%(WxlTemplate.Filename).wxl))</_ExistingContent> 657db96d56Sopenharmony_ci </PropertyGroup> 667db96d56Sopenharmony_ci 677db96d56Sopenharmony_ci <WriteLinesToFile File="$(IntermediateOutputPath)%(WxlTemplate.Filename).wxl" 687db96d56Sopenharmony_ci Lines="$(_Content)" 697db96d56Sopenharmony_ci Overwrite="true" 707db96d56Sopenharmony_ci Condition="$(_Content) != $(_ExistingContent)" /> 717db96d56Sopenharmony_ci 727db96d56Sopenharmony_ci <ItemGroup Condition="'@(WxlTemplate)' != ''"> 737db96d56Sopenharmony_ci <EmbeddedResource Include="$(IntermediateOutputPath)%(WxlTemplate.Filename).wxl" /> 747db96d56Sopenharmony_ci <FileWrites Include="$(IntermediateOutputPath)%(WxlTemplate.Filename).wxl" /> 757db96d56Sopenharmony_ci </ItemGroup> 767db96d56Sopenharmony_ci </Target> 777db96d56Sopenharmony_ci 787db96d56Sopenharmony_ci <Import Project="$(WixTargetsPath)" /> 797db96d56Sopenharmony_ci 807db96d56Sopenharmony_ci <Target Name="SignCabs"> 817db96d56Sopenharmony_ci <Error Text="Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition="'$(_SignCommand)' == ''" /> 827db96d56Sopenharmony_ci <Exec Command="$(_SignCommand) @(SignCabs->'"%(FullPath)"',' ') || $(_SignCommand) @(SignCabs->'"%(FullPath)"',' ') || $(_SignCommand) @(SignCabs->'"%(FullPath)"',' ')" ContinueOnError="false" /> 837db96d56Sopenharmony_ci </Target> 847db96d56Sopenharmony_ci <Target Name="SignMsi"> 857db96d56Sopenharmony_ci <Error Text="Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition="'$(_SignCommand)' == ''" /> 867db96d56Sopenharmony_ci <Exec Command="$(_SignCommand) @(SignMsi->'"%(FullPath)"',' ') || $(_SignCommand) @(SignMsi->'"%(FullPath)"',' ') || $(_SignCommand) @(SignMsi->'"%(FullPath)"',' ')" ContinueOnError="false" /> 877db96d56Sopenharmony_ci </Target> 887db96d56Sopenharmony_ci <Target Name="SignBundleEngine"> 897db96d56Sopenharmony_ci <Error Text="Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition="'$(_SignCommand)' == ''" /> 907db96d56Sopenharmony_ci <Exec Command="$(_SignCommand) @(SignBundleEngine->'"%(FullPath)"',' ') || $(_SignCommand) @(SignBundleEngine->'"%(FullPath)"',' ') || $(_SignCommand) @(SignBundleEngine->'"%(FullPath)"',' ')" ContinueOnError="false" /> 917db96d56Sopenharmony_ci </Target> 927db96d56Sopenharmony_ci <Target Name="SignBundle"> 937db96d56Sopenharmony_ci <Error Text="Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition="'$(_SignCommand)' == ''" /> 947db96d56Sopenharmony_ci <Exec Command="$(_SignCommand) @(SignBundle->'"%(FullPath)"',' ') || $(_SignCommand) @(SignBundle->'"%(FullPath)"',' ') || $(_SignCommand) @(SignBundle->'"%(FullPath)"',' ')" ContinueOnError="false" /> 957db96d56Sopenharmony_ci </Target> 967db96d56Sopenharmony_ci</Project>