From 85e2b633dba4741f6624b99bb118e1ab730b6677 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 19 May 2024 11:42:03 +0200 Subject: [PATCH] plugin symbol visibility --- plugins/CMakeLists.txt | 12 ++++++++++++ plugins/plugin_rpbot.cpp | 3 +++ 2 files changed, 15 insertions(+) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 38a0357..b2abfe6 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -3,16 +3,28 @@ cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR) add_library(plugin_llama-cpp-web SHARED ./plugin_llama-cpp-web.cpp ) +set_target_properties(plugin_llama-cpp-web PROPERTIES + C_VISIBILITY_PRESET hidden + POSITION_INDEPENDENT_CODE ON +) target_link_libraries(plugin_llama-cpp-web PUBLIC solanaceae_plugin solanaceae_llama-cpp-web ) +######################################## + add_library(plugin_rpbot SHARED ./plugin_rpbot.cpp ) +set_target_properties(plugin_rpbot PROPERTIES + C_VISIBILITY_PRESET hidden + POSITION_INDEPENDENT_CODE ON +) +target_compile_definitions(plugin_rpbot PUBLIC ENTT_API_IMPORT) + target_link_libraries(plugin_rpbot PUBLIC solanaceae_plugin solanaceae_rpbot diff --git a/plugins/plugin_rpbot.cpp b/plugins/plugin_rpbot.cpp index 3723ead..7561251 100644 --- a/plugins/plugin_rpbot.cpp +++ b/plugins/plugin_rpbot.cpp @@ -5,6 +5,9 @@ #include #include +#include +#include + #include #include #include