pub fn build(
    build: &FinalBuildConfiguration,
    config: &BinariesConfiguration,
    ninja_command: Option<PathBuf>,
    gn_command: Option<PathBuf>,
    offline: bool,
) {
    let python2 = &prerequisites::locate_python2_cmd();
    println!("Python 2 found: {:?}", python2);

    let ninja = ninja_command.unwrap_or_else(|| {
        env::current_dir()
            .unwrap()
            .join("depot_tools")
            .join(ninja::default_exe_name())
    });

    if !offline && !build.use_system_libraries {
        println!("Synchronizing Skia dependencies");
        #[cfg(feature = "binary-cache")]
        crate::build_support::binary_cache::resolve_dependencies();
        assert!(
            Command::new(python2)
                .arg("skia/tools/git-sync-deps")
                .stdout(Stdio::inherit())
                .stderr(Stdio::inherit())
                .status()
                .unwrap()
                .success(),
            "`skia/tools/git-sync-deps` failed"
        );
    }

    configure_skia(build, config, python2, gn_command.as_deref());
    build_skia(build, config, &ninja);
}
/// Orchestrates the entire build of Skia based on the arguments provided.
Orchestrates the entire build of Skia based on the arguments provided.
Orchestrates the entire build of Skia based on the arguments provided .
pub fn build(
    build: &FinalBuildConfiguration,
    config: &BinariesConfiguration,
    ninja_command: Option<PathBuf>,
    gn_command: Option<PathBuf>,
    offline: bool,
) {
    let python2 = &prerequisites::locate_python2_cmd();
    println!("Python 2 found: {:?}", python2);
    let ninja = ninja_command.unwrap_or_else(|| {
        env::current_dir()
            .unwrap()
            .join("depot_tools")
            .join(ninja::default_exe_name())
    });
    if !offline && !build.use_system_libraries {
        println!("Synchronizing Skia dependencies");
        #[cfg(feature = "binary-cache")]
        crate::build_support::binary_cache::resolve_dependencies();
        assert!(
            Command::new(python2)
                .arg("skia/tools/git-sync-deps")
                .stdout(Stdio::inherit())
                .stderr(Stdio::inherit())
                .status()
                .unwrap()
                .success(),
            "`skia/tools/git-sync-deps` failed"
        );
    }
    configure_skia(build, config, python2, gn_command.as_deref());
    build_skia(build, config, &ninja);
}
pub fn build ( build : & FinalBuildConfiguration , config : & BinariesConfiguration , ninja_command : Option < PathBuf > , gn_command : Option < PathBuf > , offline : bool , ) { let python2 = & prerequisites :: locate_python2_cmd ( ) ; println ! ( " " python2 ) ; let ninja = ninja_command . unwrap_or_else ( | | { env :: current_dir ( ) . unwrap ( ) . join ( " " ) . join ( ninja :: default_exe_name ( ) ) } ) ; if ! offline && ! build . use_system_libraries { println ! ( " " ) ; # [ cfg ( feature " " ) ] crate :: build_support :: binary_cache :: resolve_dependencies ( ) ; assert ! ( Command new ( python2 ) arg ( " " ) stdout ( Stdio inherit ( ) ) stderr ( Stdio inherit ( ) ) status ( ) unwrap ( ) success ( ) " " ) ; } configure_skia ( build , config , python2 , gn_command . as_deref ( ) ) ; build_skia ( build , config , & ninja ) ; }
Orchestrates the entire build of Skia based on the arguments provided.
Orchestrates the entire build of Skia based on the arguments provided .
build
&FinalBuildConfiguration
config
&BinariesConfiguration
ninja_command
Option<PathBuf>
gn_command
Option<PathBuf>
offline
bool
build
&FinalBuildConfiguration
config
&BinariesConfiguration
ninja_command
Option<PathBuf>
gn_command
Option<PathBuf>
offline
bool