From 83b92d118b2786a1d1363ff1699dc05e5bdf6732 Mon Sep 17 00:00:00 2001 From: sami Date: Tue, 15 Sep 2026 18:46:13 +0400 Subject: [PATCH] core: select platform/linux sources via velox_platform_sources() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 64c5020..ccb5153 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -20,7 +20,6 @@ add_library(veloxcore STATIC src/net/probe.cpp src/io/sparse_file.cpp src/io/write_buffer.cpp - src/io/platform/linux/file_ops.cpp src/meta/veloxpart.cpp src/segment/segmenter.cpp src/segment/budget.cpp @@ -33,6 +32,11 @@ add_library(veloxcore STATIC ) 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 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src # net/*.cpp -> "net/curl_error.hpp"