mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
auto merge of #972 : metajack/servo/parbuild-bugs, r=kmcallister
This fixes several makefile issues around parallel builds as well as some general cleanup.
This commit is contained in:
commit
d6769de467
4 changed files with 34 additions and 8 deletions
|
@ -93,11 +93,11 @@ $(S)config.stamp : $(S)configure $(S)Makefile.in
|
||||||
ifneq ($(CFG_LOCAL_RUSTC),1)
|
ifneq ($(CFG_LOCAL_RUSTC),1)
|
||||||
$(CFG_RUSTC):
|
$(CFG_RUSTC):
|
||||||
@$(call E, building rustc)
|
@$(call E, building rustc)
|
||||||
$(Q)$(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" CFG_RUSTC_FLAGS="" RUSTFLAGS="" CC=gcc CXX=g++ LD=ld AR=ar
|
$(Q)CFG_RUSTC_FLAGS= CFG_ENABLE_DEBUG= RUSTFLAGS= $(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" CC=gcc CXX=g++ LD=ld AR=ar
|
||||||
|
|
||||||
clean-rust:
|
clean-rust:
|
||||||
@$(call E, cleaning rustc)
|
@$(call E, cleaning rustc)
|
||||||
$(Q)$(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" CFG_RUSTC_FLAGS="" RUSTFLAGS="" clean
|
$(Q)CFG_RUSTC_FLAGS= CFG_ENABLE_DEBUG= RUSTFLAGS= $(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" clean
|
||||||
|
|
||||||
else
|
else
|
||||||
$(CFG_RUSTC):
|
$(CFG_RUSTC):
|
||||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -605,7 +605,7 @@ done
|
||||||
if [ ${do_reconfigure} -ne 0 ]
|
if [ ${do_reconfigure} -ne 0 ]
|
||||||
then
|
then
|
||||||
cd ${CFG_BUILD_DIR}src/compiler/rust
|
cd ${CFG_BUILD_DIR}src/compiler/rust
|
||||||
RUST_CONFIGURE_ARGS=""
|
RUST_CONFIGURE_ARGS="--enable-debug"
|
||||||
if [ $CFG_OSTYPE = "linux-androideabi" ]; then
|
if [ $CFG_OSTYPE = "linux-androideabi" ]; then
|
||||||
RUST_CONFIGURE_ARGS="--target-triples=arm-linux-androideabi --android-cross-path=${CFG_ANDROID_CROSS_PATH}"
|
RUST_CONFIGURE_ARGS="--target-triples=arm-linux-androideabi --android-cross-path=${CFG_ANDROID_CROSS_PATH}"
|
||||||
fi
|
fi
|
||||||
|
|
10
mk/clean.mk
10
mk/clean.mk
|
@ -27,23 +27,23 @@ clean-fast: $(DEPS_CLEAN_TARGETS_FAST) clean-servo
|
||||||
|
|
||||||
clean-util:
|
clean-util:
|
||||||
@$(call E, "cleaning util")
|
@$(call E, "cleaning util")
|
||||||
$(Q)cd $(B)/src/components/util/ && rm -rf libutil*.dylib libutil*.so $(DONE_util)
|
$(Q)cd $(B)/src/components/util/ && rm -rf libutil*.dylib libutil*.dSYM libutil*.so $(DONE_util)
|
||||||
|
|
||||||
clean-msg:
|
clean-msg:
|
||||||
@$(call E, "cleaning msg")
|
@$(call E, "cleaning msg")
|
||||||
$(Q)cd $(B)/src/components/msg/ && rm -rf libmsg*.dylib libmsg*.so $(DONE_msg)
|
$(Q)cd $(B)/src/components/msg/ && rm -rf libmsg*.dylib libmsg*.dSYM libmsg*.so $(DONE_msg)
|
||||||
|
|
||||||
clean-net:
|
clean-net:
|
||||||
@$(call E, "cleaning net")
|
@$(call E, "cleaning net")
|
||||||
$(Q)cd $(B)/src/components/net/ && rm -rf libnet*.dylib libnet*.so $(DONE_net)
|
$(Q)cd $(B)/src/components/net/ && rm -rf libnet*.dylib libnet*.dSYM libnet*.so $(DONE_net)
|
||||||
|
|
||||||
clean-gfx:
|
clean-gfx:
|
||||||
@$(call E, "cleaning gfx")
|
@$(call E, "cleaning gfx")
|
||||||
$(Q)cd $(B)/src/components/gfx/ && rm -rf libgfx*.dylib libgfx*.so $(DONE_gfx)
|
$(Q)cd $(B)/src/components/gfx/ && rm -rf libgfx*.dylib libgfx*.dSYM libgfx*.so $(DONE_gfx)
|
||||||
|
|
||||||
clean-script:
|
clean-script:
|
||||||
@$(call E, "cleaning script")
|
@$(call E, "cleaning script")
|
||||||
$(Q)cd $(B)/src/components/script/ && rm -rf libscript*.dylib libscript*.so $(DONE_script)
|
$(Q)cd $(B)/src/components/script/ && rm -rf libscript*.dylib libscript*.dSYM libscript*.so $(DONE_script)
|
||||||
|
|
||||||
clean-servo: clean-gfx clean-util clean-net clean-script clean-msg
|
clean-servo: clean-gfx clean-util clean-net clean-script clean-msg
|
||||||
@$(call E, "cleaning servo")
|
@$(call E, "cleaning servo")
|
||||||
|
|
26
mk/sub.mk
26
mk/sub.mk
|
@ -45,33 +45,40 @@ DEPS_rust-azure += \
|
||||||
glfw-rs \
|
glfw-rs \
|
||||||
glfw \
|
glfw \
|
||||||
skia \
|
skia \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_glfw-rs += \
|
DEPS_glfw-rs += \
|
||||||
glfw \
|
glfw \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-layers += \
|
DEPS_rust-layers += \
|
||||||
rust-geom \
|
rust-geom \
|
||||||
rust-opengles \
|
rust-opengles \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_sharegl += \
|
DEPS_sharegl += \
|
||||||
rust-geom \
|
rust-geom \
|
||||||
rust-opengles \
|
rust-opengles \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-hubbub += \
|
DEPS_rust-hubbub += \
|
||||||
libhubbub \
|
libhubbub \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-netsurfcss += \
|
DEPS_rust-netsurfcss += \
|
||||||
libcss \
|
libcss \
|
||||||
rust-wapcaplet \
|
rust-wapcaplet \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-wapcaplet += \
|
DEPS_rust-wapcaplet += \
|
||||||
libwapcaplet \
|
libwapcaplet \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
CFLAGS_rust-wapcaplet += \
|
CFLAGS_rust-wapcaplet += \
|
||||||
|
@ -81,10 +88,12 @@ CFLAGS_rust-wapcaplet += \
|
||||||
DEPS_rust-css += \
|
DEPS_rust-css += \
|
||||||
rust-netsurfcss \
|
rust-netsurfcss \
|
||||||
rust-wapcaplet \
|
rust-wapcaplet \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-mozjs += \
|
DEPS_rust-mozjs += \
|
||||||
mozjs \
|
mozjs \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
CFLAGS_rust-mozjs += \
|
CFLAGS_rust-mozjs += \
|
||||||
|
@ -103,29 +112,35 @@ DEPS_rust-azure += \
|
||||||
rust-core-text \
|
rust-core-text \
|
||||||
rust-core-foundation \
|
rust-core-foundation \
|
||||||
rust-cocoa \
|
rust-cocoa \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-io-surface += \
|
DEPS_rust-io-surface += \
|
||||||
rust-core-foundation \
|
rust-core-foundation \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-alert += \
|
DEPS_rust-alert += \
|
||||||
rust-core-foundation \
|
rust-core-foundation \
|
||||||
rust-cocoa \
|
rust-cocoa \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_sharegl += \
|
DEPS_sharegl += \
|
||||||
rust-core-foundation \
|
rust-core-foundation \
|
||||||
rust-io-surface \
|
rust-io-surface \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-core-graphics += \
|
DEPS_rust-core-graphics += \
|
||||||
rust-core-foundation \
|
rust-core-foundation \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-core-text += \
|
DEPS_rust-core-text += \
|
||||||
rust-core-foundation \
|
rust-core-foundation \
|
||||||
rust-core-graphics \
|
rust-core-graphics \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-layers += \
|
DEPS_rust-layers += \
|
||||||
|
@ -133,16 +148,22 @@ DEPS_rust-layers += \
|
||||||
rust-core-graphics \
|
rust-core-graphics \
|
||||||
rust-core-text \
|
rust-core-text \
|
||||||
rust-cocoa \
|
rust-cocoa \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
DEPS_nss += \
|
||||||
|
nspr \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
ifeq ($(CFG_OSTYPE),unknown-linux-gnu)
|
ifeq ($(CFG_OSTYPE),unknown-linux-gnu)
|
||||||
|
|
||||||
DEPS_rust-azure += \
|
DEPS_rust-azure += \
|
||||||
rust-freetype \
|
rust-freetype \
|
||||||
rust-fontconfig \
|
rust-fontconfig \
|
||||||
rust-xlib \
|
rust-xlib \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
# See note at top of file
|
# See note at top of file
|
||||||
|
@ -150,6 +171,7 @@ DEPS_rust-layers += \
|
||||||
rust-freetype \
|
rust-freetype \
|
||||||
rust-fontconfig \
|
rust-fontconfig \
|
||||||
rust-xlib \
|
rust-xlib \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -160,21 +182,25 @@ DEPS_rust-azure += \
|
||||||
fontconfig \
|
fontconfig \
|
||||||
libfreetype2 \
|
libfreetype2 \
|
||||||
libexpat \
|
libexpat \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
# See note at top of file
|
# See note at top of file
|
||||||
DEPS_rust-layers += \
|
DEPS_rust-layers += \
|
||||||
rust-freetype \
|
rust-freetype \
|
||||||
rust-fontconfig \
|
rust-fontconfig \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-fontconfig += \
|
DEPS_rust-fontconfig += \
|
||||||
fontconfig \
|
fontconfig \
|
||||||
rust-freetype \
|
rust-freetype \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_rust-freetype += \
|
DEPS_rust-freetype += \
|
||||||
libfreetype2 \
|
libfreetype2 \
|
||||||
|
rust \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DEPS_fontconfig += \
|
DEPS_fontconfig += \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue