File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ extern crate gcc;
2
2
3
3
use std:: process:: Command ;
4
4
use std:: env;
5
+ use std:: path:: Path ;
5
6
6
7
fn main ( ) {
7
8
// 1. Build the object file from source using node-gyp.
@@ -57,8 +58,12 @@ fn build_object_file() {
57
58
. find ( node_lib_file_flag_pattern)
58
59
. map ( |i| i + node_lib_file_flag_pattern. len ( ) )
59
60
. expect ( "Couldn't find node_lib_file in node-gyp output." ) ;
60
- let node_lib_file_end_index = node_gyp_output[ node_lib_file_start_index..] . find ( ".lib" ) . unwrap ( ) + node_lib_file_start_index;
61
- println ! ( "cargo:node_lib_file={}" , & node_gyp_output[ node_lib_file_start_index..node_lib_file_end_index] ) ;
61
+ //let node_lib_file_end_index = node_gyp_output[node_lib_file_start_index..].find("'").unwrap() + node_lib_file_start_index;
62
+ //let node_lib_file = &node_gyp_output[node_lib_file_start_index..node_lib_file_end_index];
63
+ //let file = Path::new(node_lib_file);
64
+ //println!("test-output: {}", node_lib_file);
65
+ //println!("cargo:rustc-link-search=native={}", file.parent().unwrap().display());
66
+ //println!("cargo:rustc-link-lib={}", file.file_stem().unwrap().to_str().unwrap());
62
67
}
63
68
64
69
// Run `node-gyp build`.
You can’t perform that action at this time.
0 commit comments