File tree Expand file tree Collapse file tree
modules/mqtt_streaming_module
include/mqtt_streaming_module Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020#define BEGIN_NAMESPACE_OPENDAQ_MQTT_STREAMING_MODULE BEGIN_NAMESPACE_OPENDAQ_MODULE(mqtt_streaming_module)
2121#define END_NAMESPACE_OPENDAQ_MQTT_STREAMING_MODULE END_NAMESPACE_OPENDAQ_MODULE
2222
23- #if defined(_WIN32 )
24- #ifdef OPENDAQ_MODULE_DLL_IMPORT
25- #define DAQ_MQTT_STREAM_MODULE_API __declspec(dllexport)
23+ #if !defined(OPENDAQ_MQTT_ENABLE_TESTS )
24+ #define DAQ_MQTT_STREAM_MODULE_API
25+ #else
26+ #if defined(_WIN32 )
27+ #if defined(OPENDAQ_MODULE_DLL_IMPORT )
28+ #define DAQ_MQTT_STREAM_MODULE_API __declspec(dllimport)
29+ #else
30+ #define DAQ_MQTT_STREAM_MODULE_API __declspec(dllexport)
31+ #endif
2632 #else
27- #define DAQ_MQTT_STREAM_MODULE_API __declspec(dllimport )
33+ #define DAQ_MQTT_STREAM_MODULE_API __attribute__((visibility("default")) )
2834 #endif
29- #else
30- #define DAQ_MQTT_STREAM_MODULE_API
3135#endif
Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ add_library(${LIB_NAME} SHARED ${SRC_Include}
8484)
8585add_library (${SDK_TARGET_NAMESPACE} ::${LIB_NAME} ALIAS ${LIB_NAME} )
8686
87+ if (OPENDAQ_MQTT_ENABLE_TESTS)
88+ target_compile_definitions (${LIB_NAME}
89+ PRIVATE OPENDAQ_MQTT_ENABLE_TESTS
90+ )
91+ endif ()
92+
8793if (MSVC )
8894 target_compile_options (${LIB_NAME} PRIVATE /bigobj )
8995endif ()
You can’t perform that action at this time.
0 commit comments