symbol visiblity and fixes for entt export/import

(hopefully)
This commit is contained in:
2024-05-19 11:48:46 +02:00
parent 0bd7131d9c
commit 64a5eee3ca
11 changed files with 25 additions and 11 deletions

View File

@ -3,8 +3,12 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
add_library(plugin_ngcft1 SHARED add_library(plugin_ngcft1 SHARED
./plugin_ngcft1.cpp ./plugin_ngcft1.cpp
) )
set_property(TARGET plugin_ngcft1 PROPERTY C_VISIBILITY_PRESET hidden) set_target_properties(plugin_ngcft1 PROPERTIES
set_property(TARGET plugin_ngcft1 PROPERTY VISIBILITY_INLINES_HIDDEN ON) C_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON # do we need this?
POSITION_INDEPENDENT_CODE ON
)
target_compile_definitions(plugin_ngcft1 PUBLIC ENTT_API_IMPORT)
target_link_libraries(plugin_ngcft1 PUBLIC target_link_libraries(plugin_ngcft1 PUBLIC
solanaceae_plugin solanaceae_plugin
@ -20,7 +24,11 @@ add_library(plugin_transfer_auto_accept SHARED
./transfer_auto_accept.hpp ./transfer_auto_accept.hpp
./transfer_auto_accept.cpp ./transfer_auto_accept.cpp
) )
set_property(TARGET plugin_transfer_auto_accept PROPERTY C_VISIBILITY_PRESET hidden) set_target_properties(plugin_transfer_auto_accept PROPERTIES
C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
)
target_compile_definitions(plugin_transfer_auto_accept PUBLIC ENTT_API_IMPORT)
target_link_libraries(plugin_transfer_auto_accept PUBLIC target_link_libraries(plugin_transfer_auto_accept PUBLIC
solanaceae_plugin solanaceae_plugin

View File

@ -4,6 +4,9 @@
#include <solanaceae/ngc_ft1/ngcft1.hpp> #include <solanaceae/ngc_ft1/ngcft1.hpp>
#include <solanaceae/ngc_ft1_sha1/sha1_ngcft1.hpp> #include <solanaceae/ngc_ft1_sha1/sha1_ngcft1.hpp>
#include <entt/entt.hpp>
#include <entt/fwd.hpp>
#include <memory> #include <memory>
#include <iostream> #include <iostream>

View File

@ -3,6 +3,9 @@
#include "./transfer_auto_accept.hpp" #include "./transfer_auto_accept.hpp"
#include <solanaceae/util/config_model.hpp> #include <solanaceae/util/config_model.hpp>
#include <entt/entt.hpp>
#include <entt/fwd.hpp>
#include <memory> #include <memory>
#include <limits> #include <limits>
#include <iostream> #include <iostream>