Exemplo n.º 1
0
    def __init__(self, config, offline):
        BootstrapperBase.__init__(self, config, offline)

        if self.config.platform == Platform.WINDOWS:
            self.BUILD_TOOLS.remove('m4')
            self.BUILD_TOOLS.append('gperf')
        if self.config.platform == Platform.DARWIN:
            self.BUILD_TOOLS.append('gperf')
            self.BUILD_TOOLS.append('cmake')
        if self.config.platform == Platform.LINUX:
            # dav1d requires nasm >=2.13.02
            # We require cmake 3.10 for out-of-source-tree builds.
            # RHEL 8, Ubuntu 18.04, and Debian Buster are fine.
            if self.config.distro_version in (DistroVersion.REDHAT_6,
                                              DistroVersion.REDHAT_7,
                                              DistroVersion.AMAZON_LINUX,
                                              DistroVersion.UBUNTU_XENIAL,
                                              DistroVersion.DEBIAN_STRETCH):
                self.BUILD_TOOLS.append('cmake')
                self.BUILD_TOOLS.append('nasm')
        if self.config.target_platform == Platform.IOS:
            self.BUILD_TOOLS.append('gas-preprocessor')
        if self.config.target_platform != Platform.LINUX and not \
           self.config.prefix_is_executable():
            # For glib-mkenums and glib-genmarshal
            self.BUILD_TOOLS.append('glib-tools')
        self.BUILD_TOOLS += self.config.extra_build_tools

        self._setup_env()
Exemplo n.º 2
0
    def __init__(self, config, offline):
        BootstrapperBase.__init__(self, config, offline)

        if self.config.target_platform in (Platform.IOS, Platform.WINDOWS):
            # Used by ffmpeg and x264 on iOS, and by openn264 on Windows-ARM64
            self.BUILD_TOOLS.append('gas-preprocessor')

        if self.config.platform == Platform.WINDOWS:
            # We must not run automake/autoconf/libtoolize when building on
            # windows because they hang on the Windows CI runner
            self.BUILD_TOOLS.remove('gettext-m4')
            self.BUILD_TOOLS.remove('automake')
            self.BUILD_TOOLS.remove('autoconf')
            self.BUILD_TOOLS.remove('libtool')

        if self.config.variants.uwp:
            # UWP config does not build any autotools recipes
            self.PLAT_BUILD_TOOLS[Platform.WINDOWS].remove('intltool')
            self.PLAT_BUILD_TOOLS[Platform.WINDOWS].remove('gperf')

        if self.config.target_platform != Platform.LINUX and not \
           self.config.prefix_is_executable():
            # For glib-mkenums and glib-genmarshal
            self.BUILD_TOOLS.append('glib-tools')
        self.BUILD_TOOLS += self.config.extra_build_tools
        self._setup_env()
    def __init__(self, config):
        BootstrapperBase.__init__(self, config)

        # if cross-compiling or not on linux, make sure we have gtk-doc
        if self.config.target_platform != Platform.LINUX or\
           not self.config.prefix_is_executable():
            self.BUILD_TOOLS.append('gtk-doc-lite')

        if self.config.platform == Platform.WINDOWS:
            self.BUILD_TOOLS.remove('m4')
            self.BUILD_TOOLS.append('gperf')
        if self.config.platform == Platform.DARWIN:
            self.BUILD_TOOLS.append('gperf')
            self.BUILD_TOOLS.insert(0, 'tar')
            self.BUILD_TOOLS.insert(0, 'xz')
        if self.config.platform == Platform.LINUX:
            if self.config.distro_version == DistroVersion.UBUNTU_LUCID or \
                self.config.distro_version == DistroVersion.DEBIAN_SQUEEZE or \
                self.config.distro_version == DistroVersion.DEBIAN_WHEEZY:
                # x264 requires yasm >= 1.2
                self.BUILD_TOOLS.append('yasm')
            if self.config.distro_version in [DistroVersion.REDHAT_6]:
                self.BUILD_TOOLS.append('cmake')
        if self.config.target_platform == Platform.LINUX:
            self.BUILD_TOOLS.append('app-image-kit')
        if self.config.target_platform == Platform.IOS:
            self.BUILD_TOOLS.append('gas-preprocessor')
        if self.config.distro_version in [DistroVersion.UBUNTU_LUCID,
                                          DistroVersion.UBUNTU_NATTY]:
            self.BUILD_TOOLS.append('glib-tools')
        if self.config.platform != Platform.LINUX and\
                not self.config.prefix_is_executable():
            # For glib-mkenums and glib-genmarshal
            self.BUILD_TOOLS.append('glib-tools')
        self.BUILD_TOOLS += self.config.extra_build_tools
Exemplo n.º 4
0
    def __init__(self, config, offline):
        BootstrapperBase.__init__(self, config, offline)

        if self.config.platform == Platform.WINDOWS:
            self.BUILD_TOOLS.remove('m4')
            self.BUILD_TOOLS.append('gperf')
        if self.config.platform == Platform.DARWIN:
            self.BUILD_TOOLS.append('gperf')
            self.BUILD_TOOLS.append('cmake')
        if self.config.platform == Platform.LINUX:
            if self.config.distro_version == DistroVersion.UBUNTU_LUCID or \
                self.config.distro_version == DistroVersion.DEBIAN_SQUEEZE or \
                self.config.distro_version == DistroVersion.DEBIAN_WHEEZY:
                # x264 requires yasm >= 1.2
                self.BUILD_TOOLS.append('yasm')
            if self.config.distro_version in [DistroVersion.REDHAT_6,
                                              DistroVersion.AMAZON_LINUX]:
                self.BUILD_TOOLS.append('cmake')
        if self.config.target_platform == Platform.IOS:
            self.BUILD_TOOLS.append('gas-preprocessor')
        if self.config.distro_version in [DistroVersion.UBUNTU_LUCID,
                                          DistroVersion.UBUNTU_NATTY]:
            self.BUILD_TOOLS.append('glib-tools')
        if self.config.target_platform != Platform.LINUX and not \
           self.config.prefix_is_executable():
            # For glib-mkenums and glib-genmarshal
            self.BUILD_TOOLS.append('glib-tools')
        self.BUILD_TOOLS += self.config.extra_build_tools
Exemplo n.º 5
0
    def __init__(self, config):
        BootstrapperBase.__init__(self, config)

        # if cross-compiling or not on linux, make sure we have gtk-doc
        if self.config.target_platform != Platform.LINUX or\
           self.config.cross_compiling():
            self.BUILD_TOOLS.append('gtk-doc-lite')

        if self.config.platform == Platform.WINDOWS:
            self.BUILD_TOOLS.remove('m4')
            self.BUILD_TOOLS.append('gperf')
        if self.config.platform == Platform.DARWIN:
            self.BUILD_TOOLS.append('gperf')
            self.BUILD_TOOLS.insert(0, 'xz')
        if self.config.platform == Platform.LINUX:
            if self.config.distro_version == DistroVersion.UBUNTU_LUCID or \
                self.config.distro_version == DistroVersion.DEBIAN_SQUEEZE or \
                self.config.distro_version == DistroVersion.DEBIAN_WHEEZY:
                # x264 requires yasm >= 1.2
                self.BUILD_TOOLS.append('yasm')
            if self.config.distro_version in [DistroVersion.REDHAT_6]:
                self.BUILD_TOOLS.append('cmake')
        if self.config.target_platform == Platform.IOS:
            self.BUILD_TOOLS.append('gas-preprocessor')
        if self.config.distro_version in [
                DistroVersion.UBUNTU_LUCID, DistroVersion.UBUNTU_NATTY
        ]:
            self.BUILD_TOOLS.append('glib-tools')
        if self.config.platform != Platform.LINUX and not \
           self.config.prefix_is_executable():
            # For glib-mkenums and glib-genmarshal
            self.BUILD_TOOLS.append('glib-tools')
        if self.config.target_platform == Platform.ANDROID:
            self.BUILD_TOOLS.append('android-sdk')
        self.BUILD_TOOLS += self.config.extra_build_tools
Exemplo n.º 6
0
    def __init__(self, config, offline):
        BootstrapperBase.__init__(self, config, offline)

        if self.config.target_platform in (Platform.IOS, Platform.WINDOWS):
            # Used by ffmpeg and x264 on iOS, and by openn264 on Windows-ARM64
            self.BUILD_TOOLS.append('gas-preprocessor')
        if self.config.target_platform != Platform.LINUX and not \
           self.config.prefix_is_executable():
            # For glib-mkenums and glib-genmarshal
            self.BUILD_TOOLS.append('glib-tools')
        self.BUILD_TOOLS += self.config.extra_build_tools
        self._setup_env()
Exemplo n.º 7
0
 def __init__(self, config, offline, assume_yes):
     BootstrapperBase.__init__(self, config, offline)
     self.assume_yes = assume_yes