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/bsa_ffi/CMakeLists.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libs/bsa_ffi/CMakeLists.txt (limited to 'libs/bsa_ffi/CMakeLists.txt') diff --git a/libs/bsa_ffi/CMakeLists.txt b/libs/bsa_ffi/CMakeLists.txt new file mode 100644 index 0000000..26da7ff --- /dev/null +++ b/libs/bsa_ffi/CMakeLists.txt @@ -0,0 +1,34 @@ +cmake_minimum_required(VERSION 3.16) +project(bsa_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(BSA_FFI_DIR ${CMAKE_CURRENT_SOURCE_DIR}) +set(BSA_FFI_LIB ${BSA_FFI_DIR}/target/${CARGO_BUILD_TYPE}/libbsa_ffi.so) + +add_custom_command( + OUTPUT ${BSA_FFI_LIB} + COMMAND cargo build ${CARGO_BUILD_FLAGS} + WORKING_DIRECTORY ${BSA_FFI_DIR} + COMMENT "Building BSA FFI library (Rust)" + DEPENDS + ${BSA_FFI_DIR}/Cargo.toml + ${BSA_FFI_DIR}/src/lib.rs +) + +add_custom_target(bsa_ffi_build DEPENDS ${BSA_FFI_LIB}) + +add_library(bsa_ffi_wrapper INTERFACE) +target_link_libraries(bsa_ffi_wrapper INTERFACE ${BSA_FFI_LIB}) +target_include_directories(bsa_ffi_wrapper INTERFACE ${BSA_FFI_DIR}/include) +add_dependencies(bsa_ffi_wrapper bsa_ffi_build) +add_library(mo2::bsa_ffi ALIAS bsa_ffi_wrapper) + +install(FILES ${BSA_FFI_LIB} DESTINATION lib) +install(DIRECTORY ${BSA_FFI_DIR}/include/ DESTINATION include) -- cgit v1.3.1