diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-02-11 02:37:39 -0600 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-02-11 02:37:39 -0600 |
| commit | 7ee008e150bc5bcf76082d726f719ee0fdfda982 (patch) | |
| tree | 27fb39be241fdb5ac2734c574de678977d1856d0 /libs/bsa_ffi/CMakeLists.txt | |
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 <noreply@anthropic.com>
Diffstat (limited to 'libs/bsa_ffi/CMakeLists.txt')
| -rw-r--r-- | libs/bsa_ffi/CMakeLists.txt | 34 |
1 files changed, 34 insertions, 0 deletions
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) |
