mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Support out of tree builds
This commit is contained in:
parent
45b43e52e1
commit
b98eee0e46
6 changed files with 30 additions and 18 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,3 +9,4 @@
|
|||
servo-test
|
||||
Makefile
|
||||
Servo.app
|
||||
build
|
31
Makefile.in
31
Makefile.in
|
@ -12,8 +12,11 @@ ifeq ($(UNAME),Linux)
|
|||
OSTYPE=linux
|
||||
endif
|
||||
|
||||
RUSTFLAGS += -L $(VPATH)/src/rust-azure -L $(VPATH)/src/rust-sdl \
|
||||
-L $(VPATH)/src/rust-cocoa
|
||||
RUSTFLAGS += \
|
||||
-L src/rust-azure \
|
||||
-L src/rust-sdl \
|
||||
-L src/rust-cocoa \
|
||||
$(NULL)
|
||||
|
||||
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')
|
||||
|
||||
|
@ -59,13 +62,13 @@ servo-test: $(SERVO_DEPS)
|
|||
$(RUSTC) $(RUSTFLAGS) --test -o $@ $<
|
||||
|
||||
src/rust-azure/libazure.dummy:
|
||||
make -C $(VPATH)/src/rust-azure
|
||||
make -C src/rust-azure
|
||||
|
||||
src/rust-sdl/libsdl.dummy:
|
||||
make -C $(VPATH)/src/rust-sdl
|
||||
make -C src/rust-sdl
|
||||
|
||||
src/rust-cocoa/libcocoa.dummy:
|
||||
make -C $(VPATH)/src/rust-cocoa
|
||||
make -C src/rust-cocoa
|
||||
|
||||
check: $(CHECK_DEPS)
|
||||
|
||||
|
@ -74,30 +77,30 @@ check-servo: servo-test
|
|||
|
||||
.PHONY: check-azure
|
||||
check-azure:
|
||||
make check -C $(VPATH)/src/rust-azure
|
||||
make check -C src/rust-azure
|
||||
|
||||
.PHONY: check-sdl
|
||||
check-sdl:
|
||||
make check -C $(VPATH)/src/rust-sdl
|
||||
make check -C src/rust-sdl
|
||||
|
||||
.PHONY: check-cocoa
|
||||
check-cocoa:
|
||||
make check -C $(VPATH)/src/rust-cocoa
|
||||
make check -C src/rust-cocoa
|
||||
|
||||
.PHONY: clean
|
||||
clean: $(CLEAN_DEPS)
|
||||
|
||||
.PHONY: clean-azure
|
||||
clean-azure:
|
||||
make clean -C $(VPATH)/src/rust-azure
|
||||
make clean -C src/rust-azure
|
||||
|
||||
.PHONY: clean-sdl
|
||||
clean-sdl:
|
||||
make clean -C $(VPATH)/src/rust-sdl
|
||||
make clean -C src/rust-sdl
|
||||
|
||||
.PHONY: clean-cocoa
|
||||
clean-cocoa:
|
||||
make clean -C $(VPATH)/src/rust-cocoa
|
||||
make clean -C src/rust-cocoa
|
||||
|
||||
.PHONY: clean-servo
|
||||
clean-servo:
|
||||
|
@ -111,9 +114,9 @@ package: servo
|
|||
mkdir -p Servo.app/Contents/MacOS/src/rust-azure
|
||||
cp $(VPATH)/Info.plist Servo.app/Contents/
|
||||
cp servo Servo.app/Contents/MacOS/
|
||||
cp $(VPATH)/src/rust-cocoa/lib*.dylib Servo.app/Contents/MacOS/src/rust-cocoa/
|
||||
cp $(VPATH)/src/rust-sdl/lib*.dylib Servo.app/Contents/MacOS/src/rust-sdl/
|
||||
cp $(VPATH)/src/rust-azure/lib*.dylib Servo.app/Contents/MacOS/src/rust-azure/
|
||||
cp src/rust-cocoa/lib*.dylib Servo.app/Contents/MacOS/src/rust-cocoa/
|
||||
cp src/rust-sdl/lib*.dylib Servo.app/Contents/MacOS/src/rust-sdl/
|
||||
cp src/rust-azure/lib*.dylib Servo.app/Contents/MacOS/src/rust-azure/
|
||||
|
||||
else
|
||||
|
||||
|
|
10
configure
vendored
10
configure
vendored
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
sed "s/%VPATH%/`dirname $0`/" `dirname $0`/Makefile.in > Makefile
|
||||
SRCDIR="$(cd $(dirname $0) && pwd)"
|
||||
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
|
||||
|
||||
mkdir -p src/rust-sdl
|
||||
mkdir -p src/rust-azure
|
||||
mkdir -p src/rust-cocoa
|
||||
|
||||
(cd src/rust-sdl && sh ${SRCDIR}/src/rust-sdl/configure)
|
||||
(cd src/rust-azure && sh ${SRCDIR}/src/rust-azure/configure)
|
||||
(cd src/rust-cocoa && sh ${SRCDIR}/src/rust-cocoa/configure)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 370d322af925fce23a2797c67499268d1cb5385e
|
||||
Subproject commit f1668780f2955fe935d1bce42e51677893bd34c8
|
|
@ -1 +1 @@
|
|||
Subproject commit ee0008f3e3adc815d45130d79d7d5d6d64d3a40b
|
||||
Subproject commit cff7503084162cc68598e059fa46ec634bc994fe
|
|
@ -1 +1 @@
|
|||
Subproject commit dffae144b0fa38c22b14b70e75d2767ccdfeca3f
|
||||
Subproject commit e0e4b019bdd1a1f15d8861e3255127cc8f030cd7
|
Loading…
Add table
Add a link
Reference in a new issue