Skip to content

Commit 16e92aa

Browse files
authored
Revert "Add swift-crypto dependency (#3202)"
This reverts commit 60d6da6.
1 parent 543f9b0 commit 16e92aa

File tree

6 files changed

+5
-51
lines changed

6 files changed

+5
-51
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This source file is part of the Swift.org open source project
22
#
3-
# Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
3+
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
44
# Licensed under Apache License v2.0 with Runtime Library Exception
55
#
66
# See http://swift.org/LICENSE.txt for license information
@@ -47,7 +47,6 @@ if(FIND_PM_DEPS)
4747
endif()
4848

4949
find_package(ArgumentParser CONFIG REQUIRED)
50-
find_package(SwiftCrypto CONFIG REQUIRED)
5150
find_package(SwiftDriver CONFIG REQUIRED)
5251
endif()
5352

Documentation/Contributing.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,6 @@ For example, if the latest tag is 0.3.1:
152152
$> git clone https://github.com/apple/swift-argument-parser --branch 0.3.1
153153
```
154154

155-
5. Clone [swift-crypto](https://github.com/apple/swift-crypto) beside the SwiftPM directory and check out tag with the [latest version](https://github.com/apple/swift-crypto/tags).
156-
157-
For example, if the latest tag is 1.1.3:
158-
```bash
159-
$> git clone https://github.com/apple/swift-crypto --branch 1.1.3
160-
```
161-
162155
#### Building
163156

164157
```bash

Package.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
This source file is part of the Swift.org open source project
55

6-
Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
6+
Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
77
Licensed under Apache License v2.0 with Runtime Library Exception
88

99
See http://swift.org/LICENSE.txt for license information
@@ -20,7 +20,7 @@ let macOSPlatform: SupportedPlatform
2020
if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTPM_MACOS_DEPLOYMENT_TARGET"] {
2121
macOSPlatform = .macOS(deploymentTarget)
2222
} else {
23-
macOSPlatform = .macOS(.v10_15)
23+
macOSPlatform = .macOS(.v10_10)
2424
}
2525

2626
let package = Package(
@@ -156,7 +156,7 @@ let package = Package(
156156
.target(
157157
/** Data structures and support for package collections */
158158
name: "PackageCollections",
159-
dependencies: ["SwiftToolsSupport-auto", "Basics", "PackageModel", "SourceControl", "PackageCollectionsModel", "Crypto"]),
159+
dependencies: ["SwiftToolsSupport-auto", "Basics", "PackageModel", "SourceControl", "PackageCollectionsModel"]),
160160

161161
// MARK: Package Manager Functionality
162162

@@ -323,13 +323,11 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
323323
// dependency version changes here with those projects.
324324
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "0.3.1")),
325325
.package(url: "https://github.com/apple/swift-driver.git", .branch(relatedDependenciesBranch)),
326-
.package(url: "https://github.com/apple/swift-crypto.git", .branch(relatedDependenciesBranch)),
327326
]
328327
} else {
329328
package.dependencies += [
330329
.package(path: "../swift-tools-support-core"),
331330
.package(path: "../swift-argument-parser"),
332331
.package(path: "../swift-driver"),
333-
.package(path: "../swift-crypto"),
334332
]
335333
}

Sources/PackageCollections/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,11 @@ target_link_libraries(PackageCollections PUBLIC
3232
TSCBasic
3333
TSCUtility
3434
Basics
35-
Crypto
36-
CCryptoBoringSSL
3735
PackageModel
3836
SourceControl)
3937
# NOTE(compnerd) workaround for CMake not setting up include flags yet
4038
set_target_properties(PackageCollections PROPERTIES
4139
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
42-
target_link_options(PackageCollections PRIVATE
43-
"$<$<PLATFORM_ID:Darwin>:SHELL:-Xlinker -framework -Xlinker Security>")
4440

4541
if(USE_CMAKE_INSTALL)
4642
install(TARGETS PackageCollections

Sources/PackageCollections/Signing/PackageCollectionSignature.swift

Lines changed: 0 additions & 16 deletions
This file was deleted.

Utilities/bootstrap

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
This source file is part of the Swift.org open source project
55
6-
Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
6+
Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
77
Licensed under Apache License v2.0 with Runtime Library Exception
88
99
See http://swift.org/LICENSE.txt for license information
@@ -171,7 +171,6 @@ def parse_global_args(args):
171171
args.yams_source_dir = os.path.join(args.project_root, "..", "yams")
172172
args.swift_argument_parser_source_dir = os.path.join(args.project_root, "..", "swift-argument-parser")
173173
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")
175174
args.source_root = os.path.join(args.project_root, "Sources")
176175

177176
if platform.system() == 'Darwin':
@@ -308,7 +307,6 @@ def build(args):
308307
build_yams(args)
309308
build_swift_argument_parser(args)
310309
build_swift_driver(args)
311-
build_swift_crypto(args)
312310

313311
build_swiftpm_with_cmake(args)
314312
build_swiftpm_with_swiftpm(args,integrated_swift_driver=False)
@@ -561,17 +559,6 @@ def build_swift_driver(args):
561559
cmake_flags.append("-DCMAKE_OSX_DEPLOYMENT_TARGET=%s" % g_macos_deployment_target)
562560

563561
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)
575562

576563
def add_rpath_for_cmake_build(args, rpath):
577564
"Adds the given rpath to the CMake-built swift-build"
@@ -591,7 +578,6 @@ def build_swiftpm_with_cmake(args):
591578
"-DYams_DIR=" + os.path.join(args.yams_build_dir, "cmake/modules"),
592579
"-DArgumentParser_DIR=" + os.path.join(args.swift_argument_parser_build_dir, "cmake/modules"),
593580
"-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"),
595581
"-DFIND_PM_DEPS:BOOL=YES",
596582
]
597583
else:
@@ -612,7 +598,6 @@ def build_swiftpm_with_cmake(args):
612598
add_rpath_for_cmake_build(args, os.path.join(args.yams_build_dir, "lib"))
613599
add_rpath_for_cmake_build(args, os.path.join(args.swift_argument_parser_build_dir, "lib"))
614600
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"))
616601

617602
def build_swiftpm_with_swiftpm(args, integrated_swift_driver):
618603
"""Builds SwiftPM using the version of SwiftPM built with CMake."""
@@ -709,7 +694,6 @@ def get_swiftpm_env_cmd(args):
709694
os.path.join(args.yams_build_dir, "lib"),
710695
os.path.join(args.swift_argument_parser_build_dir, "lib"),
711696
os.path.join(args.swift_driver_build_dir, "lib"),
712-
os.path.join(args.swift_crypto_build_dir, "lib"),
713697
] + args.target_info["paths"]["runtimeLibraryPaths"])
714698

715699
if platform.system() == 'Darwin':

0 commit comments

Comments
 (0)