plugin symbol visibility

This commit is contained in:
Green Sky 2024-05-19 11:44:37 +02:00
parent ecfaecd7f9
commit 466efc5da3
No known key found for this signature in database
3 changed files with 14 additions and 3 deletions

View File

@ -3,7 +3,10 @@ cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
add_library(plugin_zox_ngc SHARED add_library(plugin_zox_ngc SHARED
./plugin_zox_ngc.cpp ./plugin_zox_ngc.cpp
) )
set_property(TARGET plugin_zox_ngc PROPERTY C_VISIBILITY_PRESET hidden) set_target_properties(plugin_zox_ngc PROPERTIES
C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
)
target_link_libraries(plugin_zox_ngc PUBLIC target_link_libraries(plugin_zox_ngc PUBLIC
solanaceae_plugin solanaceae_plugin
@ -15,7 +18,12 @@ target_link_libraries(plugin_zox_ngc PUBLIC
add_library(plugin_zox_ngc_hs SHARED add_library(plugin_zox_ngc_hs SHARED
./plugin_zox_ngc_hs.cpp ./plugin_zox_ngc_hs.cpp
) )
set_property(TARGET plugin_zox_ngc_hs PROPERTY C_VISIBILITY_PRESET hidden)
set_target_properties(plugin_zox_ngc_hs PROPERTIES
C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
)
target_compile_definitions(plugin_zox_ngc_hs PUBLIC ENTT_API_IMPORT)
target_link_libraries(plugin_zox_ngc_hs PUBLIC target_link_libraries(plugin_zox_ngc_hs PUBLIC
solanaceae_plugin solanaceae_plugin

View File

@ -5,6 +5,9 @@
#include <solanaceae/toxcore/tox_interface.hpp> #include <solanaceae/toxcore/tox_interface.hpp>
#include <solanaceae/tox_contacts/tox_contact_model2.hpp> #include <solanaceae/tox_contacts/tox_contact_model2.hpp>
#include <entt/entt.hpp>
#include <entt/fwd.hpp>
#include <memory> #include <memory>
#include <iostream> #include <iostream>

View File

@ -1,10 +1,10 @@
#pragma once #pragma once
#include <cstdint>
#include <solanaceae/toxcore/tox_event_interface.hpp> #include <solanaceae/toxcore/tox_event_interface.hpp>
#include <solanaceae/util/event_provider.hpp> #include <solanaceae/util/event_provider.hpp>
#include <cstdint>
#include <array> #include <array>
#include <vector> #include <vector>