aboutsummaryrefslogtreecommitdiff
path: root/libs/nak_ffi
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-01 15:31:43 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-01 15:31:43 -0500
commit45aefb63e84fd3c75be7b24264885a53f3fb44b8 (patch)
treeb702079f16be91eb7e170d608c3de9879976c10e /libs/nak_ffi
parente92d166ce97a9335f0e16526b40dc5dc456c361c (diff)
Fix SLR download failures and CMake rebuild detection
Replace SHA256SUMS verification with Content-Length check for SLR downloads. Valve's CDN frequently serves stale SHA256SUMS that don't match the current archive, causing persistent checksum mismatches. Fix CMake DEPENDS for nak_ffi to glob all .rs sources instead of hardcoding a few files — previously changes to slr.rs (and most other Rust files) were silently ignored by ninja. Also wrap prefix init and runtime commands through SLR pressure-vessel container, and expose Proton install directories to the container. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'libs/nak_ffi')
-rw-r--r--libs/nak_ffi/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/nak_ffi/CMakeLists.txt b/libs/nak_ffi/CMakeLists.txt
index bdfac9a..72d939f 100644
--- a/libs/nak_ffi/CMakeLists.txt
+++ b/libs/nak_ffi/CMakeLists.txt
@@ -12,14 +12,17 @@ endif()
set(NAK_FFI_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(NAK_FFI_LIB ${NAK_FFI_DIR}/target/${CARGO_BUILD_TYPE}/libnak_ffi.so)
+# Glob all Rust sources so any change triggers a cargo rebuild
+file(GLOB_RECURSE NAK_FFI_SOURCES ${NAK_FFI_DIR}/src/*.rs)
+file(GLOB_RECURSE NAK_SOURCES ${NAK_FFI_DIR}/../nak/src/*.rs)
+
add_custom_command(
OUTPUT ${NAK_FFI_LIB}
COMMAND cargo build ${CARGO_BUILD_FLAGS}
WORKING_DIRECTORY ${NAK_FFI_DIR}
COMMENT "Building NaK FFI library (Rust)"
- DEPENDS ${NAK_FFI_DIR}/Cargo.toml ${NAK_FFI_DIR}/src/lib.rs
- ${NAK_FFI_DIR}/../nak/Cargo.toml ${NAK_FFI_DIR}/../nak/src/lib.rs
- ${NAK_FFI_DIR}/../nak/src/icons.rs
+ DEPENDS ${NAK_FFI_DIR}/Cargo.toml ${NAK_FFI_DIR}/../nak/Cargo.toml
+ ${NAK_FFI_SOURCES} ${NAK_SOURCES}
)
add_custom_target(nak_ffi_build DEPENDS ${NAK_FFI_LIB})