aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/src/runner/CMakeLists.txt
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-11 02:37:39 -0600
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-11 02:37:39 -0600
commit7ee008e150bc5bcf76082d726f719ee0fdfda982 (patch)
tree27fb39be241fdb5ac2734c574de678977d1856d0 /libs/plugin_python/src/runner/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/plugin_python/src/runner/CMakeLists.txt')
-rw-r--r--libs/plugin_python/src/runner/CMakeLists.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/libs/plugin_python/src/runner/CMakeLists.txt b/libs/plugin_python/src/runner/CMakeLists.txt
new file mode 100644
index 0000000..d164460
--- /dev/null
+++ b/libs/plugin_python/src/runner/CMakeLists.txt
@@ -0,0 +1,34 @@
+cmake_minimum_required(VERSION 3.16)
+
+if(NOT TARGET mo2::uibase)
+ find_package(mo2-uibase CONFIG REQUIRED)
+endif()
+
+add_library(runner SHARED
+ error.h
+ pythonrunner.cpp
+ pythonrunner.h
+ pythonutils.h
+ pythonutils.cpp
+)
+mo2_configure_target(runner
+ NO_SOURCES
+ WARNINGS 4
+ EXTERNAL_WARNINGS 4
+ AUTOMOC ON
+ TRANSLATIONS OFF
+)
+mo2_default_source_group()
+target_link_libraries(runner PUBLIC mo2::uibase PRIVATE pybind11::embed pybind11::qt)
+target_include_directories(runner PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+target_compile_definitions(runner PRIVATE RUNNER_BUILD)
+if(NOT WIN32 AND Python_SHARED_LIBRARY)
+ get_filename_component(_pylib_name "${Python_SHARED_LIBRARY}" NAME)
+ target_compile_definitions(runner PRIVATE
+ MO2_PYTHON_SHARED_LIBRARY="${_pylib_name}")
+endif()
+
+# proxy will install runner
+
+# force runner to build mobase
+add_dependencies(runner mobase)