Skip to content

Commit

Permalink
libdrake: Fix build_componets_refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI committed Mar 1, 2018
1 parent 63d5b93 commit eccab96
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tools/install/libdrake/build_components_refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ def _remove_dev(components):


def _find_libdrake_components():
query_string = ' '.join([
'kind("cc_library",'
'visible("//tools/install/libdrake:libdrake.so",'
'"//drake/..."))',
'except("//drake/examples/...")'
'except(attr("testonly", "1", "//drake/..."))'
'except("//drake/lcmtypes/...")'
'except("//drake:*")'
])
query_string = """
kind("cc_library", visible("//tools/install/libdrake:libdrake.so", "//..."))
except(attr("testonly", "1", "//..."))
except("//:*")
except("//common:text_logging_gflags")
except("//common/proto:protobuf_ubsan_fixup")
except("//examples/...")
except("//lcmtypes/...")
except("//tools/install/libdrake:*")
"""
command = ["bazel", "query", query_string]
components = [x for x in subprocess.check_output(command).split('\n') if x]
components = _remove_dev(components)
Expand Down

0 comments on commit eccab96

Please sign in to comment.