-31
@@ -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
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
SRCDIR="$(cd $(dirname $0) && pwd)"
|
||||
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user