Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved python support to a library, QGIS app now during the initializa…
…tion tries to load that library. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8530 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
wonder
committed
May 28, 2008
1 parent
c16313b
commit 54e5b00
Showing
8 changed files
with
87 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
|
||
SUBDIRS(core ui gui app providers plugins helpviewer) | ||
|
||
IF (HAVE_PYTHON AND WITH_BINDINGS) | ||
SUBDIRS(python) | ||
ENDIF (HAVE_PYTHON AND WITH_BINDINGS) | ||
|
||
IF (APPLE) | ||
SUBDIRS(mac) | ||
ENDIF(APPLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
SET(QGISPYTHON_SRCS qgispython.cpp qgspythonutilsimpl.cpp) | ||
|
||
INCLUDE_DIRECTORIES( | ||
../core | ||
../core/raster ../core/renderer ../core/symbology | ||
../gui | ||
${PYTHON_INCLUDE_PATH}) | ||
|
||
ADD_LIBRARY (qgispython SHARED ${QGISPYTHON_SRCS}) | ||
|
||
SET_TARGET_PROPERTIES(qgispython PROPERTIES | ||
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR} | ||
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}) | ||
|
||
|
||
TARGET_LINK_LIBRARIES(qgispython | ||
${QT_QTCORE_LIBRARY} | ||
${QT_QTGUI_LIBRARY} | ||
${PYTHON_LIBRARIES} | ||
) | ||
|
||
INSTALL(TARGETS qgispython | ||
RUNTIME DESTINATION ${QGIS_BIN_DIR} | ||
LIBRARY DESTINATION ${QGIS_LIB_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*************************************************************************** | ||
qgispython.cpp - python support in QGIS | ||
--------------------- | ||
begin : May 2008 | ||
copyright : (C) 2008 by Martin Dobias | ||
email : wonder.sk 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. * | ||
* * | ||
***************************************************************************/ | ||
/* $Id$ */ | ||
|
||
#include "qgis.h" | ||
#include "qgspythonutilsimpl.h" | ||
|
||
QGISEXTERN QgsPythonUtils* instance() | ||
{ | ||
return new QgsPythonUtilsImpl(); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters