mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
import PyQt4.pyqtconfig
|
|
|
|
# These are installation specific values created when QGIS was configured.
|
|
# The following line will be replaced when this template is used to create
|
|
# the final configuration module.
|
|
# @SIP_CONFIGURATION@
|
|
|
|
class Configuration(pyqtconfig.Configuration):
|
|
"""The class that represents QGIS configuration values.
|
|
"""
|
|
def __init__(self, sub_cfg=None):
|
|
"""Initialise an instance of the class.
|
|
|
|
sub_cfg is the list of sub-class configurations. It should be None
|
|
when called normally.
|
|
"""
|
|
# This is all standard code to be copied verbatim except for the
|
|
# name of the module containing the super-class.
|
|
if sub_cfg:
|
|
cfg = sub_cfg
|
|
else:
|
|
cfg = []
|
|
|
|
cfg.append(_pkg_config)
|
|
|
|
pyqtconfig.Configuration.__init__(self, cfg)
|
|
|
|
class QgisModuleMakefile(pyqtconfig.QtModuleMakefile):
|
|
"""The Makefile class for modules that %Import qgis_core.
|
|
"""
|
|
def finalise(self):
|
|
"""Finalise the macros.
|
|
"""
|
|
# Make sure our C++ library is linked.
|
|
self.extra_libs.append("qgis_core")
|
|
self.extra_libs.append("qgis_gui")
|
|
|
|
# Let the super-class do what it needs to.
|
|
pyqtconfig.QtModuleMakefile.finalise(self)
|