Skip to content

Commit

Permalink
Bazel
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <louise@openrobotics.org>
  • Loading branch information
chapulina committed Jun 16, 2022
1 parent 69be834 commit 32162c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
load(
"//ign_bazel:build_defs.bzl",
"//gz_bazel:build_defs.bzl",
"IGNITION_FEATURES",
"IGNITION_VISIBILITY",
"cmake_configure_file",
"generate_include_header",
"ign_config_header",
"ign_export_header",
"gz_config_header",
"gz_export_header",
)

package(
Expand All @@ -26,15 +26,15 @@ PROJECT_MINOR = 0
PROJECT_PATCH = 0

# Generates config.hh based on the version numbers in CMake code.
ign_config_header(
gz_config_header(
name = "config",
src = "include/ignition/math/config.hh.in",
cmakelists = ["CMakeLists.txt"],
project_name = PROJECT_NAME,
project_version = (PROJECT_MAJOR, PROJECT_MINOR, PROJECT_PATCH),
)

ign_export_header(
gz_export_header(
name = "include/ignition/math/Export.hh",
export_base = "IGNITION_MATH",
lib_name = "ignition-math",
Expand Down Expand Up @@ -70,7 +70,7 @@ public_headers = public_headers_no_gen + [
]

cc_library(
name = "ign_math",
name = "gz_math",
srcs = sources + private_headers,
hdrs = public_headers,
includes = ["include"],
Expand All @@ -83,15 +83,15 @@ cc_binary(
linkopts = ["-Wl,-soname,libignition-math7.so"],
linkshared = True,
deps = [
":ign_math",
":gz_math",
],
)

[cc_test(
name = src.replace("/", "_").replace(".cc", "").replace("src_", ""),
srcs = [src],
deps = [
":ign_math",
":gz_math",
"@gtest",
"@gtest//:gtest_main",
],
Expand Down
4 changes: 2 additions & 2 deletions eigen3/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load(
"//ign_bazel:build_defs.bzl",
"//gz_bazel:build_defs.bzl",
"IGNITION_ROOT",
"IGNITION_VISIBILITY",
)
Expand All @@ -21,7 +21,7 @@ cc_library(
includes = ["include"],
deps = [
"@eigen3",
IGNITION_ROOT + "ign_math",
IGNITION_ROOT + "gz_math",
],
)

Expand Down

0 comments on commit 32162c2

Please sign in to comment.