-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[workspace] Flag sdformat, ignition_math, ignition_utils as internal
We are substantially patching these libraries to weave them into Drake. We should not give the illusion to users that they are available for reuse downstream. Also take this opportunity to track the ignition => gz project rename.
- Loading branch information
1 parent
e9ec8ea
commit cf3dd6e
Showing
22 changed files
with
140 additions
and
78 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
File renamed without changes.
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,35 @@ | ||
# -*- python -*- | ||
|
||
load("//tools/workspace:github.bzl", "github_archive") | ||
|
||
def gz_math_internal_repository( | ||
name, | ||
mirrors = None): | ||
# When updating this commit, also remember to adjust the PROJECT_* | ||
# constants in ./package.BUILD.bazel to match the new version number. | ||
github_archive( | ||
name = name, | ||
repository = "gazebosim/gz-math", | ||
commit = "ignition-math6_6.10.0", | ||
sha256 = "94e853e1dfba97ebec4b6152691a89af1e94660b02f4ecdf04356b763c2848bd", # noqa | ||
build_file = "@drake//tools/workspace/gz_math_internal:package.BUILD.bazel", # noqa | ||
mirrors = mirrors, | ||
) | ||
|
||
# The non-internal repository rule is deprecated. | ||
|
||
def _deprecated(repository_ctx): | ||
repository_ctx.file( | ||
"BUILD.bazel", | ||
content = """ | ||
cc_library( | ||
name = "ignition_math", | ||
deps = ["@gz_math_internal//:gz_math"], | ||
deprecation = "DRAKE DEPRECATED: The @ignition_math external is deprecated and will be removed on or after 2022-10-01.", # noqa | ||
visibility = ["//visibility:public"], | ||
) | ||
""", | ||
executable = False, | ||
) | ||
|
||
ignition_math_repository = repository_rule(implementation = _deprecated) |
File renamed without changes.
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,35 @@ | ||
# -*- python -*- | ||
|
||
load("//tools/workspace:github.bzl", "github_archive") | ||
|
||
def gz_utils_internal_repository( | ||
name, | ||
mirrors = None): | ||
github_archive( | ||
name = name, | ||
repository = "gazebosim/gz-utils", | ||
# When updating this commit, also remember to adjust the PROJECT_* | ||
# constants in ./package.BUILD.bazel to match the new version number. | ||
commit = "ignition-utils1_1.0.0", | ||
sha256 = "55d3285692392f9493a35b680f275ec116584baedeef90de57d2b03dfd952d9d", # noqa | ||
build_file = "@drake//tools/workspace/gz_utils_internal:package.BUILD.bazel", # noqa | ||
mirrors = mirrors, | ||
) | ||
|
||
# The non-internal repository rule is deprecated. | ||
|
||
def _deprecated(repository_ctx): | ||
repository_ctx.file( | ||
"BUILD.bazel", | ||
content = """ | ||
cc_library( | ||
name = "ignition_utils", | ||
deps = ["@gz_utils_internal//:gz_utils"], | ||
deprecation = "DRAKE DEPRECATED: The @ignition_utils external is deprecated and will be removed on or after 2022-10-01.", # noqa | ||
visibility = ["//visibility:public"], | ||
) | ||
""", | ||
executable = False, | ||
) | ||
|
||
ignition_utils_repository = repository_rule(implementation = _deprecated) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,39 @@ | ||
# -*- python -*- | ||
|
||
load("//tools/workspace:github.bzl", "github_archive") | ||
|
||
def sdformat_internal_repository( | ||
name, | ||
mirrors = None): | ||
github_archive( | ||
name = name, | ||
repository = "gazebosim/sdformat", | ||
commit = "sdformat12_12.5.0", | ||
build_file = "@drake//tools/workspace/sdformat_internal:package.BUILD.bazel", # noqa | ||
sha256 = "3896772db68b7ca7b18bbf1945a72206885b03d3f0caf29491be5b53b79a7124", # noqa | ||
patches = [ | ||
"@drake//tools/workspace/sdformat_internal:patches/console.patch", | ||
"@drake//tools/workspace/sdformat_internal:patches/deprecation_unit_testing.patch", # noqa | ||
"@drake//tools/workspace/sdformat_internal:patches/no_global_config.patch", # noqa | ||
"@drake//tools/workspace/sdformat_internal:patches/no_urdf.patch", | ||
], | ||
mirrors = mirrors, | ||
) | ||
|
||
# The non-internal repository rule is deprecated. | ||
|
||
def _deprecated(repository_ctx): | ||
repository_ctx.file( | ||
"BUILD.bazel", | ||
content = """ | ||
cc_library( | ||
name = "sdformat", | ||
deps = ["@sdformat_internal//:sdformat"], | ||
deprecation = "DRAKE DEPRECATED: The @sdformat external is deprecated and will be removed on or after 2022-10-01.", # noqa | ||
visibility = ["//visibility:public"], | ||
) | ||
""", | ||
executable = False, | ||
) | ||
|
||
sdformat_repository = repository_rule(implementation = _deprecated) |
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