#![warn(rust_2018_idioms, missing_docs)]
#![warn(clippy::dbg_macro)]
#![doc = include_str!("../README.md")]
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/112468984?s=200&v=4")]
use phper_sys::*;
pub fn register_all() {
register_link_args();
register_configures();
}
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
);
if PHP_DEBUG != 0 {
println!("cargo::rustc-cfg=phper_debug");
}
if USING_ZTS != 0 {
println!("cargo::rustc-cfg=phper_zts");
}
}
pub fn register_link_args() {
#[cfg(target_os = "macos")]
{
println!("cargo::rustc-link-arg=-undefined");
println!("cargo::rustc-link-arg=dynamic_lookup");
}
}