mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
fix/simplify embedding build and libservo build
This commit is contained in:
parent
69e3b44c32
commit
43326ac255
1 changed files with 3 additions and 7 deletions
10
Makefile.in
10
Makefile.in
|
@ -340,20 +340,16 @@ $(BINDINGS_SRC)/ParserResults.pkl: $(globalgen_dependencies) \
|
|||
ifneq ($(CFG_OSTYPE),linux-androideabi)
|
||||
servo: $(DEPS_servo)
|
||||
@$(call E, compile: $@)
|
||||
$(Q)$(RUSTC) $(RFLAGS_servo) -o $@ $<
|
||||
|
||||
libservo.dummy: $(DEPS_servo)
|
||||
@$(call E, compile: $@)
|
||||
$(Q)$(RUSTC) $(RFLAGS_servo) -o servo $< --crate-type bin
|
||||
$(Q)$(RUSTC) $(RFLAGS_servo) $< --crate-type dylib,rlib
|
||||
touch libservo.dummy
|
||||
|
||||
RFLAGS_embedding = $(strip $(CFG_RUSTC_FLAGS)) $(addprefix -L $(B)src/,$(DEPS_SUBMODULES)) -L $(B)src/components/gfx -L $(B)src/components/util -L $(B)src/components/net -L $(B)src/components/script -L $(B)src/components/style -L $(B)src/components/msg -L $(B).. -L $(B)src/components/main -L $(B)src/components/macros -A non_camel_case_types -A unused_variable
|
||||
SRC_embedding = $(call rwildcard,$(S)src/components/embedding/,*.rs)
|
||||
CRATE_embedding = $(S)src/components/embedding/embedding.rs
|
||||
|
||||
servo-embedding: libservo.dummy $(SRC_embedding) $(CRATE_embedding)
|
||||
servo-embedding: servo $(SRC_embedding) $(CRATE_embedding)
|
||||
@$(call E, compile: $@)
|
||||
$(Q)$(RUSTC) $(RFLAGS_embedding) $(CRATE_embedding) --crate-type dylib,rlib
|
||||
$(Q)$(RUSTC) $(RFLAGS_embedding) $(CRATE_embedding)
|
||||
touch servo-embedding
|
||||
else
|
||||
servo: $(DEPS_servo)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue