Skip to content

Commit 882a0c4

Browse files
committed
Empty shell for linux native library
1 parent 11171a3 commit 882a0c4

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

src/gui/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,9 @@ IF(NOT APPLE)
959959
IF (WIN32 )
960960
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/native/win)
961961
ENDIF (WIN32)
962+
IF (UNIX)
963+
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/native/linux)
964+
ENDIF(UNIX)
962965
INSTALL(FILES ${QGIS_GUI_HDRS} ${QGIS_GUI_MOC_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})
963966
ELSE(NOT APPLE)
964967
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/native/mac)

src/gui/qgsgui.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include "qgsmacnative.h"
2828
#elif defined (Q_OS_WIN)
2929
#include "qgswinnative.h"
30+
#elif defined (Q_OS_LINUX)
31+
#include "qgslinuxnative.h"
3032
#else
3133
#include "qgsnative.h"
3234
#endif
@@ -116,6 +118,8 @@ QgsGui::QgsGui()
116118
mNative = new QgsMacNative();
117119
#elif defined (Q_OS_WIN)
118120
mNative = new QgsWinNative();
121+
#elif defined(Q_OS_LINUX)
122+
mNative = new QgsLinuxNative();
119123
#else
120124
mNative = new QgsNative();
121125
#endif

src/native/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ IF(WIN32)
5454
)
5555
ENDIF(WIN32)
5656

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+
5766
SET(QGIS_NATIVE_HDRS
5867
qgsnative.h
5968
)
@@ -73,6 +82,12 @@ IF(WIN32)
7382
)
7483
ENDIF(WIN32)
7584

85+
IF(UNIX)
86+
SET (QGIS_NATIVE_HDRS ${QGIS_NATIVE_HDRS}
87+
linux/qgslinuxnative.h
88+
)
89+
ENDIF(UNIX)
90+
7691
INCLUDE_DIRECTORIES(
7792
${CMAKE_CURRENT_SOURCE_DIR}
7893
${CMAKE_CURRENT_BINARY_DIR}

src/native/linux/qgslinuxnative.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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"

src/native/linux/qgslinuxnative.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)