Use platform dependencies and clean up old cruft.
This commit is contained in:
+1
-2
@@ -7,7 +7,6 @@ authors = ["The Servo Project Developers"]
|
||||
[dependencies]
|
||||
libc = "*"
|
||||
|
||||
[dependencies.core_foundation]
|
||||
|
||||
[target.x86_64-apple-darwin.dependencies.core_foundation]
|
||||
git = "https://github.com/servo/rust-core-foundation"
|
||||
|
||||
|
||||
-25
@@ -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_graphics.dummy
|
||||
|
||||
libcore_graphics.dummy: src/lib.rs $(RUST_SRC) $(EXT_DEPS)
|
||||
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
|
||||
touch $@
|
||||
|
||||
core_graphics-test: src/lib.rs $(RUST_SRC) $(EXT_DEPS)
|
||||
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
|
||||
|
||||
.PHONY: check
|
||||
check: core_graphics-test
|
||||
./core_graphics-test $(TEST)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f *.o *.a *.so *.dylib *.rlib *.dll *.dummy *-test
|
||||
Reference in New Issue
Block a user