pub fn commit_to_cargo(&self) {
        cargo::add_link_search(self.output_directory.to_str().unwrap());

        // On Linux, the order is significant, first the static libraries we built, and then
        // the system libraries.

        let target = cargo::target();

        for lib in &self.built_libraries {
            // Prefixing the libraries we built with `static=` causes linker errors on Windows.
            // https://github.com/rust-skia/rust-skia/pull/354
            let kind_prefix = {
                if target.is_windows() {
                    ""
                } else {
                    "static="
                }
            };

            cargo::add_link_lib(format!("{}{}", kind_prefix, lib));
        }

        cargo::add_link_libs(&self.link_libraries);
    }
/// Inform cargo that the library files of the given configuration are available and
/// can be used as dependencies.
Inform cargo that the library files of the given configuration are available and
can be used as dependencies.
Inform cargo that the library files of the given configuration are available and can be used as dependencies .
pub fn commit_to_cargo(&self) {
        cargo::add_link_search(self.output_directory.to_str().unwrap());
        // On Linux, the order is significant, first the static libraries we built, and then
        // the system libraries.
        let target = cargo::target();
        for lib in &self.built_libraries {
            // Prefixing the libraries we built with `static=` causes linker errors on Windows.
            // https://github.com/rust-skia/rust-skia/pull/354
            let kind_prefix = {
                if target.is_windows() {
                    ""
                } else {
                    "static="
                }
            };
            cargo::add_link_lib(format!("{}{}", kind_prefix, lib));
        }
        cargo::add_link_libs(&self.link_libraries);
    }
pub fn commit_to_cargo ( & self ) { cargo :: add_link_search ( self . output_directory . to_str ( ) . unwrap ( ) ) ; // On Linux, the order is significant, first the static libraries we built, and then // the system libraries. let target = cargo :: target ( ) ; for lib in & self . built_libraries { // Prefixing the libraries we built with `static=` causes linker errors on Windows. // https://github.com/rust-skia/rust-skia/pull/354 let kind_prefix = { if target . is_windows ( ) { " " } else { " " } } ; cargo :: add_link_lib ( format ! ( " " kind_prefix lib ) ) ; } cargo :: add_link_libs ( & self . link_libraries ) ; }
Inform cargo that the library files of the given configuration are available and
can be used as dependencies.
Inform cargo that the library files of the given configuration are available and can be used as dependencies .
&self
&self