build.rs: Remove build_foreground
-#[cfg(target_os = "macos")]
-extern crate cc;
-
fn main() {
manage_docs();
- #[cfg(target_os = "macos")]
- build_foreground();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
@@ -20,12 +15,3 @@ fn manage_docs() {
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
fn manage_docs() {}
-
-#[cfg(target_os = "macos")]
-fn build_foreground() {
- cc::Build::new()
- .file("src/foreground.m")
- .compile("foreground");
- println!("cargo:rustc-link-lib=framework=AppKit");
- println!("cargo:rustc-link-lib=framework=CoreFoundation");
-}
