File tree Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Original file line number Diff line number Diff line change @@ -959,6 +959,9 @@ IF(NOT APPLE)
959
959
IF (WIN32 )
960
960
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR} /src/native/win )
961
961
ENDIF (WIN32 )
962
+ IF (UNIX )
963
+ INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR} /src/native/linux )
964
+ ENDIF (UNIX )
962
965
INSTALL (FILES ${QGIS_GUI_HDRS} ${QGIS_GUI_MOC_HDRS} DESTINATION ${QGIS_INCLUDE_DIR} )
963
966
ELSE (NOT APPLE )
964
967
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR} /src/native/mac )
Original file line number Diff line number Diff line change 27
27
#include " qgsmacnative.h"
28
28
#elif defined (Q_OS_WIN)
29
29
#include " qgswinnative.h"
30
+ #elif defined (Q_OS_LINUX)
31
+ #include " qgslinuxnative.h"
30
32
#else
31
33
#include " qgsnative.h"
32
34
#endif
@@ -116,6 +118,8 @@ QgsGui::QgsGui()
116
118
mNative = new QgsMacNative ();
117
119
#elif defined (Q_OS_WIN)
118
120
mNative = new QgsWinNative ();
121
+ #elif defined(Q_OS_LINUX)
122
+ mNative = new QgsLinuxNative ();
119
123
#else
120
124
mNative = new QgsNative ();
121
125
#endif
Original file line number Diff line number Diff line change @@ -54,6 +54,15 @@ IF(WIN32)
54
54
)
55
55
ENDIF (WIN32 )
56
56
57
+ IF (UNIX )
58
+ SET (QGIS_APP_WIN32_SRCS
59
+ linux/qgslinuxnative.cpp
60
+ )
61
+ SET (QGIS_NATIVE_SRCS ${QGIS_NATIVE_SRCS}
62
+ ${QGIS_APP_LINUX_SRCS}
63
+ )
64
+ ENDIF (UNIX )
65
+
57
66
SET (QGIS_NATIVE_HDRS
58
67
qgsnative.h
59
68
)
@@ -73,6 +82,12 @@ IF(WIN32)
73
82
)
74
83
ENDIF (WIN32 )
75
84
85
+ IF (UNIX )
86
+ SET (QGIS_NATIVE_HDRS ${QGIS_NATIVE_HDRS}
87
+ linux/qgslinuxnative.h
88
+ )
89
+ ENDIF (UNIX )
90
+
76
91
INCLUDE_DIRECTORIES (
77
92
${CMAKE_CURRENT_SOURCE_DIR}
78
93
${CMAKE_CURRENT_BINARY_DIR}
Original file line number Diff line number Diff line change
1
+ /* **************************************************************************
2
+ qgslinuxnative.h
3
+ -------------------
4
+ begin : July 2018
5
+ copyright : (C) 2018 by Nyall Dawson
6
+ email : nyall dot dawson at gmail dot com
7
+ ***************************************************************************/
8
+
9
+ /* **************************************************************************
10
+ * *
11
+ * This program is free software; you can redistribute it and/or modify *
12
+ * it under the terms of the GNU General Public License as published by *
13
+ * the Free Software Foundation; either version 2 of the License, or *
14
+ * (at your option) any later version. *
15
+ * *
16
+ ***************************************************************************/
17
+
18
+ #include " qgslinuxnative.h"
Original file line number Diff line number Diff line change
1
+ /* **************************************************************************
2
+ qgslinuxnative.h
3
+ -------------------
4
+ begin : July 2018
5
+ copyright : (C) 2018 by Nyall Dawson
6
+ email : nyall dot dawson at gmail dot com
7
+ ***************************************************************************/
8
+
9
+ /* **************************************************************************
10
+ * *
11
+ * This program is free software; you can redistribute it and/or modify *
12
+ * it under the terms of the GNU General Public License as published by *
13
+ * the Free Software Foundation; either version 2 of the License, or *
14
+ * (at your option) any later version. *
15
+ * *
16
+ ***************************************************************************/
17
+
18
+ #ifndef QGSLINUXNATIVE_H
19
+ #define QGSLINUXNATIVE_H
20
+
21
+ #include " qgsnative.h"
22
+
23
+ class NATIVE_EXPORT QgsLinuxNative : public QgsNative
24
+ {
25
+ public:
26
+ };
27
+
28
+ #endif // QGSLINUXNATIVE_H
You can’t perform that action at this time.
0 commit comments