Skip to content

Commit

Permalink
Add missing files
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Nov 4, 2024
1 parent 2a5d633 commit 01232fd
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/bazel/InstallationDirectories.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Generate an installation directories file for bazel specifically

#include <sdf/InstallationDirectories.hh>

namespace sdf
{

inline namespace SDF_VERSION_NAMESPACE {

std::string getInstallPrefix()
{
return ".";
}
} // namespace SDF_VERSION_NAMESPACE
} // namespace sdf
27 changes: 27 additions & 0 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
load("@rules_gazebo//gazebo:headers.bzl", "gz_configure_header")
load("@rules_license//rules:license.bzl", "license")

package(
default_applicable_licenses = ["//:license"],
)

license(
name = "license",
package_name = "sdformat-test",
)

gz_configure_header(
name = "TestConfig",
src = "test_config.hh.in",
package_xml = "//:package.xml",
)

cc_library(
name = "test_utils",
hdrs = [
"test_config.hh",
"test_utils.hh",
],
includes = ["."],
visibility = ["//:__subpackages__"],
)

0 comments on commit 01232fd

Please sign in to comment.