Skip to content

Commit

Permalink
Empty shell for linux native library
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 2, 2018
1 parent 11171a3 commit 882a0c4
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/CMakeLists.txt
Expand Up @@ -959,6 +959,9 @@ IF(NOT APPLE)
IF (WIN32 )
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/native/win)
ENDIF (WIN32)
IF (UNIX)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/native/linux)
ENDIF(UNIX)
INSTALL(FILES ${QGIS_GUI_HDRS} ${QGIS_GUI_MOC_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})
ELSE(NOT APPLE)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/native/mac)
Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgsgui.cpp
Expand Up @@ -27,6 +27,8 @@
#include "qgsmacnative.h"
#elif defined (Q_OS_WIN)
#include "qgswinnative.h"
#elif defined (Q_OS_LINUX)
#include "qgslinuxnative.h"
#else
#include "qgsnative.h"
#endif
Expand Down Expand Up @@ -116,6 +118,8 @@ QgsGui::QgsGui()
mNative = new QgsMacNative();
#elif defined (Q_OS_WIN)
mNative = new QgsWinNative();
#elif defined(Q_OS_LINUX)
mNative = new QgsLinuxNative();
#else
mNative = new QgsNative();
#endif
Expand Down
15 changes: 15 additions & 0 deletions src/native/CMakeLists.txt
Expand Up @@ -54,6 +54,15 @@ IF(WIN32)
)
ENDIF(WIN32)

IF(UNIX)
SET(QGIS_APP_WIN32_SRCS
linux/qgslinuxnative.cpp
)
SET(QGIS_NATIVE_SRCS ${QGIS_NATIVE_SRCS}
${QGIS_APP_LINUX_SRCS}
)
ENDIF(UNIX)

SET(QGIS_NATIVE_HDRS
qgsnative.h
)
Expand All @@ -73,6 +82,12 @@ IF(WIN32)
)
ENDIF(WIN32)

IF(UNIX)
SET (QGIS_NATIVE_HDRS ${QGIS_NATIVE_HDRS}
linux/qgslinuxnative.h
)
ENDIF(UNIX)

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
Expand Down
18 changes: 18 additions & 0 deletions src/native/linux/qgslinuxnative.cpp
@@ -0,0 +1,18 @@
/***************************************************************************
qgslinuxnative.h
-------------------
begin : July 2018
copyright : (C) 2018 by Nyall Dawson
email : nyall dot dawson at gmail dot com
***************************************************************************/

/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#include "qgslinuxnative.h"
28 changes: 28 additions & 0 deletions src/native/linux/qgslinuxnative.h
@@ -0,0 +1,28 @@
/***************************************************************************
qgslinuxnative.h
-------------------
begin : July 2018
copyright : (C) 2018 by Nyall Dawson
email : nyall dot dawson at gmail dot com
***************************************************************************/

/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#ifndef QGSLINUXNATIVE_H
#define QGSLINUXNATIVE_H

#include "qgsnative.h"

class NATIVE_EXPORT QgsLinuxNative : public QgsNative
{
public:
};

#endif // QGSLINUXNATIVE_H

0 comments on commit 882a0c4

Please sign in to comment.