pub fn build_skia(
    build: &FinalBuildConfiguration,
    config: &BinariesConfiguration,
    ninja_command: &Path,
) {
    // Libraries we explicitly want ninja to build.
    let ninja_built_libraries = config
        .built_libraries
        .iter()
        .filter(|x| *x != lib::SKIA_BINDINGS);
    let ninja_status = Command::new(ninja_command)
        .args(ninja_built_libraries)
        .args(&["-C", config.output_directory.to_str().unwrap()])
        .stdout(Stdio::inherit())
        .stderr(Stdio::inherit())
        .status();

    assert!(
        ninja_status
            .expect("failed to run `ninja`, does the directory depot_tools/ exist?")
            .success(),
        "`ninja` returned an error, please check the output for details."
    );

    generate_bindings(build, &config.output_directory)
}
/// Builds Skia.
///
/// This function assumes that all prerequisites are in place and that the output directory
/// contains a fully configured Skia source tree generated by gn.
Builds Skia.
This function assumes that all prerequisites are in place and that the output directory
contains a fully configured Skia source tree generated by gn.
Builds Skia . This function assumes that all prerequisites are in place and that the output directory contains a fully configured Skia source tree generated by gn .
pub fn build_skia(
    build: &FinalBuildConfiguration,
    config: &BinariesConfiguration,
    ninja_command: &Path,
) {
    // Libraries we explicitly want ninja to build.
    let ninja_built_libraries = config
        .built_libraries
        .iter()
        .filter(|x| *x != lib::SKIA_BINDINGS);
    let ninja_status = Command::new(ninja_command)
        .args(ninja_built_libraries)
        .args(&["-C", config.output_directory.to_str().unwrap()])
        .stdout(Stdio::inherit())
        .stderr(Stdio::inherit())
        .status();
    assert!(
        ninja_status
            .expect("failed to run `ninja`, does the directory depot_tools/ exist?")
            .success(),
        "`ninja` returned an error, please check the output for details."
    );
    generate_bindings(build, &config.output_directory)
}
pub fn build_skia ( build : & FinalBuildConfiguration , config : & BinariesConfiguration , ninja_command : & Path , ) { // Libraries we explicitly want ninja to build. let ninja_built_libraries = config . built_libraries . iter ( ) . filter ( | x | * x != lib :: SKIA_BINDINGS ) ; let ninja_status = Command :: new ( ninja_command ) . args ( ninja_built_libraries ) . args ( & [ " " , config . output_directory . to_str ( ) . unwrap ( ) ] ) . stdout ( Stdio :: inherit ( ) ) . stderr ( Stdio :: inherit ( ) ) . status ( ) ; assert ! ( ninja_status expect ( " " ) success ( ) " " ) ; generate_bindings ( build , & config . output_directory ) }
Builds Skia.
Builds Skia .
build
&FinalBuildConfiguration
config
&BinariesConfiguration
ninja_command
&Path
build
&FinalBuildConfiguration
config
&BinariesConfiguration
ninja_command
&Path