Skip to content

Commit

Permalink
Move into third_party/com_github_cxong_tinydir
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri committed Oct 11, 2017
1 parent c451eb0 commit 70d5dd5
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 9 deletions.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ DRAKE_EXTERNAL_PACKAGE_INSTALLS = ["@%s//:install" % p for p in [
"pybind11",
"sdformat",
"spdlog",
"tinydir",
"tinyobjloader",
"vtk",
"yaml_cpp",
Expand Down
6 changes: 6 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ local_repository(
path = "third_party/com_github_google_kythe",
)

new_local_repository(
name = "tinydir",
build_file = "tools/workspace/tinydir/tinydir.BUILD.bazel",
path = "third_party/com_github_cxong_tinydir",
)

load("@kythe//tools/build_rules/config:pkg_config.bzl", "pkg_config_package")

pkg_config_package(
Expand Down
6 changes: 6 additions & 0 deletions drake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ endif()

include(CTest)

# tinydir (via third_party)
add_library(tinydir ../third_party/com_github_cxong_tinydir/tinydir.h)
target_include_directories(tinydir PUBLIC ../third_party/com_github_cxong_tinydir)
set_target_properties(tinydir PROPERTIES LINKER_LANGUAGE CXX)
drake_install_libraries(tinydir)

add_subdirectory(thirdParty/boost/tcbrindle_cpp17_headers/stx)
add_subdirectory(thirdParty/bsd/spruce)
add_subdirectory(common)
Expand Down
1 change: 0 additions & 1 deletion drake/build_components.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ LIBDRAKE_COMPONENTS = [
"//drake/systems/trajectory_optimization:multiple_shooting",
"//drake/thirdParty:spruce",
"//drake/thirdParty:stx",
"//drake/thirdParty:tinydir",
"//drake/util:convex_hull",
"//drake/util:lcm_util",
"//drake/util:util",
Expand Down
2 changes: 1 addition & 1 deletion drake/multibody/parsers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ drake_cc_library(
deps = [
"//drake/multibody:rigid_body_tree",
"//drake/thirdParty:spruce",
"//drake/thirdParty:tinydir",
"@tinydir",
"@tinyxml2",
],
)
Expand Down
1 change: 1 addition & 0 deletions drake/multibody/parsers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ target_link_libraries(drakeMultibodyParsers
drakeRBM
Eigen3::Eigen
spruce
tinydir
tinyxml2)
drake_install_libraries(drakeMultibodyParsers)
drake_install_headers(
Expand Down
2 changes: 1 addition & 1 deletion drake/multibody/parsers/package_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#include <utility>
#include <vector>

#include <tinydir.h>
#include <tinyxml2.h>
#include "spruce.hh"

#include "drake/common/drake_assert.h"
#include "drake/common/drake_throw.h"
#include "drake/common/text_logging.h"
#include "drake/thirdParty/bsd/tinydir/tinydir.h"

using std::cerr;
using std::endl;
Expand Down
3 changes: 2 additions & 1 deletion drake/multibody/parsers/xml_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
#include <stdexcept>
#include <string>

#include <tinydir.h>

#include "drake/common/drake_assert.h"
#include "drake/math/roll_pitch_yaw.h"
#include "drake/thirdParty/bsd/tinydir/tinydir.h"

using std::string;
using std::stringstream;
Expand Down
5 changes: 0 additions & 5 deletions drake/thirdParty/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ drake_cc_library(
includes = ["bsd/spruce"],
)

drake_cc_library(
name = "tinydir",
hdrs = ["bsd/tinydir/tinydir.h"],
)

drake_cc_library(
name = "stx",
hdrs = ["boost/tcbrindle_cpp17_headers/stx/optional.hpp"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions tools/workspace/tinydir/tinydir.BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- python -*-

load("@drake//tools:install.bzl", "install")

package(default_visibility = ["//visibility:public"])

cc_library(
name = "tinydir",
hdrs = ["tinydir.h"],
includes = ["."],
)

# We do not install the header file (its a private dependency), but we still
# need to install its license file.
install(
name = "install",
docs = ["COPYING"],
)

0 comments on commit 70d5dd5

Please sign in to comment.