mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Build with make instead of rustpkg.
This commit is contained in:
parent
cb336a1831
commit
0c62b99559
21 changed files with 52 additions and 117 deletions
|
@ -1,36 +0,0 @@
|
|||
EMPTY=
|
||||
SPACE=$(EMPTY) $(EMPTY)
|
||||
|
||||
define DEF_SUBMODULE_RUSTPKG_RULES
|
||||
|
||||
$(eval $(call DEF_SUBMODULE_DEPS,$(1)))
|
||||
|
||||
$(1) : $$(DONE_$(1))
|
||||
.PHONY : $(1)
|
||||
|
||||
DO_CLEAN_$(1) = rm -rf $$(DONE_$(1)) $(CFG_BUILD_HOME)/workspace/build/$(CFG_TARGET_TRIPLES)/$(1)
|
||||
|
||||
EXTRA_RFLAGS_$(1) =
|
||||
|
||||
ifeq ($$(shell uname -s),Darwin)
|
||||
ifeq ($$(shell sw_vers | grep -c 10.6),1)
|
||||
EXTRA_RFLAGS_$(1) += --cfg mac_10_6
|
||||
endif
|
||||
ifeq ($$(shell sw_vers | grep -c 10.7),1)
|
||||
EXTRA_RFLAGS_$(1) += --cfg mac_10_7
|
||||
endif
|
||||
else
|
||||
endif
|
||||
|
||||
clean-$(1) :
|
||||
$$(Q) $$(DO_CLEAN_$(1))
|
||||
.PHONY : clean-$(1)
|
||||
|
||||
# Need to clean otherwise rustpkg won't rebuild.
|
||||
$$(DONE_$(1)) : $$(DONE_rust) $$(DONE_DEPS_$(1)) $$(ROUGH_DEPS_$(1))
|
||||
$$(Q) $$(DO_CLEAN_$(1))
|
||||
$$(Q) RUST_PATH=$(CFG_BUILD_HOME)workspace:$(subst $(SPACE),:,$(foreach submodule,$(strip $(CFG_SUBMODULES_RUSTPKG)),$(S)src/$(submodule))) \
|
||||
$(CFG_RUSTPKG) --rust-path-hack install $(CFG_RUSTC_FLAGS) $$(EXTRA_RFLAGS_$(1)) $(1)
|
||||
|
||||
endef
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue