Example #1
0
 def __init__(self, config):
     BootstraperBase.__init__(self, config)
     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')
         if self.config.distro_version in [DistroVersion.OS_X_MOUNTAIN_LION,
                                           DistroVersion.OS_X_LION]:
             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.UBUNTU_PRECISE or \
             self.config.distro_version == DistroVersion.DEBIAN_SQUEEZE:
             # x264 requires yasm >= 1.0
             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')
     self.BUILD_TOOLS += self.config.extra_build_tools
Example #2
0
 def __init__(self, config, use_binaries=False, upload_binaries=False,
         build_missing=False, assume_yes=False, non_interactive=False):
     BootstraperBase.__init__(self, config, assume_yes, non_interactive)
     self.use_binaries = use_binaries
     self.upload_binaries = upload_binaries
     self.build_missing = build_missing
     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')
         if self.config.distro_version in [DistroVersion.OS_X_MOUNTAIN_LION,
                                           DistroVersion.OS_X_LION]:
             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.UBUNTU_PRECISE or \
             self.config.distro_version == DistroVersion.DEBIAN_SQUEEZE:
             # x264 requires yasm >= 1.0
             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.variants.doc:
         self.BUILD_TOOLS.append('gtk-doc')
     self.BUILD_TOOLS += self.config.extra_build_tools
Example #3
0
 def __init__(self, config):
     BootstraperBase.__init__(self, config)
     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')
         # We need tar with support for .xz in Snow Leopard
         if self.config.distro_version in [DistroVersion.OS_X_LION, DistroVersion.OS_X_SNOW_LEOPARD, DistroVersion.OS_X_LEOPARD]:
             self.BUILD_TOOLS.insert(0, 'xz')
             self.BUILD_TOOLS.insert(0, 'tar')
Example #4
0
 def __init__(self, config):
     BootstraperBase.__init__(self, config)
     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.target_platform == Platform.IOS:
         self.BUILD_TOOLS.append('gas-preprocessor')
     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')
Example #5
0
 def __init__(self,
              config,
              use_binaries=False,
              upload_binaries=False,
              build_missing=False,
              assume_yes=False,
              non_interactive=False):
     BootstraperBase.__init__(self, config, assume_yes, non_interactive)
     self.use_binaries = use_binaries
     self.upload_binaries = upload_binaries
     self.build_missing = build_missing
     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')
         if self.config.distro_version in [
                 DistroVersion.OS_X_MOUNTAIN_LION, DistroVersion.OS_X_LION
         ]:
             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.UBUNTU_PRECISE or \
             self.config.distro_version == DistroVersion.DEBIAN_SQUEEZE:
             # x264 requires yasm >= 1.0
             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.variants.doc:
         self.BUILD_TOOLS.append('gtk-doc')
     self.BUILD_TOOLS += self.config.extra_build_tools