-
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.
Merge pull request #18611 from jwnimmer-tri/fcl-internal
[workspace] Deprecate the ccd and fcl externals
- Loading branch information
Showing
14 changed files
with
277 additions
and
31 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
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,5 @@ | ||
# -*- python -*- | ||
|
||
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,66 @@ | ||
# -*- python -*- | ||
|
||
load( | ||
"@drake//tools/workspace:cmake_configure_file.bzl", | ||
"cmake_configure_file", | ||
) | ||
load( | ||
"@drake//tools/install:install.bzl", | ||
"install", | ||
) | ||
|
||
licenses(["notice"]) # BSD-3-Clause | ||
|
||
package( | ||
default_visibility = ["//visibility:public"], | ||
) | ||
|
||
# Generates config.h based on the defines= we want in Drake. | ||
cmake_configure_file( | ||
name = "config", | ||
src = "src/ccd/config.h.cmake.in", | ||
out = "src/ccd/config.h", | ||
defines = ["CCD_DOUBLE"], | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
# Guessing headers with | ||
# install(... | ||
# guess_hdrs = "PACKAGE", | ||
# ) | ||
# fails and lists internal headers in addition to the public headers. | ||
CCD_PUBLIC_HEADERS = [ | ||
"src/ccd/ccd.h", | ||
"src/ccd/config.h", | ||
"src/ccd/compiler.h", | ||
"src/ccd/quat.h", | ||
"src/ccd/vec3.h", | ||
"src/ccd/ccd_export.h", | ||
] | ||
|
||
# Options used when building the ccd code. Handled by cmake in upstream code | ||
CCD_COPTS = [ | ||
"-Wno-all", | ||
"-fvisibility=hidden", | ||
] | ||
|
||
# Generates the library exported to users. Upstream's CMake code lists out all | ||
# sources instead of globbing, but conveniently puts the public headers in one | ||
# place and private sources and headers in another; we'll use globbing here. | ||
cc_library( | ||
name = "ccd", | ||
srcs = glob([ | ||
"src/*.c", | ||
"src/*.h", | ||
]), | ||
hdrs = CCD_PUBLIC_HEADERS, | ||
copts = CCD_COPTS, | ||
defines = ["CCD_STATIC_DEFINE"], | ||
includes = ["src"], | ||
linkstatic = 1, | ||
) | ||
|
||
install( | ||
name = "install", | ||
docs = ["BSD-LICENSE"], | ||
) |
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 @@ | ||
# -*- python -*- | ||
|
||
load("@drake//tools/workspace:github.bzl", "github_archive") | ||
|
||
def ccd_internal_repository( | ||
name, | ||
mirrors = None): | ||
github_archive( | ||
name = name, | ||
repository = "danfis/libccd", | ||
commit = "7931e764a19ef6b21b443376c699bbc9c6d4fba8", | ||
sha256 = "479994a86d32e2effcaad64204142000ee6b6b291fd1859ac6710aee8d00a482", # noqa | ||
build_file = ":package.BUILD.bazel", | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -*- python -*- | ||
|
||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
exports_files(["version-from-xml.sed"]) | ||
|
||
add_lint_tests() |
Oops, something went wrong.