Skip to content
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
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## v1.2.2

Tooling-only release: adds a native Meson build so the library can be
consumed as a Meson subproject or WrapDB wrap. The library itself is
unchanged — headers are identical to v1.2.1 apart from the version
macros, so existing consumers have nothing to update.

### Added

- **Native Meson build** (`meson.build` + `meson_options.txt`): a
header-only `declare_dependency` with `meson.override_dependency`, header
installation via `install_subdir`, and the self-verifying
`examples/gps_track.cpp` wired up as a smoke test — built standalone (or
on `-Dtests=enabled`) and skipped when the library is pulled in as a
subproject. A `meson-build` CI job runs it so the build can't drift out
of sync with the header layout.

### Unchanged (downstream-compatible)

- Every header except the `<geo/version.hpp>` macros is byte-identical to
v1.2.1; no API, behavior, or packaging changes.

## v1.2.1

Tooling-only release: ships the single-header amalgamation as a release
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
project(GeoUtilsCpp VERSION 1.2.1 LANGUAGES CXX)
project(GeoUtilsCpp VERSION 1.2.2 LANGUAGES CXX)

if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
set(_geo_utils_cpp_is_top_level ON)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ include(FetchContent)
FetchContent_Declare(
GeoUtilsCpp
GIT_REPOSITORY https://github.com/gistrec/geo-utils-cpp.git
GIT_TAG v1.2.1
GIT_TAG v1.2.2
)
FetchContent_MakeAvailable(GeoUtilsCpp)

Expand Down Expand Up @@ -237,7 +237,7 @@ target("your_target")
### Conan

```sh
conan install --requires=geo-utils-cpp/1.2.1 --build=missing
conan install --requires=geo-utils-cpp/1.2.2 --build=missing
```

Conan Center support is pending
Expand All @@ -254,7 +254,7 @@ Conan Center support is pending
Add the dependency to your package's `manifest`:

```
depends: libgeo-utils-cpp ^1.2.1
depends: libgeo-utils-cpp ^1.2.2
```

And in the consuming `buildfile`:
Expand Down Expand Up @@ -287,7 +287,7 @@ With any of the above methods (vcpkg, xrepo, Conan, FetchContent, or a
system `find_package`), wire it into your build with:

```cmake
find_package(GeoUtilsCpp 1.2.1 REQUIRED)
find_package(GeoUtilsCpp 1.2.2 REQUIRED)
target_link_libraries(your_target PRIVATE geo::utils)
```

Expand Down
6 changes: 3 additions & 3 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,9 @@ the library version for compile-time feature detection:

| Macro | Example | Description |
|---|---|---|
| `GEO_UTILS_CPP_VERSION_MAJOR` / `_MINOR` / `_PATCH` | `1` / `2` / `1` | version components |
| `GEO_UTILS_CPP_VERSION` | `10201` | `major·10000 + minor·100 + patch`, usable in `#if` |
| `GEO_UTILS_CPP_VERSION_STRING` | `"1.2.1"` | dotted string |
| `GEO_UTILS_CPP_VERSION_MAJOR` / `_MINOR` / `_PATCH` | `1` / `2` / `2` | version components |
| `GEO_UTILS_CPP_VERSION` | `10202` | `major·10000 + minor·100 + patch`, usable in `#if` |
| `GEO_UTILS_CPP_VERSION_STRING` | `"1.2.2"` | dotted string |

```cpp
#include <geo/version.hpp>
Expand Down
8 changes: 4 additions & 4 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ include(FetchContent)
FetchContent_Declare(
GeoUtilsCpp
GIT_REPOSITORY https://github.com/gistrec/geo-utils-cpp.git
GIT_TAG v1.2.1
GIT_TAG v1.2.2
)
FetchContent_MakeAvailable(GeoUtilsCpp)

Expand Down Expand Up @@ -64,7 +64,7 @@ for new projects, since the manifest commits alongside your source):
Either mode, then consume it from CMake:

```cmake
find_package(GeoUtilsCpp 1.2.1 REQUIRED)
find_package(GeoUtilsCpp 1.2.2 REQUIRED)
target_link_libraries(your_target PRIVATE geo::utils)
```

Expand Down Expand Up @@ -98,7 +98,7 @@ for the xmake variant.
### Conan

```sh
conan install --requires=geo-utils-cpp/1.2.1 --build=missing
conan install --requires=geo-utils-cpp/1.2.2 --build=missing
```

Conan Center support is pending
Expand All @@ -117,7 +117,7 @@ cmake --install build-cmake --prefix /usr/local
```

```cmake
find_package(GeoUtilsCpp 1.2.1 REQUIRED)
find_package(GeoUtilsCpp 1.2.2 REQUIRED)
target_link_libraries(your_target PRIVATE geo::utils)
```

Expand Down
4 changes: 2 additions & 2 deletions include/geo/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// consumers get it too; the test suite asserts it matches the CMake version.
#define GEO_UTILS_CPP_VERSION_MAJOR 1
#define GEO_UTILS_CPP_VERSION_MINOR 2
#define GEO_UTILS_CPP_VERSION_PATCH 1
#define GEO_UTILS_CPP_VERSION_PATCH 2

// Single number for >= comparisons: major * 10000 + minor * 100 + patch,
// e.g. 1.2.3 -> 10203.
Expand All @@ -19,7 +19,7 @@
#define GEO_UTILS_CPP_VERSION_STR_(x) #x
#define GEO_UTILS_CPP_VERSION_STR(x) GEO_UTILS_CPP_VERSION_STR_(x)

// "major.minor.patch", e.g. "1.2.1".
// "major.minor.patch", e.g. "1.2.2".
#define GEO_UTILS_CPP_VERSION_STRING \
GEO_UTILS_CPP_VERSION_STR(GEO_UTILS_CPP_VERSION_MAJOR) \
"." GEO_UTILS_CPP_VERSION_STR(GEO_UTILS_CPP_VERSION_MINOR) \
Expand Down
2 changes: 1 addition & 1 deletion manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
: 1
name: libgeo-utils-cpp
version: 1.2.1
version: 1.2.2
project: geo-utils-cpp
language: c++
summary: Header-only C++17 geographic geometry utilities
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
project(
'geo-utils-cpp',
'cpp',
version: '1.2.1',
version: '1.2.2',
license: 'Apache-2.0',
default_options: ['cpp_std=c++17'],
meson_version: '>=0.56.0',
Expand Down
Loading