-
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.
Also add com_github_nelhage_rules_boost_internal for its BUILD file. These two repositories are not enabled by default. They are only used when --WITH_USD=ON is enabled.
- Loading branch information
1 parent
b1fb486
commit de4fd16
Showing
10 changed files
with
117 additions
and
10 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,3 @@ | ||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
add_lint_tests() |
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,21 @@ | ||
load("//tools/workspace:github.bzl", "github_release_attachments") | ||
|
||
def boost_internal_repository( | ||
name, | ||
mirrors = None): | ||
github_release_attachments( | ||
name = name, | ||
repository = "boostorg/boost", | ||
commit = "boost-1.84.0", | ||
attachments = { | ||
"boost-1.84.0.tar.xz": "2e64e5d79a738d0fa6fb546c6e5c2bd28f88d268a2a080546f74e5ff98f29d0e", # noqa | ||
}, | ||
strip_prefix = { | ||
"boost-1.84.0.tar.xz": "boost-1.84.0", | ||
}, | ||
build_file = "@com_github_nelhage_rules_boost_internal//:boost.BUILD", | ||
mirrors = mirrors, | ||
repo_mapping = { | ||
"@com_github_nelhage_rules_boost": "@com_github_nelhage_rules_boost_internal", # noqa | ||
}, | ||
) |
3 changes: 3 additions & 0 deletions
3
tools/workspace/com_github_nelhage_rules_boost_internal/BUILD.bazel
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,3 @@ | ||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
add_lint_tests() |
32 changes: 32 additions & 0 deletions
32
tools/workspace/com_github_nelhage_rules_boost_internal/patches/iostreams.patch
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,32 @@ | ||
[com_github_nelhage_rules_boost] Disable iostreams deps | ||
|
||
OpenUSD uses :multi_index which depends on :serialization which | ||
depends on :iostreams which depends on some compression libraries. | ||
|
||
In Drake, we don't expect to use any of those compression features, | ||
so we'll cut away the extra dependencies for simplicity. | ||
|
||
Since this is a Drake-specific customization, we don't plan on | ||
upstreaming this patch. | ||
|
||
|
||
--- boost.BUILD | ||
+++ boost.BUILD | ||
@@ -1131,10 +1131,13 @@ | ||
":type", | ||
":type_traits", | ||
":utility", | ||
- "@com_github_facebook_zstd//:zstd", | ||
- "@org_bzip_bzip2//:bz2lib", | ||
- "@org_lzma_lzma//:lzma", | ||
- "@zlib", | ||
+ ], | ||
+ exclude_src = [ | ||
+ "libs/iostreams/src/bzip2.cpp", | ||
+ "libs/iostreams/src/gzip.cpp", | ||
+ "libs/iostreams/src/lzma.cpp", | ||
+ "libs/iostreams/src/zlib.cpp", | ||
+ "libs/iostreams/src/zstd.cpp", | ||
], | ||
) | ||
|
15 changes: 15 additions & 0 deletions
15
tools/workspace/com_github_nelhage_rules_boost_internal/repository.bzl
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,15 @@ | ||
load("//tools/workspace:github.bzl", "github_archive") | ||
|
||
def com_github_nelhage_rules_boost_internal_repository( | ||
name, | ||
mirrors = None): | ||
github_archive( | ||
name = name, | ||
repository = "nelhage/rules_boost", | ||
commit = "f621ad7bec2abf5a597ed1271fd823d2761943b2", | ||
sha256 = "eb2cadbeb990785d8004d7063cac5fba72518cee7bdd2b9f7597affdced7524e", # noqa | ||
patches = [ | ||
":patches/iostreams.patch", | ||
], | ||
mirrors = mirrors, | ||
) |
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