From fc609a2cc0640ecae3a82f24b63b364b9d956137 Mon Sep 17 00:00:00 2001 From: Lars Bergstrom Date: Fri, 21 Mar 2014 11:46:15 -0500 Subject: [PATCH] Produce dylib and rlib --- Makefile.in | 2 +- lib.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 75d43fc..f08ab16 100644 --- a/Makefile.in +++ b/Makefile.in @@ -9,7 +9,7 @@ RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs') all: libsharegl.dummy libsharegl.dummy: lib.rs $(RUST_SRC) - $(RUSTC) $(RUSTFLAGS) $< --crate-type=lib --out-dir . + $(RUSTC) $(RUSTFLAGS) $< --out-dir . touch $@ sharegl-test: lib.rs $(RUST_SRC) diff --git a/lib.rs b/lib.rs index f5a4147..54eec80 100644 --- a/lib.rs +++ b/lib.rs @@ -8,6 +8,9 @@ // except according to those terms. #[crate_id = "github.com/mozilla-servo/sharegl#0.1"]; +#[crate_type = "lib"]; +#[crate_type = "dylib"]; +#[crate_type = "rlib"]; extern crate std; extern crate sync;