core: select platform/linux sources via velox_platform_sources()

Replace the hardcoded src/io/platform/linux/file_ops.cpp entry with a
velox_platform_sources(veloxcore src/io) call, now that PKG/QA's
cmake/platform.cmake owns VELOX_OS_* detection and source selection
(ADR 0020 §5). Adding platform/macos/ later needs no edit to this file.

Build-wiring only; full suite stays green (59/59).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
2026-09-15 18:46:13 +04:00
co-authored by Claude Sonnet 5
parent d60cf94905
commit 83b92d118b
+5 -1
View File
@@ -20,7 +20,6 @@ add_library(veloxcore STATIC
src/net/probe.cpp src/net/probe.cpp
src/io/sparse_file.cpp src/io/sparse_file.cpp
src/io/write_buffer.cpp src/io/write_buffer.cpp
src/io/platform/linux/file_ops.cpp
src/meta/veloxpart.cpp src/meta/veloxpart.cpp
src/segment/segmenter.cpp src/segment/segmenter.cpp
src/segment/budget.cpp src/segment/budget.cpp
@@ -33,6 +32,11 @@ add_library(veloxcore STATIC
) )
add_library(velox::core ALIAS veloxcore) add_library(velox::core ALIAS veloxcore)
# Per-OS backend behind src/io/platform/*.hpp (docs/adr/0020, docs/08-porting.md). Only
# the Linux backend exists (Phase 0); source selection lives in cmake/platform.cmake and
# nowhere else, so PORT's platform/macos/ addition needs no edit here.
velox_platform_sources(veloxcore src/io)
target_include_directories(veloxcore target_include_directories(veloxcore
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src # net/*.cpp -> "net/curl_error.hpp" PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src # net/*.cpp -> "net/curl_error.hpp"