@@ -5,37 +5,38 @@ use std::path::{PathBuf, Path};
5
5
use std:: process:: Command ;
6
6
7
7
fn main ( ) -> Result < ( ) , Box < dyn Error + ' static > > {
8
- if !Path :: new ( "php-src/Zend/zend_config.h" ) . exists ( ) {
9
- Command :: new ( "sh" )
10
- . args ( & [ "-c" , "cd php-src && ./buildconf --force && ./configure" ] )
11
- . status ( ) ?;
12
- }
13
-
14
- let bindings = Builder :: default ( )
15
- . header ( "php-src/main/php.h" )
16
- . clang_args ( & [
17
- "-Iphp-src" ,
18
- "-Iphp-src/main" ,
19
- "-Iphp-src/Zend" ,
20
- "-Iphp-src/TSRM" ,
21
- ] )
22
- . blacklist_item ( "FP_INT_UPWARD" )
23
- . blacklist_item ( "FP_INT_TONEARESTFROMZERO" )
24
- . blacklist_item ( "FP_NAN" )
25
- . blacklist_item ( "FP_INFINITE" )
26
- . blacklist_item ( "FP_ZERO" )
27
- . blacklist_item ( "FP_NORMAL" )
28
- . blacklist_item ( "FP_INT_DOWNWARD" )
29
- . blacklist_item ( "FP_INT_TOWARDZERO" )
30
- . blacklist_item ( "FP_INT_TONEAREST" )
31
- . blacklist_item ( "FP_SUBNORMAL" )
32
- . blacklist_type ( "timex" )
33
- . blacklist_function ( "clock_adjtime" )
34
- . generate ( )
35
- . expect ( "Unable to generate bindings" ) ;
36
-
37
- let out_path = PathBuf :: from ( env:: var ( "OUT_DIR" ) ?) ;
38
- bindings. write_to_file ( out_path. join ( "php_bindings.rs" ) ) ?;
8
+ // let out_path = PathBuf::from(env::var("OUT_DIR")?);
9
+ //
10
+ // if !Path::new("php-src/Zend/zend_config.h").exists() {
11
+ // Command::new("sh")
12
+ // .args(&["-c", "cd php-src && ./buildconf --force && ./configure"])
13
+ // .status()?;
14
+ // }
15
+ //
16
+ // let bindings = Builder::default()
17
+ // .header("php-src/main/php.h")
18
+ // .clang_args(&[
19
+ // "-Iphp-src",
20
+ // "-Iphp-src/main",
21
+ // "-Iphp-src/Zend",
22
+ // "-Iphp-src/TSRM",
23
+ // ])
24
+ // .blacklist_item("FP_INT_UPWARD")
25
+ // .blacklist_item("FP_INT_TONEARESTFROMZERO")
26
+ // .blacklist_item("FP_NAN")
27
+ // .blacklist_item("FP_INFINITE")
28
+ // .blacklist_item("FP_ZERO")
29
+ // .blacklist_item("FP_NORMAL")
30
+ // .blacklist_item("FP_INT_DOWNWARD")
31
+ // .blacklist_item("FP_INT_TOWARDZERO")
32
+ // .blacklist_item("FP_INT_TONEAREST")
33
+ // .blacklist_item("FP_SUBNORMAL")
34
+ // .blacklist_type("timex")
35
+ // .blacklist_function("clock_adjtime")
36
+ // .generate()
37
+ // .expect("Unable to generate bindings");
38
+ //
39
+ // bindings.write_to_file(out_path.join("php_bindings.rs"))?;
39
40
40
41
Ok ( ( ) )
41
42
}
0 commit comments