mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
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:
@@ -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 ---
|
||||
|
||||
8
src/utils/export-symbol-helper.hpp
Normal file
8
src/utils/export-symbol-helper.hpp
Normal 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
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user