This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve certain srcs before attempting to copy and use
c99name
…
… to determine output directory (#190) - For srcs with absolute paths (i.e., headers that are expected to be installed on the system), if the path is not found, check under the SDK path. - Use the `c99name` when determining the output directory for a clang library. - Add `xcmetrics` example. Closes #189.
- Loading branch information
Showing
9 changed files
with
127 additions
and
8 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
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
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,8 @@ | ||
# Import Shared settings | ||
import %workspace%/../../shared.bazelrc | ||
|
||
# Import CI settings. | ||
import %workspace%/../../ci.bazelrc | ||
|
||
# Try to import a local.rc file; typically, written by CI | ||
try-import %workspace%/../../local.bazelrc |
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,8 @@ | ||
load("@bazel_skylib//rules:build_test.bzl", "build_test") | ||
|
||
build_test( | ||
name = "xcode_metrics_package_targets", | ||
targets = [ | ||
"@xcode_metrics_packages//XCMetrics:XCMetricsClient", | ||
], | ||
) |
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,59 @@ | ||
workspace(name = "xcmetrics_example") | ||
|
||
local_repository( | ||
name = "cgrindel_rules_spm", | ||
path = "../..", | ||
) | ||
|
||
load( | ||
"@cgrindel_rules_spm//spm:deps.bzl", | ||
"spm_rules_dependencies", | ||
) | ||
|
||
spm_rules_dependencies() | ||
|
||
load("@cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") | ||
|
||
bazel_starlib_dependencies() | ||
|
||
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") | ||
|
||
bazel_skylib_workspace() | ||
|
||
load( | ||
"@build_bazel_rules_swift//swift:repositories.bzl", | ||
"swift_rules_dependencies", | ||
) | ||
|
||
swift_rules_dependencies() | ||
|
||
load( | ||
"@build_bazel_rules_swift//swift:extras.bzl", | ||
"swift_rules_extra_dependencies", | ||
) | ||
|
||
swift_rules_extra_dependencies() | ||
|
||
load("@cgrindel_rules_spm//spm:defs.bzl", "spm_pkg", "spm_repositories") | ||
|
||
# From GH189 | ||
spm_repositories( | ||
name = "xcode_metrics_packages", | ||
dependencies = [ | ||
spm_pkg( | ||
"https://github.com/apple/swift-argument-parser", | ||
exact_version = "0.3.2", | ||
products = ["ArgumentParser"], | ||
), | ||
spm_pkg( | ||
"https://github.com/spotify/XCMetrics", | ||
exact_version = "0.0.10", | ||
products = [ | ||
"XCMetricsClient", | ||
"XCMetricsPlugins", | ||
], | ||
), | ||
], | ||
platforms = [".macOS(.v10_15)"], | ||
swift_version = "5.5", | ||
) |
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