def build_ffmpeg(self): ffmpeg_platform_args = ['--disable-doc', '--pkg-config-flags=--static', '--disable-programs', '--enable-openssl', '--disable-opencl', '--disable-encoders', '--disable-lzma', '--disable-iconv', '--disable-shared', '--enable-static', '--disable-debug', '--disable-jni', '--enable-postproc', '--enable-filter=yadif', '--enable-avfilter', '--enable-avcodec', '--enable-avdevice', '--enable-avformat', '--enable-swscale', '--enable-swresample', '--extra-version=static'] # '--extra-cflags=--static' platform_name = self.platform_.name() if platform_name == 'linux': ffmpeg_platform_args.extend(['--disable-libxcb']) elif platform_name == 'windows': ffmpeg_platform_args = ffmpeg_platform_args elif platform_name == 'macosx': ffmpeg_platform_args.extend(['--cc=clang', '--cxx=clang++', '--disable-libxcb']) pwd = os.getcwd() compiler_flags = self.device_.ffmpeg_compile_info() compiler_flags.extend_flags(ffmpeg_platform_args) cloned_dir = utils.git_clone('https://github.com/fastogt/ffmpeg.git', pwd) os.chdir(cloned_dir) utils.build_command_configure(compiler_flags, g_script_path, self.prefix_path_) os.chdir(pwd)
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)
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)
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)