Files
trail-mate/cmake/TrailMateProjectVersion.cmake
T
Trail Mate Dev 6e613e382e Add CM0 Linux support and share device services across platforms
Compose the CM0 fullscreen application and standard Debian package, align the
Cardputer Zero shell, and share protocol, configuration, audio and storage
services with embedded targets through existing platform seams.

Add the paginated on-device TMAP creator using Center's published producer,
private workspace recovery and direct keyboard shortcuts. Preserve unfinished
management work behind its existing opt-in capability.

Include native, ARM and shared-core regression fixtures, integration records,
packaging helpers and dependency/license updates. Keep local build trees,
device credentials, produced packages and validation logs outside version control.

Validation before integration: ESP stack hygiene, Reticulum scope guard, staged
whitespace checks and GitNexus scope audit. Prior device/build evidence and
remaining hardware/package boundaries are recorded in the acceptance documents.
2026-10-29 10:29:29 +08:00

15 lines
1.1 KiB
CMake

include_guard(GLOBAL)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
"${TRAIL_MATE_REPO_ROOT}/CHANGELOG.md"
"${TRAIL_MATE_REPO_ROOT}/scripts/project_version.py"
"${TRAIL_MATE_REPO_ROOT}/scripts/read_changelog.py")
execute_process(COMMAND "${Python3_EXECUTABLE}" "${TRAIL_MATE_REPO_ROOT}/scripts/project_version.py"
OUTPUT_VARIABLE project_version OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY)
execute_process(COMMAND "${Python3_EXECUTABLE}" "${TRAIL_MATE_REPO_ROOT}/scripts/project_version.py" --debian
OUTPUT_VARIABLE debian_version OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY)
set(TRAIL_MATE_PROJECT_VERSION "${project_version}" CACHE INTERNAL "Resolved project firmware version" FORCE)
set(TRAIL_MATE_DEBIAN_PROJECT_VERSION "${debian_version}" CACHE INTERNAL "Resolved Debian upstream version" FORCE)
configure_file("${CMAKE_CURRENT_LIST_DIR}/templates/linux_build_version.h.in"
"${CMAKE_BINARY_DIR}/generated/trailmate_linux_build_version.h" @ONLY)