diff --git a/servo/Makefile.in b/servo/Makefile.in index 839b5a039b8d..74d46ae80b5e 100644 --- a/servo/Makefile.in +++ b/servo/Makefile.in @@ -23,6 +23,7 @@ RUSTFLAGS += \ -L src/rust-geom \ -L src/rust-opengles \ -L src/rust-glut \ + -L src/rust-layers \ $(NULL) RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs') @@ -35,6 +36,13 @@ CHECK_DEPS = CLEAN_DEPS = AZURE_DEPS = \ src/rust-geom/libgeom.dummy +GLUT_DEPS = \ + src/rust-opengles/libopengles.dummy +LAYERS_DEPS = \ + src/rust-geom/libgeom.dummy \ + src/rust-opengles/libopengles.dummy \ + src/rust-glut/libglut.dummy \ + src/rust-azure/libazure.dummy \ ifeq ($(OSTYPE),darwin) SERVO_DEPS += src/rust-cocoa/libcocoa.dummy @@ -43,6 +51,7 @@ ifeq ($(OSTYPE),darwin) CHECK_DEPS += check-rust-cocoa CLEAN_DEPS += clean-rust-cocoa AZURE_DEPS += src/rust-cocoa/libcocoa.dummy src/rust-geom/libgeom.dummy + LAYERS_DEPS += src/rust-cocoa/libcocoa.dummy endif SERVO_DEPS += \ @@ -54,6 +63,7 @@ SERVO_DEPS += \ src/rust-geom/libgeom.dummy \ src/rust-opengles/libopengles.dummy \ src/rust-glut/libglut.dummy \ + src/rust-layers/liblayers.dummy \ $(NULL) CHECK_DEPS += \ @@ -65,6 +75,7 @@ CHECK_DEPS += \ check-rust-geom \ check-rust-opengles \ check-rust-glut \ + check-rust-layers \ check-servo \ $(NULL) @@ -79,6 +90,7 @@ CLEAN_DEPS += \ clean-rust-geom \ clean-rust-opengles \ clean-rust-glut \ + clean-rust-layers \ clean-servo \ $(NULL) @@ -128,8 +140,12 @@ src/rust-geom/libgeom.dummy: src/rust-opengles/libopengles.dummy: $(MAKE) -C src/rust-opengles -src/rust-glut/libglut.dummy: - $(MAKE) -C src/rust-glut +src/rust-glut/libglut.dummy: $(GLUT_DEPS) + RUSTFLAGS="-L ../rust-opengles" $(MAKE) -C src/rust-glut + +src/rust-layers/liblayers.dummy: $(LAYERS_DEPS) + RUSTFLAGS="-L ../rust-geom -L ../rust-opengles -L ../rust-glut -L ../rust-azure -L ../rust-cocoa" \ + $(MAKE) -C src/rust-layers check: $(CHECK_DEPS) @@ -171,7 +187,12 @@ check-rust-opengles: .PHONY: check-rust-glut check-rust-glut: - $(MAKE) check -C src/rust-glut + RUSTFLAGS="-L ../rust-opengles" $(MAKE) check -C src/rust-glut + +.PHONY: check-rust-layers +check-rust-layers: + RUSTFLAGS="-L ../rust-geom -L ../rust-opengles -L ../rust-glut -L ../rust-azure -L ../rust-cocoa" \ + $(MAKE) check -C src/rust-layers .PHONY: clean clean: $(CLEAN_DEPS) diff --git a/servo/configure.in b/servo/configure.in index 975945c81546..dc6c997be9d3 100755 --- a/servo/configure.in +++ b/servo/configure.in @@ -15,6 +15,7 @@ mkdir -p src/rust-cocoa || exit $? mkdir -p src/rust-stb-image || exit $? mkdir -p src/rust-geom || exit $? mkdir -p src/rust-glut || exit $? +mkdir -p src/rust-layers || exit $? (cd src/ragel && sh ${SRCDIR}/src/ragel/configure) || exit $? (cd src/harfbuzz && sh ${SRCDIR}/src/harfbuzz/configure --enable-static) || exit $? @@ -28,3 +29,5 @@ mkdir -p src/rust-glut || exit $? (cd src/rust-stb-image && sh ${SRCDIR}/src/rust-stb-image/configure) || exit $? (cd src/rust-geom && sh ${SRCDIR}/src/rust-geom/configure) || exit $? (cd src/rust-glut && sh ${SRCDIR}/src/rust-glut/configure) || exit $? +(cd src/rust-layers && sh ${SRCDIR}/src/rust-layers/configure) || exit $? +