1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#![warn(rust_2018_idioms, clippy::dbg_macro)]
#![doc = include_str!("../README.md")]
use phper_sys::*;
pub fn register_configures() {
println!(
"cargo:rustc-cfg=phper_major_version=\"{}\"",
PHP_MAJOR_VERSION
);
println!(
"cargo:rustc-cfg=phper_minor_version=\"{}\"",
PHP_MINOR_VERSION
);
println!(
"cargo:rustc-cfg=phper_release_version=\"{}\"",
PHP_RELEASE_VERSION
);
println!(
"cargo:rustc-cfg=phper_php_version=\"{}.{}\"",
PHP_MAJOR_VERSION, PHP_MINOR_VERSION,
);
if PHP_DEBUG != 0 {
println!("cargo:rustc-cfg=phper_debug");
}
if USING_ZTS != 0 {
println!("cargo:rustc-cfg=phper_zts");
}
}