diff options
author | thomasvl <thomasvl@google.com> | 2017-09-08 21:44:06 +0200 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2017-09-11 13:07:19 +0200 |
commit | e9c788a9711e8f780de7eb5bd3e1bed7994eb88c (patch) | |
tree | 7315d141dd6149e53f53f07701ffed04838ddbb9 /examples | |
parent | dd8bfab0bc3d2e663c38ec3df4b078d294078449 (diff) |
Remove swift_library and tests, lives in the apple rules repo now.
RELNOTES: The swift_library rule that is distributed with Bazel has been deleted. Users who wish to compile Swift should use the rules in https://github.com/bazelbuild/rules_apple instead.
PiperOrigin-RevId: 168032330
Diffstat (limited to 'examples')
-rw-r--r-- | examples/BUILD | 1 | ||||
-rw-r--r-- | examples/swift/BUILD | 19 | ||||
-rw-r--r-- | examples/swift/BarLib/BUILD | 16 | ||||
-rw-r--r-- | examples/swift/BarLib/mul.swift | 8 | ||||
-rw-r--r-- | examples/swift/constants.swift | 4 | ||||
-rw-r--r-- | examples/swift/foo.swift | 9 |
6 files changed, 0 insertions, 57 deletions
diff --git a/examples/BUILD b/examples/BUILD index bf4452b175..fe3a67e528 100644 --- a/examples/BUILD +++ b/examples/BUILD @@ -13,7 +13,6 @@ filegroup( "//examples/py:srcs", "//examples/py_native:srcs", "//examples/shell:srcs", - "//examples/swift:srcs", "//examples/windows/dll:srcs", ], ) diff --git a/examples/swift/BUILD b/examples/swift/BUILD deleted file mode 100644 index e2cbb195e2..0000000000 --- a/examples/swift/BUILD +++ /dev/null @@ -1,19 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 - -load("//tools/build_defs/apple:swift.bzl", "swift_library") - -swift_library( - name = "swift_lib", - srcs = glob(["*.swift"]), - deps = ["//examples/swift/BarLib"], -) - -filegroup( - name = "srcs", - srcs = glob(["**"]) + [ - "//examples/swift/BarLib:srcs", - ], - visibility = ["//examples:__pkg__"], -) diff --git a/examples/swift/BarLib/BUILD b/examples/swift/BarLib/BUILD deleted file mode 100644 index cfd566979f..0000000000 --- a/examples/swift/BarLib/BUILD +++ /dev/null @@ -1,16 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 - -load("//tools/build_defs/apple:swift.bzl", "swift_library") - -swift_library( - name = "BarLib", - srcs = ["mul.swift"], - module_name = "examples_BarLib", -) - -filegroup( - name = "srcs", - srcs = glob(["**"]), -) diff --git a/examples/swift/BarLib/mul.swift b/examples/swift/BarLib/mul.swift deleted file mode 100644 index 898c0b6877..0000000000 --- a/examples/swift/BarLib/mul.swift +++ /dev/null @@ -1,8 +0,0 @@ -/// Class used to multiply stuff. -public class Multiplier { - public init() {} - - public func multiply(a first: Int, b second: Int) -> Int { - return first * second - } -} diff --git a/examples/swift/constants.swift b/examples/swift/constants.swift deleted file mode 100644 index 6c16d34a82..0000000000 --- a/examples/swift/constants.swift +++ /dev/null @@ -1,4 +0,0 @@ -class Constants { - static var x = 2 - static var y = 3 -}
\ No newline at end of file diff --git a/examples/swift/foo.swift b/examples/swift/foo.swift deleted file mode 100644 index 4f80dad878..0000000000 --- a/examples/swift/foo.swift +++ /dev/null @@ -1,9 +0,0 @@ -import class examples_BarLib.Multiplier - -public class Foo { - public init() {} - - public func multiply() -> Int { - return Multiplier().multiply(a: Constants.x, b: Constants.y) - } -} |