diff --git a/src/bazel/InstallationDirectories.cc b/src/bazel/InstallationDirectories.cc new file mode 100644 index 000000000..dbf3b86bc --- /dev/null +++ b/src/bazel/InstallationDirectories.cc @@ -0,0 +1,15 @@ +// Generate an installation directories file for bazel specifically + +#include + +namespace sdf +{ + +inline namespace SDF_VERSION_NAMESPACE { + +std::string getInstallPrefix() +{ + return "."; +} +} // namespace SDF_VERSION_NAMESPACE +} // namespace sdf \ No newline at end of file diff --git a/test/BUILD.bazel b/test/BUILD.bazel new file mode 100644 index 000000000..59b071333 --- /dev/null +++ b/test/BUILD.bazel @@ -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__"], +)