From 7ee008e150bc5bcf76082d726f719ee0fdfda982 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Wed, 11 Feb 2026 02:37:39 -0600 Subject: Fluorine Manager: full Linux port of Mod Organizer 2 Complete native Linux port with FUSE-based virtual filesystem, Proton/umu-run integration, and Flatpak packaging. Key features: - FUSE VFS replacing Windows USVFS (in-process + standalone helper for Flatpak) - Proton/GE-Proton/umu-run launcher with env var forwarding - Flatpak support (sandbox-aware VFS, NXM handler, umu-run) - Wine prefix management UI - Case-insensitive path resolution for Linux filesystems - QSettings-safe INI handling (avoids Bethesda INI corruption) - Portable instance support with auto-generated launcher scripts Co-Authored-By: Claude Opus 4.6 --- libs/nak_ffi/CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libs/nak_ffi/CMakeLists.txt (limited to 'libs/nak_ffi/CMakeLists.txt') diff --git a/libs/nak_ffi/CMakeLists.txt b/libs/nak_ffi/CMakeLists.txt new file mode 100644 index 0000000..6fde501 --- /dev/null +++ b/libs/nak_ffi/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 3.16) +project(nak_ffi) + +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + set(CARGO_BUILD_TYPE "debug") + set(CARGO_BUILD_FLAGS "") +else() + set(CARGO_BUILD_TYPE "release") + set(CARGO_BUILD_FLAGS "--release") +endif() + +set(NAK_FFI_DIR ${CMAKE_CURRENT_SOURCE_DIR}) +set(NAK_FFI_LIB ${NAK_FFI_DIR}/target/${CARGO_BUILD_TYPE}/libnak_ffi.so) + +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 +) + +add_custom_target(nak_ffi_build DEPENDS ${NAK_FFI_LIB}) + +# INTERFACE wrapper so ALIAS works (CMake can't alias IMPORTED targets) +add_library(nak_ffi_wrapper INTERFACE) +target_link_libraries(nak_ffi_wrapper INTERFACE ${NAK_FFI_LIB}) +target_include_directories(nak_ffi_wrapper INTERFACE ${NAK_FFI_DIR}/include) +add_dependencies(nak_ffi_wrapper nak_ffi_build) +add_library(mo2::nak_ffi ALIAS nak_ffi_wrapper) + +install(FILES ${NAK_FFI_LIB} DESTINATION lib) +install(DIRECTORY ${NAK_FFI_DIR}/include/ DESTINATION include) -- cgit v1.3.1