Merge pull request #10 from kmcallister/rustpkg

Rustpkg
This commit is contained in:
Jack Moffitt
2013-11-07 17:12:01 -08:00
3 changed files with 3 additions and 43 deletions
-31
View File
@@ -1,31 +0,0 @@
VPATH=%VPATH%
CC ?= gcc
CXX ?= g++
CXXFLAGS ?=
AR ?= ar
RUSTC ?= rustc
RUSTFLAGS ?=
RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
.PHONY: all
all: librustiosurface.dummy
%.o: %.c
$(CC) $< -o $@ -c $(CFLAGS)
librustiosurface.dummy: io_surface.rc $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
touch $@
rustiosurface-test: io_surface.rc $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
check: rustiosurface-test
./rustiosurface-test
.PHONY: clean
clean:
rm -f *.o *.a *.so *.dylib *.dll *.dummy rustiosurface-test
Vendored
-5
View File
@@ -1,5 +0,0 @@
#!/bin/bash
SRCDIR="$(cd $(dirname $0) && pwd)"
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
+3 -7
View File
@@ -7,14 +7,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[link(name = "io_surface",
vers = "0.1")];
#[crate_type = "lib"];
extern mod core_foundation;
extern mod geom;
extern mod opengles;
extern mod std;
extern mod core_foundation = "rust-core-foundation";
extern mod geom = "rust-geom";
extern mod opengles = "rust-opengles";
// Rust bindings to the IOSurface framework on Mac OS X.