示例#1
0
        sys.exit(1)

    if argc > 2:
        branding_file_path = sys.argv[2]
    else:
        branding_file_path = dev_null

    if argc > 3:
        platform_str = sys.argv[3]
    else:
        platform_str = system_info.get_os()

    if argc > 4:
        arch_name_str = sys.argv[4]
    else:
        arch_name_str = system_info.get_arch_name()

    if argc > 5:
        bs_str = sys.argv[5]
        build_system = get_supported_build_system_by_name(bs_str)
    else:
        build_system = []

    if argc > 6:
        packages = sys.argv[6].split()
    else:
        packages = []

    request = BuildRequest(platform_str, arch_name_str)
    if branding_file_path != dev_null:
        abs_branding_file = os.path.abspath(branding_file_path)
示例#2
0

if __name__ == "__main__":
    # openssl_default_version = '1.1.1b'
    glib_default_version = '2.60.2'
    # cmake_default_version = '3.4.0'
    meson_default_version = '0.50.1'
    gstreamer_default_version = '1.16.0'
    gst_plugins_base_default_version = gstreamer_default_version
    gst_plugins_good_default_version = gstreamer_default_version
    gst_plugins_bad_default_version = gstreamer_default_version
    gst_plugins_ugly_default_version = gstreamer_default_version
    gst_libav_default_version = gstreamer_default_version

    host_os = system_info.get_os()
    arch_host_os = system_info.get_arch_name()

    parser = argparse.ArgumentParser(prog='build_env', usage='%(prog)s [options]')
    # system
    system_grp = parser.add_mutually_exclusive_group()
    system_grp.add_argument('--with-system', help='build with system dependencies (default)', dest='with_system',
                            action='store_true', default=True)
    system_grp.add_argument('--without-system', help='build without system dependencies', dest='with_system',
                            action='store_false', default=False)

    # cmake
    # cmake_grp = parser.add_mutually_exclusive_group()
    # cmake_grp.add_argument('--with-cmake', help='build cmake (default, version:{0})'.format(meson_default_version),
    #                       dest='with_cmake', action='store_true', default=True)
    # cmake_grp.add_argument('--without-cmake', help='build without cmake', dest='with_cmake', action='store_false',
    #                       default=False)
示例#3
0
    if argc > 1:
        cmake_root = sys.argv[1]
    else:
        print_usage()
        sys.exit(1)

    if argc > 2:
        platform_str = sys.argv[2]
    else:
        platform_str = system_info.get_os()

    if argc > 3:
        arch_bit_str = sys.argv[3]
    else:
        arch_bit_str = system_info.get_arch_name()

    if argc > 4:
        bs_str = sys.argv[4]
        bs = system_info.get_supported_build_system_by_name(bs_str)
    else:
        bs = None

    if argc > 5:
        packages = sys.argv[5].split()
    else:
        packages = []

    request = build.BuildRequest(platform_str, arch_bit_str)
    saver = build.ProgressSaver(print_message)