File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /.rust /
21/doc /
3- /test
4- /rust-postgres
2+ /build /
Original file line number Diff line number Diff line change 1+ [submodule "submodules/rust-openssl "]
2+ path = submodules/rust-openssl
3+ url = git://github.com/sfackler/rust-openssl
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ before_script:
99 - ./travis/setup.sh
1010script :
1111 - make
12- - make test
12+ - make check
Original file line number Diff line number Diff line change 1- RUSTPKG ?= rustpkg
2- RUSTC ?= rustc
3- RUST_FLAGS ? = -Z debug-info -O
1+ export RUSTC = rustc
2+ BUILDDIR = build
3+ export RUSTFLAGS = -O - Z debug-info
44
5- all :
6- $(RUSTPKG ) $(RUST_FLAGS ) install
5+ POSTGRES_LIB = lib.rs
6+ POSTGRES = $(BUILDDIR ) /$(shell $(RUSTC ) --crate-file-name $(POSTGRES_LIB ) )
7+ POSTGRES_TEST = $(BUILDDIR ) /$(shell $(RUSTC ) --test --crate-file-name $(POSTGRES_LIB ) )
8+ OPENSSL_DIR = submodules/rust-openssl
9+ OPENSSL = $(OPENSSL_DIR ) /$(shell $(MAKE ) -s -C $(OPENSSL_DIR ) print-target)
710
8- test :
9- $(RUSTC ) $(RUST_FLAGS ) --test lib.rs
10- ./rust-postgres
11+ all : $(POSTGRES )
1112
12- .PHONY : test
13+ -include $(BUILDDIR ) /postgres.d
14+ -include $(BUILDDIR ) /postgres_test.d
15+
16+ $(BUILDDIR ) :
17+ mkdir -p $@
18+
19+ $(BUILDDIR ) /rust-openssl-trigger : submodules/rust-openssl-trigger | $(BUILDDIR )
20+ git submodule init
21+ git submodule update
22+ touch $@
23+
24+ $(OPENSSL ) : $(BUILDDIR ) /rust-openssl-trigger | $(BUILDDIR )
25+ $(MAKE ) -C $(OPENSSL_DIR )
26+
27+ $(POSTGRES ) : $(POSTGRES_LIB ) $(OPENSSL ) | $(BUILDDIR )
28+ $(RUSTC ) $(RUSTFLAGS ) --dep-info $(@D ) /postgres.d --out-dir $(@D ) \
29+ -L $(dir $(OPENSSL ) ) $<
30+
31+ $(POSTGRES_TEST ) : $(POSTGRES_LIB ) $(OPENSSL ) | $(BUILDDIR )
32+ $(RUSTC ) $(RUSTFLAGS ) --dep-info $(@D ) /postgres_test.d --out-dir $(@D ) \
33+ -L $(dir $(OPENSSL ) ) --test $<
34+
35+ check : $(POSTGRES_TEST )
36+ $<
1337
1438clean :
15- rm -rf .rust rust-postgres rust-postgres.dSYM
39+ rm -rf $(BUILDDIR )
40+
41+ .PHONY : all check clean
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ fn main() {
5555```
5656 */
5757
58- #[ crate_id="github.com/sfackler/rust-postgres" ] ;
58+ #[ crate_id="github.com/sfackler/rust-postgres#postgres:0.0 " ] ;
5959#[ crate_type="lib" ] ;
6060#[ doc( html_root_url="http://sfackler.github.io/rust-postgres/doc/" ) ] ;
6161
@@ -65,7 +65,7 @@ fn main() {
6565#[ macro_escape] ;
6666
6767extern mod extra;
68- extern mod openssl = "github.com/sfackler/rust-openssl" ;
68+ extern mod openssl;
6969
7070use extra:: container:: Deque ;
7171use extra:: hex:: ToHex ;
Submodule rust-openssl added at
f624349 Original file line number Diff line number Diff line change 1+ Sat Jan 18 13:39:47 PST 2014
You can’t perform that action at this time.
0 commit comments