mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-11-11 22:57:41 +00:00
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.
21 lines
957 B
CMake
21 lines
957 B
CMake
include_guard(GLOBAL)
|
|
function(trailmate_add_linux_codec2)
|
|
if(TARGET trailmate_linux_codec2)
|
|
return()
|
|
endif()
|
|
# Reuse the vendored minimal source ownership already used by PlatformIO.
|
|
file(READ "${TRAIL_MATE_REPO_ROOT}/third_party/codec2/library.json" codec_manifest)
|
|
string(JSON count LENGTH "${codec_manifest}" build srcFilter)
|
|
math(EXPR last "${count} - 1")
|
|
set(codec_sources "")
|
|
foreach(index RANGE 0 ${last})
|
|
string(JSON item GET "${codec_manifest}" build srcFilter ${index})
|
|
if(item MATCHES "^\\+<([^>]+)>$")
|
|
list(APPEND codec_sources "${TRAIL_MATE_REPO_ROOT}/third_party/codec2/src/${CMAKE_MATCH_1}")
|
|
endif()
|
|
endforeach()
|
|
add_library(trailmate_linux_codec2 STATIC ${codec_sources})
|
|
target_include_directories(trailmate_linux_codec2 PUBLIC "${TRAIL_MATE_REPO_ROOT}/third_party/codec2/src")
|
|
target_link_libraries(trailmate_linux_codec2 PUBLIC m)
|
|
endfunction()
|