Remove build script from core-foundation-sys
Should result in faster build times
This commit is contained in:
@@ -6,7 +6,6 @@ repository = "https://github.com/servo/core-foundation-rs"
|
||||
version = "0.8.3"
|
||||
authors = ["The Servo Project Developers"]
|
||||
license = "MIT / Apache-2.0"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
// Copyright 2013-2015 The Servo Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
fn main() {
|
||||
if std::env::var("TARGET").unwrap().contains("-apple") {
|
||||
println!("cargo:rustc-link-lib=framework=CoreFoundation");
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,16 @@
|
||||
|
||||
#![cfg_attr(all(feature="mac_os_10_7_support", feature="mac_os_10_8_features"), feature(linkage))] // back-compat requires weak linkage
|
||||
|
||||
// Link to CoreFoundation on any Apple device.
|
||||
//
|
||||
// We don't use `target_vendor` since that is going to be deprecated:
|
||||
// https://github.com/rust-lang/lang-team/issues/102
|
||||
#[cfg_attr(
|
||||
any(target_os = "macos", target_os = "ios", target_os = "tvos"),
|
||||
link(name = "CoreFoundation", kind = "framework")
|
||||
)]
|
||||
extern "C" {}
|
||||
|
||||
pub mod array;
|
||||
pub mod attributed_string;
|
||||
pub mod base;
|
||||
|
||||
Reference in New Issue
Block a user