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:
@@ -0,0 +1,3 @@
|
||||
/Cargo.lock
|
||||
/target
|
||||
|
||||
+10
@@ -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
@@ -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
|
||||
|
||||
@@ -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]
|
||||
Reference in New Issue
Block a user