Merge pull request #17 from metajack/unrustpkg

Build with make instead of rustpkg.
This commit is contained in:
yichoi
2013-12-26 19:02:19 -08:00
3 changed files with 32 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
VPATH=%VPATH%
RUSTC ?= rustc
RUSTFLAGS ?=
RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
.PHONY: all
all: libcore_text.dummy
libcore_text.dummy: lib.rs $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< --lib --out-dir .
touch $@
core_text-test: lib.rs $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
.PHONY: check
check: core_text-test
./core_text-test $(TEST)
.PHONY: clean
clean:
rm -f *.o *.a *.so *.dylib *.dll *.dummy *-test
Vendored Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
SRCDIR="$(cd $(dirname $0) && pwd)"
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
+4 -2
View File
@@ -7,10 +7,12 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[link(name = "core_text", vers = "0.1")];
extern mod std;
extern mod core_foundation = "rust-core-foundation";
extern mod core_graphics = "rust-core-graphics";
extern mod core_foundation;
extern mod core_graphics;
pub mod font;
pub mod font_collection;