parameters: (self, configuration, console=0, qt=0, opengl=0, python=0,
                   threaded=0, warnings=1, debug=0, dir=None,
                   makefile="Makefile", installs=None, universal=None,
                   arch=None)
docstring: Initialise an instance of the target.  All the macros are left
          unchanged allowing scripts to manipulate them at will.
  
          configuration is the current configuration.
          console is set if the target is a console (rather than windows) target.
          qt is set if the target uses Qt.  For Qt v4 a list of Qt libraries may
          be specified and a simple non-zero value implies QtCore and QtGui.
          opengl is set if the target uses OpenGL.
          python is set if the target #includes Python.h.
          debug is set to generated a debugging version of the target.
          threaded is set if the target requires thread support.  It is
          automatically set if the target uses Qt and Qt has thread support
          enabled.
          warnings is set if compiler warning messages are required.
          debug is set if debugging symbols should be generated.
          dir is the directory for build files and Makefiles.
          makefile is the name of the Makefile.
          installs is a list of extra install targets.  Each element is a two
          part list, the first of which is the source and the second is the
          destination.  If the source is another list then it is a set of source
          files and the destination is a directory.
          universal is the name of the SDK if the target is a MacOS/X universal
          binary.  If it is None then the value is taken from the configuration.
          arch is the space separated MacOS/X architectures to build.  If it is
          None then it is taken from the configuration.
docstring_summary: Initialise an instance of the target.  All the macros are left
          unchanged allowing scripts to manipulate them at will.
docstring_tokens: Initialise an instance of the target . All the macros are left unchanged allowing scripts to manipulate them at will .
function: def __init__(self, configuration, console=0, qt=0, opengl=0, python=0,
                   threaded=0, warnings=1, debug=0, dir=None,
                   makefile="Makefile", installs=None, universal=None,
                   arch=None):
          """Initialise an instance of the target.  All the macros are left
          unchanged allowing scripts to manipulate them at will.
  
          configuration is the current configuration.
          console is set if the target is a console (rather than windows) target.
          qt is set if the target uses Qt.  For Qt v4 a list of Qt libraries may
          be specified and a simple non-zero value implies QtCore and QtGui.
          opengl is set if the target uses OpenGL.
          python is set if the target #includes Python.h.
          debug is set to generated a debugging version of the target.
          threaded is set if the target requires thread support.  It is
          automatically set if the target uses Qt and Qt has thread support
          enabled.
          warnings is set if compiler warning messages are required.
          debug is set if debugging symbols should be generated.
          dir is the directory for build files and Makefiles.
          makefile is the name of the Makefile.
          installs is a list of extra install targets.  Each element is a two
          part list, the first of which is the source and the second is the
          destination.  If the source is another list then it is a set of source
          files and the destination is a directory.
          universal is the name of the SDK if the target is a MacOS/X universal
          binary.  If it is None then the value is taken from the configuration.
          arch is the space separated MacOS/X architectures to build.  If it is
          None then it is taken from the configuration.
          """
          if qt:
              if not hasattr(configuration, "qt_version"):
                  error("The target uses Qt but pyqtconfig has not been imported.")
  
              # For Qt v4 interpret Qt support as meaning link against the core
              # and GUI libraries (which corresponds to the default qmake
              # configuration).  Also allow a list of Qt v4 modules to be
              # specified.
              if configuration.qt_version >= 0x040000:
                  if type(qt) != list:
                      qt = ["QtCore", "QtGui"]
  
              self._threaded = configuration.qt_threaded
          else:
              self._threaded = threaded
  
          self.config = configuration
          self.console = console
          self._qt = qt
          self._opengl = opengl
          self._python = python
          self._warnings = warnings
          self._debug = debug
          self._makefile = makefile
          self._installs = installs
  
          # Make sure the destination directory is an absolute path.
          if dir:
              self.dir = os.path.abspath(dir)
          else:
              self.dir = os.path.curdir
  
          # Assume we are building in the source tree.
          self._src_dir = self.dir
  
          if universal is None:
              self._universal = configuration.universal
          else:
              self._universal = universal
  
          if arch is None:
              self._arch = configuration.arch
          else:
              self._arch = arch
  
          self._finalised = 0
  
          # Copy the macros and convert them all to instance lists.
          macros = configuration.build_macros()
  
          for m in list(macros.keys()):
              # Allow the user to override the default.
              try:
                  val = getattr(configuration, m)
              except AttributeError:
                  val = macros[m]
  
              # These require special handling as they are (potentially) a set of
              # space separated values rather than a single value that might
              # contain spaces.
              if m in ("DEFINES", "CONFIG") or m[:6] in ("INCDIR", "LIBDIR"):
                  val = val.split()
  
              # We also want to treat lists of libraries in the same way so that
              # duplicates get eliminated.
              if m[:4] == "LIBS":
                  val = val.split()
  
              self.__dict__[m] = _Macro(m, val)
  
          # This is used to alter the configuration more significantly than can
          # be done with just configuration files.
          self.generator = self.optional_string("MAKEFILE_GENERATOR", "UNIX")
  
          # These are what configuration scripts normally only need to change.
          self.extra_cflags = []
          self.extra_cxxflags = []
          self.extra_defines = []
          self.extra_include_dirs = []
          self.extra_lflags = []
          self.extra_lib_dirs = []
          self.extra_libs = []
  
          # Get these once and make them available to sub-classes.
          if sys.platform == "win32":
              def_copy = "copy"
              def_rm = "del"
              def_mkdir = "mkdir"
              def_chk_dir_exists = "if not exist"
          else:
              def_copy = "cp -f"
              def_rm = "rm -f"
              def_mkdir = "mkdir -p"
              def_chk_dir_exists = "test -d"
  
          self.copy = self.optional_string("COPY", def_copy)
          self.rm = self.optional_string("DEL_FILE", def_rm)
          self.mkdir = self.optional_string("MKDIR", def_mkdir)
          self.chkdir = self.optional_string("CHK_DIR_EXISTS", def_chk_dir_exists)
function_tokens: def __init__ ( self , configuration , console = 0 , qt = 0 , opengl = 0 , python = 0 , threaded = 0 , warnings = 1 , debug = 0 , dir = None , makefile = "Makefile" , installs = None , universal = None , arch = None ) : if qt : if not hasattr ( configuration , "qt_version" ) : error ( "The target uses Qt but pyqtconfig has not been imported." ) # For Qt v4 interpret Qt support as meaning link against the core # and GUI libraries (which corresponds to the default qmake # configuration).  Also allow a list of Qt v4 modules to be # specified. if configuration . qt_version >= 0x040000 : if type ( qt ) != list : qt = [ "QtCore" , "QtGui" ] self . _threaded = configuration . qt_threaded else : self . _threaded = threaded self . config = configuration self . console = console self . _qt = qt self . _opengl = opengl self . _python = python self . _warnings = warnings self . _debug = debug self . _makefile = makefile self . _installs = installs # Make sure the destination directory is an absolute path. if dir : self . dir = os . path . abspath ( dir ) else : self . dir = os . path . curdir # Assume we are building in the source tree. self . _src_dir = self . dir if universal is None : self . _universal = configuration . universal else : self . _universal = universal if arch is None : self . _arch = configuration . arch else : self . _arch = arch self . _finalised = 0 # Copy the macros and convert them all to instance lists. macros = configuration . build_macros ( ) for m in list ( macros . keys ( ) ) : # Allow the user to override the default. try : val = getattr ( configuration , m ) except AttributeError : val = macros [ m ] # These require special handling as they are (potentially) a set of # space separated values rather than a single value that might # contain spaces. if m in ( "DEFINES" , "CONFIG" ) or m [ : 6 ] in ( "INCDIR" , "LIBDIR" ) : val = val . split ( ) # We also want to treat lists of libraries in the same way so that # duplicates get eliminated. if m [ : 4 ] == "LIBS" : val = val . split ( ) self . __dict__ [ m ] = _Macro ( m , val ) # This is used to alter the configuration more significantly than can # be done with just configuration files. self . generator = self . optional_string ( "MAKEFILE_GENERATOR" , "UNIX" ) # These are what configuration scripts normally only need to change. self . extra_cflags = [ ] self . extra_cxxflags = [ ] self . extra_defines = [ ] self . extra_include_dirs = [ ] self . extra_lflags = [ ] self . extra_lib_dirs = [ ] self . extra_libs = [ ] # Get these once and make them available to sub-classes. if sys . platform == "win32" : def_copy = "copy" def_rm = "del" def_mkdir = "mkdir" def_chk_dir_exists = "if not exist" else : def_copy = "cp -f" def_rm = "rm -f" def_mkdir = "mkdir -p" def_chk_dir_exists = "test -d" self . copy = self . optional_string ( "COPY" , def_copy ) self . rm = self . optional_string ( "DEL_FILE" , def_rm ) self . mkdir = self . optional_string ( "MKDIR" , def_mkdir ) self . chkdir = self . optional_string ( "CHK_DIR_EXISTS" , def_chk_dir_exists )