You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
188 lines
5.7 KiB
188 lines
5.7 KiB
13 years ago
|
# Copyright (c) 2007
|
||
|
# Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||
|
#
|
||
13 years ago
|
# This file is part of PyTQt.
|
||
13 years ago
|
#
|
||
13 years ago
|
# This copy of PyTQt is free software; you can redistribute it and/or modify it
|
||
13 years ago
|
# under the terms of the GNU General Public License as published by the Free
|
||
|
# Software Foundation; either version 2, or (at your option) any later
|
||
|
# version.
|
||
|
#
|
||
13 years ago
|
# PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
|
||
13 years ago
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||
|
# details.
|
||
|
#
|
||
|
# You should have received a copy of the GNU General Public License along with
|
||
13 years ago
|
# PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
|
||
13 years ago
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
#
|
||
|
# This module is intended to be used by the configuration scripts of extension
|
||
13 years ago
|
# modules that %Import PyTQt modules.
|
||
13 years ago
|
|
||
|
|
||
3 years ago
|
import sip_tqt_config
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
# These are installation specific values created when PyTQt was configured.
|
||
13 years ago
|
# @SIP_CONFIGURATION@
|
||
|
|
||
|
|
||
3 years ago
|
class Configuration(sip_tqt_config.Configuration):
|
||
13 years ago
|
"""The class that represents PyTQt configuration values.
|
||
13 years ago
|
"""
|
||
|
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.
|
||
|
"""
|
||
|
if sub_cfg:
|
||
|
cfg = sub_cfg
|
||
|
else:
|
||
|
cfg = []
|
||
|
|
||
|
cfg.append(_pkg_config)
|
||
|
|
||
3 years ago
|
sip_tqt_config.Configuration.__init__(self, cfg)
|
||
13 years ago
|
|
||
|
|
||
3 years ago
|
class TQtModuleMakefile(sip_tqt_config.SIPModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqt.
|
||
13 years ago
|
"""
|
||
|
def __init__(self, *args, **kw):
|
||
|
"""Initialise an instance of a module Makefile.
|
||
|
"""
|
||
2 years ago
|
kw["tqt"] = 1
|
||
3 years ago
|
apply(sip_tqt_config.SIPModuleMakefile.__init__, (self, ) + args, kw)
|
||
13 years ago
|
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
|
# Note that we don't use self.extra_lib_dirs because we don't want
|
||
|
# it to be added to the rpath.
|
||
2 years ago
|
self.LIBDIR.append(self.config.pytqt_mod_dir)
|
||
|
self.extra_libs.append(self.module_as_lib("tqt"))
|
||
13 years ago
|
|
||
3 years ago
|
sip_tqt_config.SIPModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtAxContainerModuleMakefile(TQtModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqtaxcontainer.
|
||
13 years ago
|
"""
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqtaxcontainer"))
|
||
13 years ago
|
|
||
13 years ago
|
TQtModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtCanvasModuleMakefile(TQtModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqtcanvas.
|
||
13 years ago
|
"""
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqtcanvas"))
|
||
13 years ago
|
|
||
13 years ago
|
TQtModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtExtModuleMakefile(TQtModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqtext.
|
||
13 years ago
|
"""
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqtext"))
|
||
13 years ago
|
|
||
2 years ago
|
self.extra_defines.extend(self.config._pytqt_tqscintilla_defines)
|
||
|
self.extra_include_dirs.append(self.config._pytqt_tqscintilla_inc_dir)
|
||
|
self.extra_lib_dirs.append(self.config._pytqt_tqscintilla_lib_dir)
|
||
3 years ago
|
self.extra_libs.append("tqscintilla")
|
||
13 years ago
|
|
||
13 years ago
|
TQtModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtGLModuleMakefile(TQtModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqtgl.
|
||
13 years ago
|
"""
|
||
|
def __init__(self, *args, **kw):
|
||
|
"""Initialise an instance of a module Makefile.
|
||
|
"""
|
||
|
kw["opengl"] = 1
|
||
13 years ago
|
apply(TQtModuleMakefile.__init__, (self, ) + args, kw)
|
||
13 years ago
|
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqtgl"))
|
||
13 years ago
|
|
||
13 years ago
|
TQtModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtNetworkModuleMakefile(TQtModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqtnetwork.
|
||
13 years ago
|
"""
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqtnetwork"))
|
||
13 years ago
|
|
||
13 years ago
|
TQtModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtTableModuleMakefile(TQtModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqttable.
|
||
13 years ago
|
"""
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqttable"))
|
||
13 years ago
|
|
||
13 years ago
|
TQtModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtSQLModuleMakefile(TQtTableModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqtsql.
|
||
13 years ago
|
"""
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqtsql"))
|
||
13 years ago
|
|
||
13 years ago
|
TQtTableModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtUIModuleMakefile(TQtModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqtui.
|
||
13 years ago
|
"""
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqtui"))
|
||
13 years ago
|
|
||
13 years ago
|
TQtModuleMakefile.finalise(self)
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class TQtXMLModuleMakefile(TQtModuleMakefile):
|
||
2 years ago
|
"""The Makefile class for modules that %Import tqtxml.
|
||
13 years ago
|
"""
|
||
|
def finalise(self):
|
||
|
"""Finalise the macros.
|
||
|
"""
|
||
|
if self.config.sip_version < 0x040000:
|
||
2 years ago
|
self.extra_libs.append(self.module_as_lib("tqtxml"))
|
||
13 years ago
|
|
||
13 years ago
|
TQtModuleMakefile.finalise(self)
|