Cargoify rust-core-foundation.

Note that it is buildable on non-macos platforms because Cargo does not
yet have conditional dependencies and several non-macos Servo things
depend on it when on macos.
This commit is contained in:
Jack Moffitt
2014-08-25 17:16:01 -06:00
parent 265586fe94
commit 8d367ac068
13 changed files with 26 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
/Cargo.lock
/target
+10
View File
@@ -0,0 +1,10 @@
[package]
name = "core_foundation"
version = "0.1.0"
authors = ["The Servo Project Developers"]
[lib]
name = "core_foundation"
crate-type = ["rlib"]
+3 -3
View File
@@ -3,16 +3,16 @@ VPATH=%VPATH%
RUSTC ?= rustc
RUSTFLAGS ?=
RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')
.PHONY: all
all: libcore_foundation.dummy
libcore_foundation.dummy: lib.rs $(RUST_SRC)
libcore_foundation.dummy: src/lib.rs $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
touch $@
core_foundation-test: lib.rs $(RUST_SRC)
core_foundation-test: src/lib.rs $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
.PHONY: check
View File
View File
View File
View File
View File
+10
View File
@@ -16,16 +16,26 @@ extern crate libc;
extern crate std;
extern crate debug;
#[cfg(target_os="macos")]
pub mod array;
#[cfg(target_os="macos")]
pub mod base;
#[cfg(target_os="macos")]
pub mod boolean;
#[cfg(target_os="macos")]
pub mod data;
#[cfg(target_os="macos")]
pub mod dictionary;
#[cfg(target_os="macos")]
pub mod number;
#[cfg(target_os="macos")]
pub mod set;
#[cfg(target_os="macos")]
pub mod string;
#[cfg(target_os="macos")]
pub mod url;
#[cfg(target_os="macos")]
#[cfg(test)]
pub mod test {
#[test]
View File
View File
View File
View File