Skip to content

Commit 3c48fdd

Browse files
committed
Remove git submodule php-src.
1 parent b39ebee commit 3c48fdd

File tree

4 files changed

+33
-36
lines changed

4 files changed

+33
-36
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

phper-sys/build.rs

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,38 @@ use std::path::{PathBuf, Path};
55
use std::process::Command;
66

77
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"))?;
3940

4041
Ok(())
4142
}

phper-sys/php-src

Lines changed: 0 additions & 1 deletion
This file was deleted.

phper-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
#![allow(non_camel_case_types)]
33
#![allow(non_snake_case)]
44

5-
include!(concat!(env!("OUT_DIR"), "/php_bindings.rs"));
5+
//include!(concat!(env!("OUT_DIR"), "/php_bindings.rs"));
66

77
mod r#macro;

0 commit comments

Comments
 (0)