daemon: use velox_platform_sources() instead of a hardcoded platform/linux/ list
PKG's cmake/platform.cmake (VELOX_OS_* + velox_platform_sources(<target> <dir>)) is on main now. Swap the hardcoded src/rpc/platform/linux/*.cpp list in veloxd_rpc for velox_platform_sources(veloxd_rpc src/rpc), matching ADR 0020 §5 (source selection lives in cmake/platform.cmake and nowhere else). PORT can now add platform/macos/ with no edit to this file. Build-wiring only, no behaviour change. Full suite 59/59 green. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
@@ -83,17 +83,14 @@ add_library(veloxd_rpc STATIC
|
|||||||
src/rpc/ws_server.cpp
|
src/rpc/ws_server.cpp
|
||||||
src/rpc/pairing.cpp
|
src/rpc/pairing.cpp
|
||||||
src/rpc/dispatcher.cpp
|
src/rpc/dispatcher.cpp
|
||||||
# Per-OS backends behind daemon/src/rpc/platform/*.hpp (docs/adr/0020,
|
|
||||||
# docs/08-porting.md). Only the Linux backend exists (Phase 0); lane PORT adds
|
|
||||||
# cmake/platform.cmake + platform/macos/ in Phase 1 and this hardcoded list becomes
|
|
||||||
# a velox_platform_sources() call.
|
|
||||||
src/rpc/platform/linux/wakeup.cpp
|
|
||||||
src/rpc/platform/linux/peer_id.cpp
|
|
||||||
src/rpc/platform/linux/instance_lock.cpp
|
|
||||||
src/rpc/platform/linux/runtime_paths.cpp
|
|
||||||
)
|
)
|
||||||
add_library(velox::daemon_rpc ALIAS veloxd_rpc)
|
add_library(velox::daemon_rpc ALIAS veloxd_rpc)
|
||||||
|
|
||||||
|
# Per-OS backends behind daemon/src/rpc/platform/*.hpp (docs/adr/0020, docs/08-porting.md).
|
||||||
|
# Source selection lives in cmake/platform.cmake and nowhere else — PORT adds
|
||||||
|
# platform/macos/ with no edit here.
|
||||||
|
velox_platform_sources(veloxd_rpc src/rpc)
|
||||||
|
|
||||||
target_include_directories(veloxd_rpc PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
target_include_directories(veloxd_rpc PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||||
target_compile_features(veloxd_rpc PUBLIC cxx_std_23)
|
target_compile_features(veloxd_rpc PUBLIC cxx_std_23)
|
||||||
target_compile_options(veloxd_rpc PRIVATE -Wall -Wextra -Wpedantic -Werror)
|
target_compile_options(veloxd_rpc PRIVATE -Wall -Wextra -Wpedantic -Werror)
|
||||||
|
|||||||
Reference in New Issue
Block a user