1313import os
1414import platform
1515
16- from build_swift .build_swift .constants import MULTIROOT_DATA_FILE_PATH
17-
1816from . import cmake_product
1917from . import cmark
20- from . import foundation
2118from . import libcxx
22- from . import libdispatch
2319from . import libicu
24- from . import llbuild
2520from . import llvm
26- from . import product
2721from . import swift
28- from . import swiftpm
29- from . import swiftsyntax
30- from . import xctest
31- from .. import shell
22+
3223
3324class BackDeployConcurrency (cmake_product .CMakeProduct ):
3425 @classmethod
@@ -65,18 +56,22 @@ def build(self, host_target):
6556 self .cmake_options .define (
6657 'TOOLCHAIN_DIR:PATH' ,
6758 self .install_toolchain_path (host_target ))
68- self .cmake_options .define ('SWIFT_NATIVE_SWIFT_TOOLS_PATH:PATH' ,
69- os .path .join (self .install_toolchain_path (host_target ), 'bin' ))
59+ self .cmake_options .define (
60+ 'SWIFT_NATIVE_SWIFT_TOOLS_PATH:PATH' ,
61+ os .path .join (self .install_toolchain_path (host_target ), 'bin' ))
7062
7163 self .cmake_options .define ('SWIFT_EMBED_BITCODE_SECTION:BOOL' , True )
7264 self .cmake_options .define ('SWIFT_ENABLE_MACCATALYST:BOOL' , True )
7365 self .cmake_options .define ('CMAKE_CROSSCOMPILING:BOOL' , True )
7466
7567 # Only build the back-deployment concurrency library, nothing else
76- self .cmake_options .define ('BUILD_SWIFT_CONCURRENCY_BACK_DEPLOYMENT_LIBRARIES:BOOL' , True )
68+ self .cmake_options .define (
69+ 'BUILD_SWIFT_CONCURRENCY_BACK_DEPLOYMENT_LIBRARIES:BOOL' , True )
7770 self .cmake_options .define ('SWIFT_INCLUDE_TOOLS:BOOL' , False )
78- self .cmake_options .define ('SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT:BOOL' , False )
79- self .cmake_options .define ('SWIFT_BUILD_TEST_SUPPORT_MODULES:BOOL' , False )
71+ self .cmake_options .define (
72+ 'SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT:BOOL' , False )
73+ self .cmake_options .define (
74+ 'SWIFT_BUILD_TEST_SUPPORT_MODULES:BOOL' , False )
8075 self .cmake_options .define ('SWIFT_BUILD_STDLIB:BOOL' , False )
8176 self .cmake_options .define ('SWIFT_BUILD_DYNAMIC_STDLIB:BOOL' , False )
8277 self .cmake_options .define ('SWIFT_BUILD_STATIC_STDLIB:BOOL' , False )
@@ -93,8 +88,9 @@ def build(self, host_target):
9388 self .cmake_options .define ('SWIFT_INSTALL_COMPONENTS:STRING' , 'back-deployment' )
9489
9590 # Figure out the SDKs to build.
96- # NOTE: This normally happens down in build-script-impl, so we have to re-implement the logic here.
97- sdks_to_build = ['OSX' ]
91+ # NOTE: This normally happens down in build-script-impl, so we have
92+ # to re-implement the logic here.
93+ sdks_to_build = ['OSX' ]
9894 if self .args .build_ios_device :
9995 sdks_to_build .append ('IOS' )
10096 if self .args .build_ios_simulator :
@@ -121,11 +117,16 @@ def build(self, host_target):
121117 self .cmake_options .define ('CMAKE_INSTALL_PREFIX' , "" )
122118
123119 # Configure back-deployment targets
124- self .cmake_options .define ('SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX:STRING' , '10.15' )
125- self .cmake_options .define ('SWIFT_DARWIN_DEPLOYMENT_VERSION_IOS:STRING' , '13.0' )
126- self .cmake_options .define ('SWIFT_DARWIN_DEPLOYMENT_VERSION_MACCATALYST:STRING' , '13.0' )
127- self .cmake_options .define ('SWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS:STRING' , '13.0' )
128- self .cmake_options .define ('SWIFT_DARWIN_DEPLOYMENT_VERSION_WATCHOS:STRING' , '6.0' )
120+ self .cmake_options .define (
121+ 'SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX:STRING' , '10.15' )
122+ self .cmake_options .define (
123+ 'SWIFT_DARWIN_DEPLOYMENT_VERSION_IOS:STRING' , '13.0' )
124+ self .cmake_options .define (
125+ 'SWIFT_DARWIN_DEPLOYMENT_VERSION_MACCATALYST:STRING' , '13.0' )
126+ self .cmake_options .define (
127+ 'SWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS:STRING' , '13.0' )
128+ self .cmake_options .define (
129+ 'SWIFT_DARWIN_DEPLOYMENT_VERSION_WATCHOS:STRING' , '6.0' )
129130
130131 self .build_with_cmake (["back-deployment" ], build_variant , [])
131132
0 commit comments