From 235fddf64ef3bf13526dc93a2d0c62734043869e Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 30 Aug 2023 22:22:30 -0700 Subject: [PATCH] WiX: package up DocC conditionally Add support to package up DocC in the windows distribution. This is the last large component that was missing. At this point, the toolchain distribution is generally speaking complete with: - Preprocessor (clang) - Assembler (IAS) - C/C++/Swift Compiler (clang/clang++/swiftc) - Linker (lld) - Binary Utilities (LLVM) - Debugger (LLDB) - REPL - Package Manager (SwiftPM) - Runtime Inspection Tools (swift-inspect) - LSP (sourcekit-lsp) - Code Formatter (swift-format) - Documentation Tools (DocC) - Additional IDE integration Tools (lldb-vscode) - Redistributables (MSMs) - Runtime (host-only) - SDKs (AMD64, ARM64, X86) --- platforms/Windows/bld/bld.wxs | 6 ++---- platforms/Windows/cli/cli.wixproj | 18 ++++++++++++++++++ platforms/Windows/cli/cli.wxs | 14 ++++++++++++++ platforms/Windows/shared/shared.wxs | 5 +++++ 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/platforms/Windows/bld/bld.wxs b/platforms/Windows/bld/bld.wxs index da35ff3f..af927b2b 100644 --- a/platforms/Windows/bld/bld.wxs +++ b/platforms/Windows/bld/bld.wxs @@ -29,10 +29,8 @@ - - - - + + diff --git a/platforms/Windows/cli/cli.wixproj b/platforms/Windows/cli/cli.wixproj index 80f91146..723bdc06 100644 --- a/platforms/Windows/cli/cli.wixproj +++ b/platforms/Windows/cli/cli.wixproj @@ -4,8 +4,26 @@ $(DefineConstants); DEVTOOLS_ROOT=$(DEVTOOLS_ROOT); TOOLCHAIN_ROOT=$(TOOLCHAIN_ROOT); + SWIFT_DOCC_BUILD=$(SWIFT_DOCC_BUILD); + INCLUDE_SWIFT_DOCC=$(INCLUDE_SWIFT_DOCC); SWIFT_FORMAT_BUILD=$(SWIFT_FORMAT_BUILD); INCLUDE_SWIFT_FORMAT=$(INCLUDE_SWIFT_FORMAT); + SWIFT_DOCC_RENDER_ARTIFACT_ROOT_DIST=$(SWIFT_DOCC_RENDER_ARTIFACT_ROOT)\dist; + + + + + + + + DocCRender + _usr_share_docc_render + var.SWIFT_DOCC_RENDER_ARTIFACT_ROOT_DIST + true + true + true + + diff --git a/platforms/Windows/cli/cli.wxs b/platforms/Windows/cli/cli.wxs index 0c776ad6..89e00715 100644 --- a/platforms/Windows/cli/cli.wxs +++ b/platforms/Windows/cli/cli.wxs @@ -231,6 +231,14 @@ + + + + + + + + @@ -252,6 +260,12 @@ + + + + + + diff --git a/platforms/Windows/shared/shared.wxs b/platforms/Windows/shared/shared.wxs index cf21efca..1c3dcc4f 100644 --- a/platforms/Windows/shared/shared.wxs +++ b/platforms/Windows/shared/shared.wxs @@ -46,6 +46,11 @@ + + + + +