Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nkoenig/7 to main 05122023 #535

Merged
merged 18 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Ubuntu Focal CI
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Compile and test
id: ci
uses: gazebo-tooling/action-gz-ci@focal
Expand All @@ -22,7 +22,7 @@ jobs:
name: Ubuntu Jammy CI
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Compile and test
id: ci
uses: gazebo-tooling/action-gz-ci@jammy
58 changes: 24 additions & 34 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,37 +1,31 @@
load(
"//gz_bazel:build_defs.bzl",
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"cmake_configure_file",
"generate_include_header",
"gz_config_header",
"gz_configure_header",
"gz_export_header",
"gz_include_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)

package(
default_visibility = GZ_VISIBILITY,
features = GZ_FEATURES,
)

licenses(["notice"])
licenses(["notice"]) # Apache-2.0

exports_files(["LICENSE"])

PROJECT_NAME = "gz-math"

PROJECT_MAJOR = 8

PROJECT_MINOR = 0

PROJECT_PATCH = 0

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

gz_export_header(
Expand All @@ -54,7 +48,7 @@ sources = glob(
exclude = ["src/*_TEST.cc"],
)

generate_include_header(
gz_include_header(
name = "mathhh_genrule",
out = "include/gz/math.hh",
hdrs = public_headers_no_gen + [
Expand All @@ -70,34 +64,30 @@ public_headers = public_headers_no_gen + [
]

cc_library(
name = "gz_math",
name = "math",
srcs = sources + private_headers,
hdrs = public_headers,
includes = ["include"],
deps = [
GZ_ROOT + "utils",
],
)

# use shared library only when absolutely needd
cc_binary(
name = "libgz-math8.so",
includes = ["include"],
linkopts = ["-Wl,-soname,libgz-math8.so"],
linkshared = True,
deps = [
":gz_math",
test_sources = glob(
[
"src/*_TEST.cc",
"src/graph/*_TEST.cc",
],
)

[cc_test(
name = src.replace("/", "_").replace(".cc", "").replace("src_", ""),
srcs = [src],
deps = [
":gz_math",
":math",
"@gtest",
"@gtest//:gtest_main",
],
) for src in glob(
[
"src/*_TEST.cc",
"src/graph/*_TEST.cc",
],
)]
) for src in test_sources]

add_lint_tests()
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ option(SKIP_SWIG
"Skip generating ruby bindings via Swig"
OFF)

set(skip_pybind11_default_value OFF)
if (MSVC)
set(skip_pybind11_default_value ON)
endif()

option(SKIP_PYBIND11
"Skip generating Python bindings via pybind11"
OFF)
${skip_pybind11_default_value})

include(CMakeDependentOption)
cmake_dependent_option(USE_SYSTEM_PATHS_FOR_RUBY_INSTALLATION
Expand Down
178 changes: 0 additions & 178 deletions COPYING

This file was deleted.

8 changes: 8 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@

## Gazebo Math 6.x

## Gazebo Math 6.13.0 (2022-08-31)

1. Support migration and migrate headers
* [Pull request #483](https://github.com/gazebosim/gz-math/pull/483)

1. Remove redundant namespace references
* [Pull request #479](https://github.com/gazebosim/gz-math/pull/479)

## Gazebo Math 6.12.0 (2022-07-27)

1. Added Helper function isTimeString to Python
Expand Down
Loading