Skip to content

Commit 51a1a94

Browse files
committed
5.2: repair the installer generation
1 parent f51cff1 commit 51a1a94

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

.ci/templates/toolchain-msi.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,19 @@ jobs:
7171
arguments: -no_logo -arch=x64 -host_arch=x64
7272
modifyEnvironment: true
7373

74-
- task: MSBuild@1
75-
displayName: toolchain.msi
76-
inputs:
77-
solution: $(Build.SourcesDirectory)/swift-build/wix/windows-toolchain.wixproj
78-
msbuildArguments: /p:RunWixToolsOutOfProc=true -p:OutputPath=$(Build.BinariesDirectory)\toolchain-msi\ -p:IntermediateOutputPath=$(Build.BinariesDirectory)\toolchain-msi\ -p:TOOLCHAIN_ROOT=$(toolchain.directory)
74+
- ${{ if eq(parameters.VERSION, '5.2') }}:
75+
- task: MSBuild@1
76+
displayName: toolchain.msi
77+
inputs:
78+
solution: $(Build.SourcesDirectory)/swift-build/wix/windows-toolchain.wixproj
79+
msbuildArguments: /p:RunWixToolsOutOfProc=true -p:OutputPath=$(Build.BinariesDirectory)\toolchain-msi\ -p:IntermediateOutputPath=$(Build.BinariesDirectory)\toolchain-msi\ -p:TOOLCHAIN_ROOT=$(toolchain.directory) -p:INCLUDE_LLDB_PYTHON_SCRIPTS=false
80+
81+
- ${{ if ne(parameters.VERSION, '5.2') }}:
82+
- task: MSBuild@1
83+
displayName: toolchain.msi
84+
inputs:
85+
solution: $(Build.SourcesDirectory)/swift-build/wix/windows-toolchain.wixproj
86+
msbuildArguments: /p:RunWixToolsOutOfProc=true -p:OutputPath=$(Build.BinariesDirectory)\toolchain-msi\ -p:IntermediateOutputPath=$(Build.BinariesDirectory)\toolchain-msi\ -p:TOOLCHAIN_ROOT=$(toolchain.directory) -p:INCLUDE_LLDB_PYTHON_SCRIPTS=true
7987

8088
- publish: $(Build.BinariesDirectory)/toolchain-msi/toolchain.msi
8189
artifact: ${{ parameters.platform }}-toolchain-${{ parameters.proc }}.msi

.ci/vs2019-swift-5.2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ stages:
301301
os: Windows
302302
proc: amd64
303303

304+
VERSION: 5.2
305+
304306
- stage: package_windows_sdk
305307
dependsOn: windows_sdk
306308
displayName: package SDK

wix/windows-toolchain.wixproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
<Import Project="$(WixTargetsPath)" />
2626

2727
<PropertyGroup>
28-
<DefineConstants>TOOLCHAIN_ROOT=$(TOOLCHAIN_ROOT);TOOLCHAIN_ROOT_USR_LIB_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\clang;$(INCLUDE_DEBUG_INFO)</DefineConstants>
28+
<INCLUDE_LLDB_PYTHON_SCRIPTS Condition=" '$(INCLUDE_LLDB_PYTHON_SCRIPTS)' == '' ">true</INCLUDE_LLDB_PYTHON_SCRIPTS>
29+
</PropertyGroup>
30+
31+
<PropertyGroup>
32+
<DefineConstants>TOOLCHAIN_ROOT=$(TOOLCHAIN_ROOT);TOOLCHAIN_ROOT_USR_LIB_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\clang;$(INCLUDE_DEBUG_INFO);INCLUDE_LLDB_PYTHON_SCRIPTS=$(INCLUDE_LLDB_PYTHON_SCRIPTS)</DefineConstants>
2933
<HarvestDirectoryAutogenerateGuids>false</HarvestDirectoryAutogenerateGuids>
3034
<HarvestDirectoryGenerateGuidsNow>true</HarvestDirectoryGenerateGuidsNow>
3135
<HarvestDirectoryNoLogo>true</HarvestDirectoryNoLogo>

wix/windows-toolchain.wxs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@
235235
</Component>
236236
</DirectoryRef>
237237

238+
<?if $(var.INCLUDE_LLDB_PYTHON_SCRIPTS) = true ?>
238239
<DirectoryRef Id="USR_LIB_SITE_PACKAGES_LLDB">
239240
<Component Id="LLDB_PYTHON_SCRIPTS" Guid="9205b430-21b1-4b50-ac91-cd41f3a0e050">
240241
<File Id="LLDB___INIT___PY" Source="$(var.TOOLCHAIN_ROOT)\usr\lib\site-packages\lldb\__init__.py" Checksum="yes" />
@@ -270,6 +271,7 @@
270271
<File Id="LLDB_UTILS_SYMBOLICATION_PY" Source="$(var.TOOLCHAIN_ROOT)\usr\lib\site-packages\lldb\utils\symbolication.py" Checksum="yes" />
271272
</Component>
272273
</DirectoryRef>
274+
<?endif?>
273275

274276
<!-- TODO: install the block headers from Swift -->
275277
<!--
@@ -382,10 +384,12 @@
382384
<!--
383385
<ComponentGroupRef Id="SWIFT_SHIMS" />
384386
-->
387+
<?if $(var.INCLUDE_LLDB_PYTHON_SCRIPTS) = true ?>
385388
<ComponentRef Id="LLDB_PYTHON_SCRIPTS" />
386389
<ComponentRef Id="LLDB_PYTHON_SCRIPTS_FORMATTERS" />
387390
<ComponentRef Id="LLDB_PYTHON_SCRIPTS_FORMATTERS_CPP" />
388391
<ComponentRef Id="LLDB_PYTHON_SCRIPTS_UTILS" />
392+
<?endif?>
389393

390394
<ComponentRef Id="ENV_VARS" />
391395
</Feature>

0 commit comments

Comments
 (0)