From ff52f155663ae6e181d9e52e90bd32c116bd15b6 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 19 May 2024 11:44:01 +0200 Subject: [PATCH] plugin symbol visibility --- external/CMakeLists.txt | 2 +- plugins/CMakeLists.txt | 6 ++++++ plugins/plugin_toxic_games.cpp | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 9ce115b..7dec40b 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -6,7 +6,7 @@ if (NOT TARGET imgui) message("II using FetchContent imgui") FetchContent_Declare(imgui GIT_REPOSITORY https://github.com/ocornut/imgui.git - GIT_TAG d6cb3c9 # v1.90.1 + GIT_TAG 6ccc561 # v1.90.6 EXCLUDE_FROM_ALL ) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 9a322c8..097679e 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -4,6 +4,12 @@ add_library(plugin_toxic_games SHARED ./plugin_toxic_games.cpp ) +set_target_properties(plugin_toxic_games PROPERTIES + C_VISIBILITY_PRESET hidden + POSITION_INDEPENDENT_CODE ON +) +target_compile_definitions(plugin_toxic_games PUBLIC ENTT_API_IMPORT) + target_link_libraries(plugin_toxic_games PUBLIC solanaceae_plugin solanaceae_toxic_games diff --git a/plugins/plugin_toxic_games.cpp b/plugins/plugin_toxic_games.cpp index 6efc4ed..1bd8826 100644 --- a/plugins/plugin_toxic_games.cpp +++ b/plugins/plugin_toxic_games.cpp @@ -3,6 +3,9 @@ #include #include +#include +#include + #include #include #include