Merge pull request #37 from metajack/platform-deps

Use platform deps and remove cruft.
This commit is contained in:
Glenn Watson
2015-06-03 16:16:55 +10:00
4 changed files with 6 additions and 41 deletions
+6 -8
View File
@@ -4,13 +4,11 @@ name = "core_text"
version = "0.1.0"
authors = ["The Servo Project Developers"]
[dependencies.core_foundation]
git = "https://github.com/servo/rust-core-foundation"
[dependencies.core_graphics]
git = "https://github.com/servo/rust-core-graphics"
[dependencies]
libc = "*"
[target.x86_64-apple-darwin.dependencies.core_foundation]
git = "https://github.com/servo/rust-core-foundation"
[target.x86_64-apple-darwin.dependencies.core_graphics]
git = "https://github.com/servo/rust-core-graphics"
-25
View File
@@ -1,25 +0,0 @@
VPATH=%VPATH%
RUSTC ?= rustc
RUSTFLAGS ?=
EXT_DEPS ?=
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')
.PHONY: all
all: libcore_text.dummy
libcore_text.dummy: src/lib.rs $(RUST_SRC) $(EXT_DEPS)
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
touch $@
core_text-test: src/lib.rs $(RUST_SRC) $(EXT_DEPS)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
.PHONY: check
check: core_text-test
./core_text-test $(TEST)
.PHONY: clean
clean:
rm -f *.o *.a *.so *.dylib *.rlib *.dll *.dummy *-test
Vendored
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
SRCDIR="$(cd $(dirname $0) && pwd)"
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
-4
View File
@@ -17,11 +17,7 @@ extern crate libc;
extern crate core_foundation;
extern crate core_graphics;
#[cfg(target_os="macos")]
pub mod font;
#[cfg(target_os="macos")]
pub mod font_collection;
#[cfg(target_os="macos")]
pub mod font_descriptor;
#[cfg(target_os="macos")]
pub mod font_manager;