Skip to content
Permalink
Browse files

Empty shell for linux native library

  • Loading branch information
nyalldawson committed Aug 2, 2018
1 parent 11171a3 commit 882a0c43d452bce44f531c305ae47cb5439d296b
@@ -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)
@@ -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
@@ -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
@@ -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
)
@@ -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}
@@ -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"
@@ -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.
You can’t perform that action at this time.