Export ItemSelection and ItemSettingsDialog widget symbols

This is done to be able to support use of these widgets in plugins.
This commit is contained in:
WarmUpTill
2023-08-12 15:32:18 +02:00
committed by WarmUpTill
parent a2d0a7f544
commit 49e8bf7639
3 changed files with 14 additions and 2 deletions

View File

@@ -254,6 +254,7 @@ target_sources(
src/utils/curl-helper.hpp
src/utils/duration-control.cpp
src/utils/duration-control.hpp
src/utils/export-symbol-helper.hpp
src/utils/item-selection-helpers.cpp
src/utils/item-selection-helpers.hpp
src/utils/log-helper.hpp
@@ -375,6 +376,8 @@ target_include_directories(
"${CMAKE_CURRENT_SOURCE_DIR}/deps/obs-websocket/lib"
"${CMAKE_CURRENT_SOURCE_DIR}/deps/exprtk")
target_compile_definitions(${LIB_NAME} PRIVATE ADVSS_EXPORT_SYMBOLS=1)
# --- End of section ---
# --- Windows-specific build settings and tasks ---

View File

@@ -0,0 +1,8 @@
#pragma once
// Helpers helper to enable exporting and importing custom Qt widget symbols
#ifdef ADVSS_EXPORT_SYMBOLS
#define ADVSS_EXPORT Q_DECL_EXPORT
#else
#define ADVSS_EXPORT Q_DECL_IMPORT
#endif

View File

@@ -1,5 +1,6 @@
#pragma once
#include "filter-combo-box.hpp"
#include "export-symbol-helper.hpp"
#include <QPushButton>
#include <QDialog>
@@ -11,8 +12,8 @@
namespace advss {
class ItemSelection;
class ItemSettingsDialog;
class ADVSS_EXPORT ItemSelection;
class ADVSS_EXPORT ItemSettingsDialog;
class Item {
public: