-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[drake_ros] Vendor in VTK 9 depdendency
- Loading branch information
1 parent
8e8f411
commit e475875
Showing
7 changed files
with
249 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Empty BUILD file to mark package boundaries. |
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 @@ | ||
# Empty BUILD file to mark package boundaries. |
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,223 @@ | ||
# -*- mode: python -*- | ||
# vi: set ft=python : | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_library( | ||
name = "_headers", | ||
hdrs = glob(["include/vtk-9.1/**"]), | ||
includes = ["include/vtk-9.1"], | ||
) | ||
|
||
# Header-only libraries. | ||
alias(name = "vtkkwiml", actual = "_headers") | ||
alias(name = "vtkfmt", actual = "_headers") | ||
|
||
# Shared libraries. | ||
_LIB_DEPS = { | ||
"vtkCommonColor": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
], | ||
"vtkCommonComputationalGeometry": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
], | ||
"vtkCommonCore": [ | ||
":vtkkwiml", | ||
":vtkloguru", | ||
":vtksys", | ||
], | ||
"vtkCommonDataModel": [ | ||
":vtkCommonCore", | ||
":vtkCommonMath", | ||
":vtkCommonMisc", | ||
":vtkCommonSystem", | ||
":vtkCommonTransforms", | ||
":vtksys", | ||
":vtkpugixml", | ||
], | ||
"vtkCommonExecutionModel": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonMisc", | ||
":vtkCommonSystem", | ||
], | ||
"vtkCommonMath": [ | ||
":vtkCommonCore", | ||
":vtkkissfft", | ||
], | ||
"vtkCommonMisc": [ | ||
":vtkCommonCore", | ||
":vtkCommonMath", | ||
":vtksys", | ||
], | ||
"vtkCommonSystem": [ | ||
":vtkCommonCore", | ||
":vtksys", | ||
], | ||
"vtkCommonTransforms": [ | ||
":vtkCommonCore", | ||
":vtkCommonMath", | ||
":vtksys", | ||
], | ||
"vtkDICOMParser": [ | ||
":vtksys", | ||
], | ||
"vtkFiltersCore": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMath", | ||
":vtkCommonMisc", | ||
":vtkCommonSystem", | ||
":vtkCommonTransforms", | ||
":vtksys", | ||
], | ||
"vtkFiltersGeneral": [ | ||
":vtkCommonComputationalGeometry", | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMath", | ||
":vtkCommonMisc", | ||
":vtkCommonSystem", | ||
":vtkCommonTransforms", | ||
":vtkFiltersCore", | ||
":vtkfmt", | ||
], | ||
"vtkFiltersGeometry": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkFiltersCore", | ||
":vtksys", | ||
], | ||
"vtkFiltersHybrid": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMath", | ||
":vtkCommonMisc", | ||
":vtkCommonTransforms", | ||
":vtkFiltersGeometry", | ||
":vtkFiltersCore", | ||
":vtkFiltersGeneral", | ||
":vtkImagingCore", | ||
":vtkImagingSources", | ||
":vtkRenderingCore", | ||
":vtksys", | ||
], | ||
"vtkFiltersSources": [ | ||
":vtkCommonComputationalGeometry", | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonTransforms", | ||
":vtkFiltersCore", | ||
":vtkFiltersGeneral", | ||
], | ||
"vtkIOCore": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMisc", | ||
":vtksys", | ||
], | ||
"vtkIOGeometry": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMisc", | ||
":vtkCommonSystem", | ||
":vtkCommonTransforms", | ||
":vtkFiltersGeneral", | ||
":vtkFiltersHybrid", | ||
":vtkImagingCore", | ||
":vtkIOCore", | ||
":vtkIOImage", | ||
":vtkIOLegacy", | ||
":vtkRenderingCore", | ||
":vtksys", | ||
], | ||
"vtkIOImage": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMath", | ||
":vtkCommonMisc", | ||
":vtkCommonSystem", | ||
":vtkCommonTransforms", | ||
":vtkDICOMParser", | ||
":vtkImagingCore", | ||
":vtkmetaio", | ||
":vtkpugixml", | ||
":vtksys", | ||
], | ||
"vtkIOLegacy": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMisc", | ||
":vtkIOCore", | ||
":vtksys", | ||
], | ||
"vtkImagingCore": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMath", | ||
":vtkCommonTransforms", | ||
], | ||
"vtkImagingSources": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkImagingCore", | ||
], | ||
"vtkRenderingCore": [ | ||
":vtkCommonColor", | ||
":vtkCommonComputationalGeometry", | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMath", | ||
":vtkCommonSystem", | ||
":vtkCommonTransforms", | ||
":vtkFiltersCore", | ||
":vtkFiltersGeneral", | ||
":vtkFiltersGeometry", | ||
":vtkFiltersSources", | ||
":vtksys", | ||
], | ||
"vtkRenderingOpenGL2": [ | ||
":vtkCommonCore", | ||
":vtkCommonDataModel", | ||
":vtkCommonExecutionModel", | ||
":vtkCommonMath", | ||
":vtkCommonSystem", | ||
":vtkCommonTransforms", | ||
":vtkFiltersGeneral", | ||
":vtkRenderingCore", | ||
":vtkRenderingUI", | ||
":vtksys", | ||
], | ||
"vtkRenderingUI": [ | ||
":vtkRenderingCore", | ||
], | ||
"vtkkissfft": [], | ||
"vtkloguru": [], | ||
"vtkmetaio": [], | ||
"vtkpugixml": [], | ||
"vtksys": [], | ||
} | ||
|
||
# Add a rule for each shared library. | ||
[ | ||
cc_library( | ||
name = name, | ||
linkopts = ["-l{}-9.1".format(name)], | ||
deps = [":_headers"] + deps, | ||
) | ||
for name, deps in _LIB_DEPS.items() | ||
] |
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,13 @@ | ||
def _impl(repository_ctx): | ||
repository_ctx.symlink( | ||
"/usr/include/vtk-9.1", | ||
"include/vtk-9.1", | ||
) | ||
repository_ctx.symlink( | ||
Label("@//tools/workspace/vtk:package.BUILD.bazel"), | ||
"BUILD.bazel", | ||
) | ||
|
||
vtk_repository = repository_rule( | ||
implementation = _impl, | ||
) |
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