Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.0
4.2.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/bazel-*
/Examples/bazel-*
/.vscode
.build
8 changes: 4 additions & 4 deletions Examples/BazelXCBBuildService/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Examples/BazelXCBBuildService/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ let package = Package(
.executable(name: "BazelXCBBuildService", targets: ["BazelXCBBuildService"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.17.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.2"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.33.0"),
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.9.0"),
// XCBBuildServiceProxy lives up two levels from here
.package(path: "../../"),
Expand Down
12 changes: 6 additions & 6 deletions Examples/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "build_bazel_apple_support",
sha256 = "36d60bce680446ab534b141c47f2aef6b9c598267ef3450b7d74b9d81e1fd6bd",
url = "https://github.com/bazelbuild/apple_support/releases/download/0.9.0/apple_support.0.9.0.tar.gz",
sha256 = "76df040ade90836ff5543888d64616e7ba6c3a7b33b916aa3a4b68f342d1b447",
url = "https://github.com/bazelbuild/apple_support/releases/download/0.11.0/apple_support.0.11.0.tar.gz",
)

http_archive(
name = "build_bazel_rules_apple",
sha256 = "55f4dc1c9bf21bb87442665f4618cff1f1343537a2bd89252078b987dcd9c382",
url = "https://github.com/bazelbuild/rules_apple/releases/download/0.20.0/rules_apple.0.20.0.tar.gz",
sha256 = "0052d452af7742c8f3a4e0929763388a66403de363775db7e90adecb2ba4944b",
url = "https://github.com/bazelbuild/rules_apple/releases/download/0.31.3/rules_apple.0.31.3.tar.gz",
)

http_archive(
name = "build_bazel_rules_swift",
sha256 = "d2f38c33dc82cf3160c59342203d31a030e53ebe8f4c7365add7a549223f9c62",
url = "https://github.com/bazelbuild/rules_swift/releases/download/0.15.0/rules_swift.0.15.0.tar.gz",
sha256 = "653e8756001616500b110fd156694de7899278bb7480aba22b2f156438a1d810",
url = "https://github.com/bazelbuild/rules_swift/releases/download/0.22.0/rules_swift.0.22.0.tar.gz",
)

load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies")
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
dependencies: [
// Make sure to update the versions used in the `repositories.bzl` file if you change them here
.package(url: "https://github.com/apple/swift-log", .exact("1.4.2")),
.package(url: "https://github.com/apple/swift-nio", .exact("2.30.0")),
.package(url: "https://github.com/apple/swift-nio", .exact("2.33.0")),
],
targets: [
.target(
Expand Down
35 changes: 35 additions & 0 deletions external/com_github_apple_swift_nio.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,40 @@ swift_library(
":CNIODarwin",
":CNIOLinux",
":NIOConcurrencyHelpers",
":NIOCore",
":NIOEmbedded",
":NIOPosix",
],
)

swift_library(
name = "NIOEmbedded",
srcs = glob(["Sources/NIOEmbedded/**/*.swift"]),
deps = [
":_NIODataStructures",
":NIOCore",
],
)

swift_library(
name = "_NIODataStructures",
srcs = glob(["Sources/_NIODataStructures/**/*.swift"]),
deps = [],
)

swift_library(
name = "NIOPosix",
srcs = glob(["Sources/NIOPosix/**/*.swift"]),
deps = [
":NIOCore",
],
)

swift_library(
name = "NIOCore",
srcs = glob(["Sources/NIOCore/**/*.swift"]),
deps = [
":NIOConcurrencyHelpers",
],
)

Expand Down Expand Up @@ -44,6 +78,7 @@ objc_library(
"Sources/CNIODarwin/include/**/*.h",
]),
includes = ["Sources/CNIODarwin/include"],
defines = ["__APPLE_USE_RFC_3542"],
)

objc_library(
Expand Down
6 changes: 3 additions & 3 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def xcbbuildserviceproxy_dependencies():
http_archive,
build_file = "@com_github_target_xcbbuildserviceproxy//:external/com_github_apple_swift_nio.BUILD",
name = "com_github_apple_swift_nio",
sha256 = "40b115e77e8af3ffbe84be344c30c0964763e318e1d3dfe0a80da0e2ae17d614",
strip_prefix = "swift-nio-2.30.0",
sha256 = "4a654952046a46ad8f09d359e6c02e7fa04ab09f492ae35f5d6d7c769f3f008a",
strip_prefix = "swift-nio-2.33.0",
urls = [
"https://github.com/apple/swift-nio/archive/2.30.0.tar.gz",
"https://github.com/apple/swift-nio/archive/2.33.0.tar.gz",
],
)