3
3
"""
4
4
This source file is part of the Swift.org open source project
5
5
6
- Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
6
+ Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
7
7
Licensed under Apache License v2.0 with Runtime Library Exception
8
8
9
9
See http://swift.org/LICENSE.txt for license information
@@ -171,7 +171,6 @@ def parse_global_args(args):
171
171
args .yams_source_dir = os .path .join (args .project_root , ".." , "yams" )
172
172
args .swift_argument_parser_source_dir = os .path .join (args .project_root , ".." , "swift-argument-parser" )
173
173
args .swift_driver_source_dir = os .path .join (args .project_root , ".." , "swift-driver" )
174
- args .swift_crypto_source_dir = os .path .join (args .project_root , ".." , "swift-crypto" )
175
174
args .source_root = os .path .join (args .project_root , "Sources" )
176
175
177
176
if platform .system () == 'Darwin' :
@@ -308,7 +307,6 @@ def build(args):
308
307
build_yams (args )
309
308
build_swift_argument_parser (args )
310
309
build_swift_driver (args )
311
- build_swift_crypto (args )
312
310
313
311
build_swiftpm_with_cmake (args )
314
312
build_swiftpm_with_swiftpm (args ,integrated_swift_driver = False )
@@ -561,17 +559,6 @@ def build_swift_driver(args):
561
559
cmake_flags .append ("-DCMAKE_OSX_DEPLOYMENT_TARGET=%s" % g_macos_deployment_target )
562
560
563
561
build_with_cmake (args , cmake_flags , args .swift_driver_source_dir , args .swift_driver_build_dir )
564
-
565
- def build_swift_crypto (args ):
566
- note ("Building SwiftCrypto" )
567
- args .swift_crypto_build_dir = os .path .join (args .target_dir , "swift-crypto" )
568
-
569
- cmake_flags = []
570
- if platform .system () == 'Darwin' :
571
- cmake_flags .append ("-DCMAKE_C_FLAGS=-target %s%s" % (get_build_target (args ), g_macos_deployment_target ))
572
- cmake_flags .append ("-DCMAKE_OSX_DEPLOYMENT_TARGET=%s" % g_macos_deployment_target )
573
-
574
- build_with_cmake (args , cmake_flags , args .swift_crypto_source_dir , args .swift_crypto_build_dir )
575
562
576
563
def add_rpath_for_cmake_build (args , rpath ):
577
564
"Adds the given rpath to the CMake-built swift-build"
@@ -591,7 +578,6 @@ def build_swiftpm_with_cmake(args):
591
578
"-DYams_DIR=" + os .path .join (args .yams_build_dir , "cmake/modules" ),
592
579
"-DArgumentParser_DIR=" + os .path .join (args .swift_argument_parser_build_dir , "cmake/modules" ),
593
580
"-DSwiftDriver_DIR=" + os .path .join (args .swift_driver_build_dir , "cmake/modules" ),
594
- "-DSwiftCrypto_DIR=" + os .path .join (args .swift_crypto_build_dir , "cmake/modules" ),
595
581
"-DFIND_PM_DEPS:BOOL=YES" ,
596
582
]
597
583
else :
@@ -612,7 +598,6 @@ def build_swiftpm_with_cmake(args):
612
598
add_rpath_for_cmake_build (args , os .path .join (args .yams_build_dir , "lib" ))
613
599
add_rpath_for_cmake_build (args , os .path .join (args .swift_argument_parser_build_dir , "lib" ))
614
600
add_rpath_for_cmake_build (args , os .path .join (args .swift_driver_build_dir , "lib" ))
615
- add_rpath_for_cmake_build (args , os .path .join (args .swift_crypto_build_dir , "lib" ))
616
601
617
602
def build_swiftpm_with_swiftpm (args , integrated_swift_driver ):
618
603
"""Builds SwiftPM using the version of SwiftPM built with CMake."""
@@ -709,7 +694,6 @@ def get_swiftpm_env_cmd(args):
709
694
os .path .join (args .yams_build_dir , "lib" ),
710
695
os .path .join (args .swift_argument_parser_build_dir , "lib" ),
711
696
os .path .join (args .swift_driver_build_dir , "lib" ),
712
- os .path .join (args .swift_crypto_build_dir , "lib" ),
713
697
] + args .target_info ["paths" ]["runtimeLibraryPaths" ])
714
698
715
699
if platform .system () == 'Darwin' :
0 commit comments