示例#1
0
    def get_options(self):
        """ Return the sequence of configurable options. """

        tools = ['build', 'install', 'sdist', 'wheel']

        # Get the standard options.
        options = super().get_options()

        # Add our new options.
        inc_dir_option = Option('foo_include_dir',
                                help="the directory containing foo.h",
                                metavar="DIR",
                                default=os.path.abspath('foo'),
                                tools=tools)
        options.append(inc_dir_option)

        lib_dir_option = Option(
            'foo_library_dir',
            help="the directory containing the foo library",
            metavar="DIR",
            default=os.path.abspath('foo/bin'),
            tools=tools)
        options.append(lib_dir_option)

        return options
示例#2
0
    def get_options(self):
        """ Return the sequence of configurable options. """

        # Get the standard options.
        options = super().get_options()

        # Add our new options.
        options.append(
            Option('jobs',
                   option_type=int,
                   help="run N make jobs in parallel",
                   metavar='N'))

        options.append(
            Option('make',
                   option_type=bool,
                   inverted=True,
                   help="do not run make or nmake",
                   tools=['build']))

        options.append(
            Option('qmake',
                   help="the pathname of qmake is FILE",
                   metavar="FILE"))

        options.append(
            Option('qmake_settings',
                   option_type=list,
                   help="add the 'NAME += VALUE' setting to any .pro file",
                   metavar="'NAME += VALUE'"))

        options.append(
            Option('spec', help="pass -spec SPEC to qmake", metavar="SPEC"))

        return options
示例#3
0
    def get_options(self):
        """ Return the list of configurable options. """

        options = super().get_options()

        if self.project.qsci_external_lib:
            # The directory containing the features file.
            options.append(
                Option('qsci_features_dir',
                       help="the qscintilla2.prf features file is in DIR",
                       metavar="DIR"))

            # The directory containing the include directory.
            options.append(
                Option('qsci_include_dir',
                       help="the Qsci include file directory is in DIR",
                       metavar="DIR"))

            # The directory containing the library.
            options.append(
                Option('qsci_library_dir',
                       help="the QScintilla library is in DIR",
                       metavar="DIR"))

        return options
示例#4
0
    def get_options(self):
        """Our custom options that a user can pass to sip-build."""
        options = super().get_options()

        options += [
            Option('qt_incdir', help='Path to Qt headers', metavar='DIR'),
            Option('qt_libdir',
                   help='Path to Qt library dir (used at link time)',
                   metavar='DIR'),
        ]
        return options
示例#5
0
 def get_options(self):
     options = super().get_options()
     inc_dir_option = Option('poppler_include_dir',
                             help="the directory containing qt5/poppler.h",
                             metavar="DIR")
     options.append(inc_dir_option)
     lib_dir_option = Option(
         'poppler_library_dir',
         help="the directory containing the poppler library",
         metavar="DIR")
     options.append(lib_dir_option)
     return options
示例#6
0
    def get_options(self):
        """ Return the sequence of configurable options. """

        # Get the standard options.
        options = super().get_options()

        # Add our new options.
        options.append(
            Option('confirm_license',
                   option_type=bool,
                   help="confirm acceptance of the license"))

        options.append(
            Option('license_dir',
                   option_type=str,
                   help="the license file can be found in DIR",
                   metavar="DIR"))

        options.append(
            Option('qt_shared',
                   option_type=bool,
                   help="assume Qt has been built as shared libraries"))

        options.append(
            Option(
                'designer_plugin',
                option_type=bool,
                inverted=True,
                help="disable the building of the Python plugin for Qt Designer"
            ))

        options.append(
            Option(
                'qml_plugin',
                option_type=bool,
                inverted=True,
                help="disable the building of the Python plugin for qmlscene"))

        options.append(
            Option('dbus',
                   option_type=str,
                   help="the directory containing the dbus/dbus-python.h file",
                   metavar="DIR"))

        options.append(
            Option('dbus_python',
                   option_type=bool,
                   inverted=True,
                   help="disable the Qt support for the dbus-python package"))

        options.append(
            Option(
                'tools',
                option_type=bool,
                inverted=True,
                help="disable the building of pyuic5, pyrcc5 and pylupdate5"))

        return options
示例#7
0
 def get_options(self):
     """ Return the list of configurable options. """
     options = super().get_options()
     options.append(
             Option('include_dirs', option_type=list,
                     help="additional directory to search for .sip files",
                     metavar="DIR"))
     return options
示例#8
0
 def get_options(self):
     """Our custom options that a user can pass to sip-build."""
     options = super().get_options()
     options.append(
         Option('poppler_version',
                help='version of the poppler library',
                metavar='VERSION'))
     return options
示例#9
0
    def get_options(self):
        """ Return the list of configurable options. """

        options = super().get_options()

        # The directory containing the target Python interpreter library.
        options.append(Option('py_pylib_dir'))

        # The name of the target Python interpreter library.
        options.append(Option('py_pylib_lib'))

        # The name of the target Python interpreter library if it is a shared
        # library.
        options.append(Option('py_pylib_shlib'))

        # The prefix of the version tag to use (with the Qt version
        # automatically appended).  By default the meta-data name is used with
        # any leading 'Py' removed.
        options.append(Option('tag_prefix'))

        # The name of the directory, relative to the project directory,
        # containing any external test programs.
        options.append(Option('tests_dir', default='config-tests'))

        # The user options.
        options.append(
            Option('android_abis',
                   option_type=list,
                   help="the target Android ABI",
                   metavar="ABI"))

        options.append(
            Option('link_full_dll',
                   option_type=bool,
                   help="on Windows link against the full Python DLL "
                   "rather than the limited API DLL"))

        options.append(
            Option('qml_debug',
                   option_type=bool,
                   help="enable the QML debugging infrastructure"))

        options.append(
            Option(
                'target_qt_dir',
                help="the Qt libraries will be found in DIR when the wheel is "
                "installed",
                metavar="DIR",
                tools=['wheel']))

        return options
示例#10
0
    def get_options(self):
        """ Return the sequence of configurable options. """

        # Get the standard options.
        options = Project.get_options(self)

        # Add our new options.
        self.inc_dir_option = Option('hello-sip-include-dir',
                help="the directory containing helloSip.h", metavar="DIR")
        options.append(self.inc_dir_option)

        self.lib_dir_option = Option('hello-sip-library-dir',
                help="the directory containing the helloSip library",
                metavar="DIR")
        options.append(self.lib_dir_option)

        return options
示例#11
0
 def get_options(self):
     """Our custom options that a user can pass to sip-build."""
     options = super().get_options()
     options += [
         Option('qwt_incdir',
                help='the directory containing the Qwt header file',
                metavar='DIR'),
         Option('qwt_featuresdir',
                help='the directory containing the qwt.prf features file',
                metavar='DIR'),
         Option('qwt_libdir',
                help='the directory containing the Qwt library',
                metavar='DIR'),
         Option('qwt_lib',
                help='the Qwt library',
                metavar='LIB',
                default='qwt'),
     ]
     return options
    def get_options(self):
        """ Return the sequence of configurable options. """

        # Get the standard options.
        options = super().get_options()

        # Add our new option.
        options.append(Option('platform'))

        return options
示例#13
0
    def get_options(self):
        """ Return the list of configurable options. """

        options = super().get_options()

        # The directory within the wheel to install the translation files to.
        options.append(
                Option('qsci_translations_dir',
                        help="the QScintilla translation files will be installed in DIR",
                        metavar="DIR", tools=['wheel']))

        return options
示例#14
0
    def get_options(self):
        """ Return the list of configurable options. """

        options = super().get_options()

        # The list of modifications to make to the CONFIG value in a .pro file.
        # An element may start with '-' to specify that the value should be
        # removed.
        options.append(Option('qmake_CONFIG', option_type=list))

        # The list of modifications to make to the QT value in a .pro file.  An
        # element may start with '-' to specify that the value should be
        # removed.
        options.append(Option('qmake_QT', option_type=list))

        # The list of header files to #include in any internal test program.
        options.append(Option('test_headers', option_type=list))

        # The statement to execute in any internal test program.
        options.append(Option('test_statement'))

        return options