Skip to content

Commit 4c1f178

Browse files
committed
Add qgis_gui.h with GUI_EXPORT macro
1 parent 0302719 commit 4c1f178

356 files changed

Lines changed: 369 additions & 8 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CMakeLists.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ ELSE (WIN32)
581581

582582
ENDIF(WIN32)
583583

584-
ADD_DEFINITIONS("-DGUI_EXPORT=${DLLIMPORT}")
585584
ADD_DEFINITIONS("-DPYTHON_EXPORT=${DLLIMPORT}")
586585
ADD_DEFINITIONS("-DANALYSIS_EXPORT=${DLLIMPORT}")
587586
ADD_DEFINITIONS("-DAPP_EXPORT=${DLLIMPORT}")

‎src/app/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ INCLUDE_DIRECTORIES(
525525
${CMAKE_CURRENT_BINARY_DIR}
526526
${CMAKE_CURRENT_BINARY_DIR}/../ui
527527
${CMAKE_BINARY_DIR}/src/core
528+
${CMAKE_BINARY_DIR}/src/gui
528529
)
529530
INCLUDE_DIRECTORIES(SYSTEM
530531
${QWT_INCLUDE_DIR}

‎src/auth/basic/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ INCLUDE_DIRECTORIES (
2020
../../core/auth
2121
../../core/geometry
2222
${CMAKE_BINARY_DIR}/src/core
23+
${CMAKE_BINARY_DIR}/src/gui
2324
)
2425
INCLUDE_DIRECTORIES (SYSTEM
2526
${QCA_INCLUDE_DIR}

‎src/auth/identcert/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ INCLUDE_DIRECTORIES (
2020
../../core/auth
2121
../../core/geometry
2222
${CMAKE_BINARY_DIR}/src/core
23+
${CMAKE_BINARY_DIR}/src/gui
2324
)
2425
INCLUDE_DIRECTORIES (SYSTEM
2526
${QCA_INCLUDE_DIR}

‎src/auth/pkipaths/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ INCLUDE_DIRECTORIES (
2020
../../core/auth
2121
../../core/geometry
2222
${CMAKE_BINARY_DIR}/src/core
23+
${CMAKE_BINARY_DIR}/src/gui
2324
)
2425
INCLUDE_DIRECTORIES (SYSTEM
2526
${QCA_INCLUDE_DIR}

‎src/auth/pkipkcs12/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ INCLUDE_DIRECTORIES (
2020
../../core/auth
2121
../../core/geometry
2222
${CMAKE_BINARY_DIR}/src/core
23+
${CMAKE_BINARY_DIR}/src/gui
2324
)
2425
INCLUDE_DIRECTORIES (SYSTEM
2526
${QCA_INCLUDE_DIR}

‎src/browser/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
6666
${CMAKE_CURRENT_BINARY_DIR}/../ui
6767
${CMAKE_CURRENT_BINARY_DIR}
6868
${CMAKE_BINARY_DIR}/src/core
69+
${CMAKE_BINARY_DIR}/src/gui
6970
)
7071
INCLUDE_DIRECTORIES(SYSTEM
7172
${GEOS_INCLUDE_DIR}

‎src/gui/CMakeLists.txt‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ INCLUDE_DIRECTORIES(
789789
${CMAKE_CURRENT_SOURCE_DIR}/layertree
790790
${CMAKE_CURRENT_SOURCE_DIR}/effects
791791
${CMAKE_BINARY_DIR}/src/core
792+
${CMAKE_BINARY_DIR}/src/gui
792793
../core
793794
../core/auth
794795
../core/composer
@@ -810,9 +811,6 @@ INCLUDE_DIRECTORIES(SYSTEM
810811
${GDAL_INCLUDE_DIR}
811812
)
812813

813-
REMOVE_DEFINITIONS("-DGUI_EXPORT=${DLLIMPORT}")
814-
ADD_DEFINITIONS("\"-DGUI_EXPORT=${DLLEXPORT}\"")
815-
816814
# disable deprecation warnings for classes re-exporting deprecated methods
817815
IF(MSVC)
818816
SET_SOURCE_FILES_PROPERTIES(
@@ -869,6 +867,14 @@ TARGET_LINK_LIBRARIES(qgis_gui
869867
${QSCINTILLA_LIBRARY}
870868
)
871869

870+
GENERATE_EXPORT_HEADER(
871+
qgis_gui
872+
BASE_NAME GUI
873+
EXPORT_FILE_NAME qgis_gui.h
874+
)
875+
876+
SET(QGIS_GUI_HDRS ${QGIS_GUI_HDRS} ${PROJECT_BINARY_DIR}/qgis_gui.h)
877+
872878
IF(WIN32)
873879
ADD_DEFINITIONS(-DQWT_DLL)
874880
ADD_DEFINITIONS(-DQSCINTILLA_DLL)

‎src/gui/attributetable/qgsattributetabledelegate.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#define QGSATTRIBUTETABLEDELEGATE_H
1818

1919
#include <QItemDelegate>
20+
#include "qgis_gui.h"
2021

2122
class QgsFeatureSelectionModel;
2223
class QPainter;

‎src/gui/attributetable/qgsattributetablefiltermodel.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include "qgsattributetablemodel.h"
2424
#include "qgsfeaturemodel.h"
25+
#include "qgis_gui.h"
2526

2627
class QgsVectorLayerCache;
2728
class QgsMapCanvas;

0 commit comments

Comments
 (0)