Merge pull request #11 from metajack/unrustpkg
Build with make instead of rustpkg.
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
VPATH=%VPATH%
|
||||
|
||||
RUSTC ?= rustc
|
||||
RUSTFLAGS ?=
|
||||
|
||||
RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
|
||||
|
||||
.PHONY: all
|
||||
all: libio_surface.dummy
|
||||
|
||||
libio_surface.dummy: lib.rs $(RUST_SRC)
|
||||
$(RUSTC) $(RUSTFLAGS) $< --lib --out-dir .
|
||||
touch $@
|
||||
|
||||
io_surface-test: lib.rs $(RUST_SRC)
|
||||
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
|
||||
|
||||
.PHONY: check
|
||||
check: io_surface-test
|
||||
./io_surface-test $(TEST)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f *.o *.a *.so *.dylib *.dll *.dummy *-test
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
SRCDIR="$(cd $(dirname $0) && pwd)"
|
||||
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
|
||||
@@ -7,10 +7,12 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[link(name = "io_surface", vers = "0.1")];
|
||||
|
||||
extern mod std;
|
||||
extern mod core_foundation = "rust-core-foundation";
|
||||
extern mod geom = "rust-geom";
|
||||
extern mod opengles = "rust-opengles";
|
||||
extern mod core_foundation;
|
||||
extern mod geom;
|
||||
extern mod opengles;
|
||||
|
||||
// Rust bindings to the IOSurface framework on Mac OS X.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user