def _build_linux(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) # Clone gyp build_utils.run_process( ['git clone https://chromium.googlesource.com/external/gyp.git build/gyp'], process_cwd=source_folder_path, shell=True) # Generate makefile using gyp env = build_utils.get_autotools_linux_env() build_utils.run_process( ['./gyp_uv.py -f make'], process_cwd=source_folder_path, environment=env, shell=True) # Build release library: only libuv.a, skipping tests build_utils.run_process( ['BUILDTYPE=Release make libuv -C out'], process_cwd=source_folder_path, environment=env, shell=True) # Copy binary files to dava.engine's library folder source_dir = os.path.join(source_folder_path, 'out/Release') target_dir = os.path.join(root_project_path, 'Libs/lib_CMake/linux') shutil.copyfile(os.path.join(source_dir, 'libuv.a'), os.path.join(target_dir, 'libuv.a')) # Copy headers to dava.engine's include folder _copy_headers_from_install(source_folder_path, root_project_path)
def _build_linux(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) _patch_sources(source_folder_path, 'patch.diff') env = build_utils.get_autotools_linux_env() install_dir = os.path.join(working_directory_path, 'gen/install_linux') configure_args = list(_configure_args) configure_args.append('linux-x86_64') build_utils.build_with_autotools(source_folder_path, configure_args, install_dir, env=env, configure_exec_name='Configure', shell_prefix='perl', make_targets=['depend', 'all', 'install'], postclean=False) shutil.copyfile( os.path.join(install_dir, 'lib/libssl.a'), os.path.join(root_project_path, 'Libs/lib_CMake/linux/libssl.a')) shutil.copyfile( os.path.join(install_dir, 'lib/libcrypto.a'), os.path.join(root_project_path, 'Libs/lib_CMake/linux/libcrypto.a')) _copy_headers(install_dir, root_project_path, 'linux')
def _build_linux(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path, 'others', '_linux') env = build_utils.get_autotools_linux_env() install_dir = os.path.join(working_directory_path, 'gen/install_linux') build_utils.build_with_autotools(os.path.join(source_folder_path, 'source'), ['--disable-shared', '--enable-static'], install_dir, env=env, postclean=False)
def _build_linux(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path, 'others') env = build_utils.get_autotools_linux_env() install_dir = os.path.join(working_directory_path, 'gen/install_linux') build_utils.build_with_autotools(source_folder_path, ['--disable-shared', '--enable-static'], install_dir, env=env) shutil.copyfile( os.path.join(install_dir, 'lib/libjpeg.a'), os.path.join(root_project_path, 'Libs/lib_CMake/linux/libjpeg.a')) _copy_headers_from_install(install_dir, root_project_path)
def _build_linux(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) env = build_utils.get_autotools_linux_env() build_utils.run_process(['autoreconf', '-i'], process_cwd=source_folder_path) install_dir = os.path.join(working_directory_path, 'gen/install_linux') build_utils.build_with_autotools( source_folder_path, ['--disable-shared', '--enable-static'], install_dir, env=env) lib_path = os.path.join(install_dir, 'lib/libunibreak.a') shutil.copyfile( lib_path, os.path.join(root_project_path, 'Libs/lib_CMake/linux/libunibreak.a')) _copy_headers_from_install(install_dir, root_project_path)
def _build_linux(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) env = build_utils.get_autotools_linux_env() install_dir = os.path.join(working_directory_path, 'gen/install_linux') build_utils.build_with_autotools( source_folder_path, # exclude python bindings as make install requires sudo # also exclude lzma support as it requires lzma library [ '--disable-shared', '--enable-static', '--without-python', '--without-lzma' ], install_dir, env=env) lib_path = os.path.join(install_dir, 'lib/libxml2.a') shutil.copyfile( lib_path, os.path.join(root_project_path, 'Libs/lib_CMake/linux/libxml.a')) _copy_headers_from_install(install_dir, root_project_path)
def _build_linux(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) env = build_utils.get_autotools_linux_env() install_dir = os.path.join(working_directory_path, 'gen/install_linux') openssl_install_dir = os.path.abspath( os.path.join(working_directory_path, '../openssl/gen/install_linux/')) configure_args = [ '--disable-shared', '--enable-threaded-resolver', '--enable-ipv6', '--disable-rtsp', '--disable-ftp', '--disable-file', '--disable-ldap', '--disable-ldaps', '--disable-rtsp', '--disable-dict', '--disable-telnet', '--disable-tftp', '--disable-pop3', '--disable-imap', '--disable-smtp', '--disable-gopher', '--with-ssl=' + openssl_install_dir ] build_utils.build_with_autotools(source_folder_path, configure_args, install_dir, env) shutil.copyfile( os.path.join(install_dir, 'lib/libcurl.a'), os.path.join(root_project_path, 'Libs/lib_CMake/linux/libcurl.a')) _copy_headers(source_folder_path, root_project_path)