plugin symbol visibility

This commit is contained in:
Green Sky 2024-05-19 11:42:03 +02:00
parent be58c0cece
commit 85e2b633db
No known key found for this signature in database
2 changed files with 15 additions and 0 deletions

View File

@ -3,16 +3,28 @@ cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
add_library(plugin_llama-cpp-web SHARED add_library(plugin_llama-cpp-web SHARED
./plugin_llama-cpp-web.cpp ./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 target_link_libraries(plugin_llama-cpp-web PUBLIC
solanaceae_plugin solanaceae_plugin
solanaceae_llama-cpp-web solanaceae_llama-cpp-web
) )
########################################
add_library(plugin_rpbot SHARED add_library(plugin_rpbot SHARED
./plugin_rpbot.cpp ./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 target_link_libraries(plugin_rpbot PUBLIC
solanaceae_plugin solanaceae_plugin
solanaceae_rpbot solanaceae_rpbot

View File

@ -5,6 +5,9 @@
#include <solanaceae/rpbot/rpbot.hpp> #include <solanaceae/rpbot/rpbot.hpp>
#include <solanaceae/message3/message_command_dispatcher.hpp> #include <solanaceae/message3/message_command_dispatcher.hpp>
#include <entt/entt.hpp>
#include <entt/fwd.hpp>
#include <memory> #include <memory>
#include <iostream> #include <iostream>
#include <limits> #include <limits>