fn link_library(native_dir: &Path) {
        let configuration = if debug() { "Debug" } else { "Release" };

        let object_path = if cfg!(unix) {
            native_dir
                .join("build")
                .join(configuration)
                .join("obj.target")
                .join("neon")
                .join("src")
                .join("neon.o")
        } else {
            let neon_dir = native_dir
                .join("build")
                .join(configuration)
                .join("obj")
                .join("neon");
            let object_path = neon_dir.join("src").join("neon.obj");
            if object_path.exists() {
                object_path
            } else {
                neon_dir.join("neon.obj")
            }
        };

        cc::Build::new()
            .cpp(true)
            .object(object_path)
            .compile("libneon.a");
    }
// Link the built object file into a static library.
Link the built object file into a static library.
Link the built object file into a static library .
fn link_library(native_dir: &Path) {
        let configuration = if debug() { "Debug" } else { "Release" };
        let object_path = if cfg!(unix) {
            native_dir
                .join("build")
                .join(configuration)
                .join("obj.target")
                .join("neon")
                .join("src")
                .join("neon.o")
        } else {
            let neon_dir = native_dir
                .join("build")
                .join(configuration)
                .join("obj")
                .join("neon");
            let object_path = neon_dir.join("src").join("neon.obj");
            if object_path.exists() {
                object_path
            } else {
                neon_dir.join("neon.obj")
            }
        };
        cc::Build::new()
            .cpp(true)
            .object(object_path)
            .compile("libneon.a");
    }
fn link_library ( native_dir : & Path ) { let configuration = if debug ( ) { " " } else { " " } ; let object_path = if cfg ! ( unix ) { native_dir . join ( " " ) . join ( configuration ) . join ( " " ) . join ( " " ) . join ( " " ) . join ( " " ) } else { let neon_dir = native_dir . join ( " " ) . join ( configuration ) . join ( " " ) . join ( " " ) ; let object_path = neon_dir . join ( " " ) . join ( " " ) ; if object_path . exists ( ) { object_path } else { neon_dir . join ( " " ) } } ; cc :: Build :: new ( ) . cpp ( true ) . object ( object_path ) . compile ( " " ) ; }
Link the built object file into a static library.
Link the built object file into a static library .
native_dir
&Path