示例#1
0
 def __init__(self, name='orange-pi-pc2'):
     SupportedDevice.__init__(self, name,
                              {'linux': ['libgles2-mesa-dev']},
                              utils.CompileInfo([], ['--disable-pulseaudio', '--disable-esd',
                                                     '--disable-video-opengl', '--disable-video-opengles1',
                                                     '--enable-video-opengles2',
                                                     '--disable-video-mir', '--disable-video-wayland',
                                                     '--disable-video-x11', '--disable-sdltest']),
                              utils.CompileInfo([], []))
示例#2
0
 def __init__(self, name):
     SupportedDevice.__init__(self, name, {'linux': ['libgl1-mesa-dev']},
                              utils.CompileInfo([],
                                                ['--host=arm-raspberry-linux-gnueabihf',
                                                 '--disable-pulseaudio', '--disable-esd',
                                                 '--disable-video-opengl', '--disable-video-opengles1',
                                                 '--enable-video-opengles2',
                                                 '--disable-video-mir', '--disable-video-wayland',
                                                 '--disable-video-x11', '--disable-sdltest']),
                              utils.CompileInfo([], ['--enable-mmal', '--enable-decoder=h264_mmal', '--enable-omx',
                                                     '--enable-omx-rpi']))
示例#3
0
 def __init__(self, name):
     SupportedDevice.__init__(self, name,
                              {'linux': ['libgles2-mesa-dev', 'libcedrus1-dev', 'libpixman-1-dev',
                                         'xserver-xorg-video-fbturbo', 'xserver-xorg-legacy'
                                         ]},
                              utils.CompileInfo(['patch/orange-pi/sdl2'],
                                                ['--disable-pulseaudio', '--disable-esd',
                                                 '--disable-video-opengl', '--disable-video-opengles1',
                                                 '--enable-video-opengles2',
                                                 '--disable-video-mir', '--disable-video-wayland',
                                                 '--disable-sdltest']),
                              utils.CompileInfo([], []))
     linux_libs = self.system_platform_libs_.get('linux')
     platform_name = system_info.get_os()
     linux_libs.extend(get_x11_libs(platform_name))
示例#4
0
文件: build_env.py 项目: wergy/iptv
 def build_gst_libav(self, version):
     compiler_flags = utils.CompileInfo([], ['--disable-debug'])
     self.build(
         '{0}gst-libav/gst-libav-{1}.{2}'.format(GST_LIBAV_SRC_ROOT,
                                                 version,
                                                 GST_LIBAV_ARCH_EXT),
         compiler_flags)
示例#5
0
文件: build_env.py 项目: wergy/iptv
 def build_gstreamer(self, version):
     compiler_flags = utils.CompileInfo([], ['--disable-debug'])
     self.build(
         '{0}gstreamer/gstreamer-{1}.{2}'.format(GSTREAMER_SRC_ROOT,
                                                 version,
                                                 GSTREAMER_ARCH_EXT),
         compiler_flags)
示例#6
0
文件: build_env.py 项目: wergy/iptv
 def build_glib(self, version):
     glib_version_short = version[:version.rfind('.')]
     compiler_flags = utils.CompileInfo([], [])
     utils.build_from_sources_autogen(
         '{0}/{1}/glib-{2}.{3}'.format(GLIB_SRC_ROOT, glib_version_short,
                                       version, GLIB_ARCH_EXT),
         compiler_flags, g_script_path, self.prefix_path_)
示例#7
0
 def __init__(self):
     SupportedDevice.__init__(
         self,
         'pc',
         {
             'linux': [
                 'libgl1-mesa-devel',
                 'libvdpau-devel',
                 'libva-devel',  # redhat
                 'libgl1-mesa-dev',
                 'libvdpau-dev',
                 'libva-dev',  # debian
             ]
         },
         utils.CompileInfo([], [
             '--disable-video-mir', '--disable-video-wayland',
             '--disable-sdltest'
         ]),
         utils.CompileInfo([], []))
示例#8
0
 def build_sdl2_image(self, version):
     compiler_flags = utils.CompileInfo([], [
         '--disable-svg', '--disable-sdltest', '--disable-bmp',
         '--disable-gif', '--disable-jpg', '--disable-lbm', '--disable-pcx',
         '--disable-pnm', '--disable-tga', '--disable-tif', '--disable-xcf',
         '--disable-xpm', '--disable-xv', '-disable-webp'
     ])
     self.build(
         '{0}SDL2_image-{1}.{2}'.format(SDL_IMAGE_SRC_ROOT, version,
                                        ARCH_SDL_EXT), compiler_flags)
示例#9
0
    def build_libev(self):
        libev_compiler_flags = utils.CompileInfo([], ['--with-pic', '--disable-shared', '--enable-static'])

        pwd = os.getcwd()
        cloned_dir = utils.git_clone('https://github.com/fastogt/libev.git', pwd)
        os.chdir(cloned_dir)

        autogen_libev = ['sh', 'autogen.sh']
        subprocess.call(autogen_libev)

        utils.build_command_configure(libev_compiler_flags, g_script_path, self.prefix_path_)
        os.chdir(pwd)
示例#10
0
 def build_openssl(self, prefix_path):
     abs_dir_path = self.build_dir_path_
     try:
         openssl_default_version = '1.1.0h'
         compiler_flags = utils.CompileInfo([], ['no-shared'])
         url = '{0}openssl-{1}.{2}'.format(OPENSSL_SRC_ROOT,
                                           openssl_default_version,
                                           ARCH_OPENSSL_EXT)
         utils.build_from_sources(url, compiler_flags, g_script_path,
                                  prefix_path, './config')
     except Exception as ex:
         os.chdir(abs_dir_path)
         raise ex
示例#11
0
    def build_jsonc(self):
        jsonc_compiler_flags = utils.CompileInfo(
            [], ['--disable-shared', '--enable-static'])

        pwd = os.getcwd()
        cloned_dir = utils.git_clone('https://github.com/fastogt/json-c.git',
                                     pwd)
        os.chdir(cloned_dir)

        autogen_jsonc = ['sh', 'autogen.sh']
        subprocess.call(autogen_jsonc)

        utils.build_command_configure(jsonc_compiler_flags, g_script_path,
                                      self.prefix_path_)
        os.chdir(pwd)
        shutil.rmtree(cloned_dir)
示例#12
0
    def build_libev(self, prefix_path):
        libev_compiler_flags = utils.CompileInfo(
            [], ['--with-pic', '--disable-shared', '--enable-static'])

        pwd = os.getcwd()
        cloned_dir = utils.git_clone('https://github.com/fastogt/libev.git',
                                     pwd)
        os.chdir(cloned_dir)

        autogen_policy = run_command.CommonPolicy(print_message)
        autogen_libev = ['sh', 'autogen.sh']
        run_command.run_command_cb(autogen_libev, autogen_policy)

        utils.build_command_configure(libev_compiler_flags, g_script_path,
                                      prefix_path)
        os.chdir(pwd)
        shutil.rmtree(cloned_dir)
示例#13
0
文件: build_env.py 项目: wergy/iptv
 def build_gst_plugins_ugly(self, version):
     compiler_flags = utils.CompileInfo([], ['--disable-debug'])
     self.build(
         '{0}gst-plugins-ugly/gst-plugins-ugly-{1}.{2}'.format(
             GST_PLUGINS_UGLY_SRC_ROOT, version, GST_PLUGINS_UGLY_ARCH_EXT),
         compiler_flags)
示例#14
0
 def build_openssl(self, version):
     compiler_flags = utils.CompileInfo([], ['no-shared', 'no-unit-test'])
     url = '{0}openssl-{1}.{2}'.format(OPENSSL_SRC_ROOT, version, ARCH_OPENSSL_EXT)
     self.build(url, compiler_flags, './config')
示例#15
0
 def build_sdl2_ttf(self, version):
     compiler_flags = utils.CompileInfo([], ['--disable-sdltest'])
     self.build('{0}SDL2_ttf-{1}.{2}'.format(SDL_TTF_SRC_ROOT, version, ARCH_SDL_EXT), compiler_flags)