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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.3] - 2026-06-16

### Changed

- 发布二进制体积缩小约 44%(~4.0MB → ~2.25MB):链接启用 `--gc-sections`
丢弃静态链入 iceoryx/CycloneDDS 中未引用的代码,Release 默认 `-Os`。
- 发布时分离调试符号:发布的 bin 经 strip 并通过 `--add-gnu-debuglink`
关联符号档,符号包仅作为 CI artifact 上传,不挂公开 Release。

### Fixed

- `--version` 不再硬编码:版本号统一以 CMake `project(VERSION)` 为唯一来源,
注入给 CLI,避免发布版本与二进制自报版本不一致。

## [0.0.2] - 2025-03-09

### Added
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.16)
project(cddsctl VERSION 0.0.2 LANGUAGES C CXX)
project(cddsctl VERSION 0.0.3 LANGUAGES C CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
4 changes: 4 additions & 0 deletions cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ target_include_directories(cddsctl PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)

# Single source of truth for the CLI version: project(VERSION) in the top-level
# CMakeLists, injected so main.cpp doesn't carry its own copy.
target_compile_definitions(cddsctl PRIVATE CDDSCTL_VERSION="${PROJECT_VERSION}")

target_link_libraries(cddsctl PRIVATE
cddsctl_recorder
optionparser
Expand Down
2 changes: 1 addition & 1 deletion cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace {

constexpr const char* VERSION = "0.0.2";
constexpr const char* VERSION = CDDSCTL_VERSION;

constexpr const char* SHM_STATUS = "with SHM";

Expand Down
Loading