Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #37 from metajack/cargoify
Browse files Browse the repository at this point in the history
Cargoify sharegl
  • Loading branch information
glennw committed Aug 27, 2014
2 parents f2ae0df + e6d6fd9 commit 3706681
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/doc
/target
/Cargo.lock
17 changes: 17 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]

name = "sharegl"
version = "0.1.0"
authors = ["The Servo Project Developers"]

[dependencies.core_foundation]

git = "https://github.com/servo/rust-core-foundation"

[dependencies.io_surface]

git = "https://github.com/servo/rust-io-surface"

[dependencies.opengles]

git = "https://github.com/servo/rust-opengles"
8 changes: 4 additions & 4 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ RUSTDOC ?= rustdoc
RUSTDOC_FLAGS ?=
RUSTDOC_TARGET ?= doc

RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')

.PHONY: all
all: libsharegl.dummy

libsharegl.dummy: lib.rs $(RUST_SRC) $(EXT_DEPS)
libsharegl.dummy: src/lib.rs $(RUST_SRC) $(EXT_DEPS)
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
touch $@

sharegl-test: lib.rs $(RUST_SRC)
sharegl-test: src/lib.rs $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test

.PHONY: doc
doc: $(RUSTDOC_TARGET)/sharegl/index.html

$(RUSTDOC_TARGET)/sharegl/index.html: lib.rs $(RUST_SRC) $(EXT_DEPS)
$(RUSTDOC_TARGET)/sharegl/index.html: src/lib.rs $(RUST_SRC) $(EXT_DEPS)
$(RUSTDOC) $(RUSTDOC_FLAGS) $< -o $(RUSTDOC_TARGET)

.PHONY: check
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3706681

Please sign in to comment.