-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- We're using the rules_apple repository for swift support - WORKSPACE defines external dependencies - BUILD defines the specific targets (similar to Swift PM)
- Loading branch information
1 parent
864abac
commit f7dbdd5
Showing
3 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
load("@build_bazel_rules_apple//apple:swift.bzl", "swift_library") | ||
load("@build_bazel_rules_apple//apple:macos.bzl", "macos_command_line_application") | ||
|
||
swift_library( | ||
name = "PlankCore", | ||
srcs = glob(["Sources/Core/*.swift"]), | ||
module_name = "Core", | ||
swift_version = 3, | ||
copts = ["-whole-module-optimization"] | ||
) | ||
|
||
swift_library( | ||
name = "PlankLib", | ||
srcs = glob(["Sources/plank/*.swift"]), | ||
swift_version = 3, | ||
copts = ["-whole-module-optimization"], | ||
deps = [":PlankCore"] | ||
) | ||
|
||
macos_command_line_application( | ||
name = "plank", | ||
deps = [":PlankLib"] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
load('@bazel_tools//tools/build_defs/repo:git.bzl', system_git_repository='git_repository') | ||
|
||
system_git_repository( | ||
name = "build_bazel_rules_apple", | ||
remote = "https://github.com/bazelbuild/rules_apple.git", | ||
commit = "f336855ceed6201ad3a0fe7008641f161291cd76", | ||
) |