13
13
import os
14
14
import platform
15
15
16
- from build_swift .build_swift .constants import MULTIROOT_DATA_FILE_PATH
17
-
18
16
from . import cmake_product
19
17
from . import cmark
20
- from . import foundation
21
18
from . import libcxx
22
- from . import libdispatch
23
19
from . import libicu
24
- from . import llbuild
25
20
from . import llvm
26
- from . import product
27
21
from . import swift
28
- from . import swiftpm
29
- from . import swiftsyntax
30
- from . import xctest
31
- from .. import shell
22
+
32
23
33
24
class BackDeployConcurrency (cmake_product .CMakeProduct ):
34
25
@classmethod
@@ -65,18 +56,22 @@ def build(self, host_target):
65
56
self .cmake_options .define (
66
57
'TOOLCHAIN_DIR:PATH' ,
67
58
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' ))
70
62
71
63
self .cmake_options .define ('SWIFT_EMBED_BITCODE_SECTION:BOOL' , True )
72
64
self .cmake_options .define ('SWIFT_ENABLE_MACCATALYST:BOOL' , True )
73
65
self .cmake_options .define ('CMAKE_CROSSCOMPILING:BOOL' , True )
74
66
75
67
# 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 )
77
70
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 )
80
75
self .cmake_options .define ('SWIFT_BUILD_STDLIB:BOOL' , False )
81
76
self .cmake_options .define ('SWIFT_BUILD_DYNAMIC_STDLIB:BOOL' , False )
82
77
self .cmake_options .define ('SWIFT_BUILD_STATIC_STDLIB:BOOL' , False )
@@ -93,8 +88,9 @@ def build(self, host_target):
93
88
self .cmake_options .define ('SWIFT_INSTALL_COMPONENTS:STRING' , 'back-deployment' )
94
89
95
90
# 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' ]
98
94
if self .args .build_ios_device :
99
95
sdks_to_build .append ('IOS' )
100
96
if self .args .build_ios_simulator :
@@ -121,11 +117,16 @@ def build(self, host_target):
121
117
self .cmake_options .define ('CMAKE_INSTALL_PREFIX' , "" )
122
118
123
119
# 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' )
129
130
130
131
self .build_with_cmake (["back-deployment" ], build_variant , [])
131
132
0 commit comments