mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
parent
2b9c7742b9
commit
7f31b079e5
38
mk/rt.mk
38
mk/rt.mk
@ -92,14 +92,7 @@ RUNTIME_CXXS_$(1)_$(2) := \
|
|||||||
rt/rust_android_dummy.cpp \
|
rt/rust_android_dummy.cpp \
|
||||||
rt/rust_test_helpers.cpp
|
rt/rust_test_helpers.cpp
|
||||||
|
|
||||||
RUNTIME_CS_$(1)_$(2) := rt/sundown/src/autolink.c \
|
RUNTIME_CS_$(1)_$(2) :=
|
||||||
rt/sundown/src/buffer.c \
|
|
||||||
rt/sundown/src/stack.c \
|
|
||||||
rt/sundown/src/markdown.c \
|
|
||||||
rt/sundown/html/houdini_href_e.c \
|
|
||||||
rt/sundown/html/houdini_html_e.c \
|
|
||||||
rt/sundown/html/html_smartypants.c \
|
|
||||||
rt/sundown/html/html.c
|
|
||||||
|
|
||||||
RUNTIME_S_$(1)_$(2) := rt/arch/$$(HOST_$(1))/_context.S \
|
RUNTIME_S_$(1)_$(2) := rt/arch/$$(HOST_$(1))/_context.S \
|
||||||
rt/arch/$$(HOST_$(1))/record_sp.S
|
rt/arch/$$(HOST_$(1))/record_sp.S
|
||||||
@ -109,8 +102,6 @@ RT_BUILD_DIR_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/stage$(2)
|
|||||||
RUNTIME_DEF_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/rustrt$$(CFG_DEF_SUFFIX_$(1))
|
RUNTIME_DEF_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/rustrt$$(CFG_DEF_SUFFIX_$(1))
|
||||||
RUNTIME_INCS_$(1)_$(2) := -I $$(S)src/rt -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
|
RUNTIME_INCS_$(1)_$(2) := -I $$(S)src/rt -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
|
||||||
-I $$(S)src/rt/arch/$$(HOST_$(1)) \
|
-I $$(S)src/rt/arch/$$(HOST_$(1)) \
|
||||||
-I $$(S)src/rt/sundown/src \
|
|
||||||
-I $$(S)src/rt/sundown/html \
|
|
||||||
-I $$(S)src/libuv/include
|
-I $$(S)src/libuv/include
|
||||||
RUNTIME_OBJS_$(1)_$(2) := $$(RUNTIME_CXXS_$(1)_$(2):rt/%.cpp=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
|
RUNTIME_OBJS_$(1)_$(2) := $$(RUNTIME_CXXS_$(1)_$(2):rt/%.cpp=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
|
||||||
$$(RUNTIME_CS_$(1)_$(2):rt/%.c=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
|
$$(RUNTIME_CS_$(1)_$(2):rt/%.c=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
|
||||||
@ -242,6 +233,33 @@ $$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1))
|
|||||||
NO_LOAD="$$(LIBUV_NO_LOAD)" \
|
NO_LOAD="$$(LIBUV_NO_LOAD)" \
|
||||||
V=$$(VERBOSE)
|
V=$$(VERBOSE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
SUNDOWN_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),sundown)
|
||||||
|
SUNDOWN_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/sundown
|
||||||
|
SUNDOWN_LIB_$(1) := $$(SUNDOWN_DIR_$(1))/$$(SUNDOWN_NAME_$(1))
|
||||||
|
|
||||||
|
SUNDOWN_CS_$(1) := rt/sundown/src/autolink.c \
|
||||||
|
rt/sundown/src/buffer.c \
|
||||||
|
rt/sundown/src/stack.c \
|
||||||
|
rt/sundown/src/markdown.c \
|
||||||
|
rt/sundown/html/houdini_href_e.c \
|
||||||
|
rt/sundown/html/houdini_html_e.c \
|
||||||
|
rt/sundown/html/html_smartypants.c \
|
||||||
|
rt/sundown/html/html.c
|
||||||
|
|
||||||
|
SUNDOWN_OBJS_$(1) := $$(SUNDOWN_CS_$(1):rt/%.c=$$(SUNDOWN_DIR_$(1))/%.o)
|
||||||
|
|
||||||
|
$$(SUNDOWN_DIR_$(1))/%.o: rt/%.c
|
||||||
|
@$$(call E, compile: $$@)
|
||||||
|
@mkdir -p $$(@D)
|
||||||
|
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, \
|
||||||
|
-I $$(S)src/rt/sundown/src -I $$(S)src/rt/sundown/html \
|
||||||
|
$$(RUNTIME_CFLAGS_$(1))) $$<
|
||||||
|
|
||||||
|
$$(SUNDOWN_LIB_$(1)): $$(SUNDOWN_OBJS_$(1))
|
||||||
|
@$$(call E, link: $$@)
|
||||||
|
$$(Q)$$(AR_$(1)) rcs $$@ $$^
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Instantiate template for all stages/targets
|
# Instantiate template for all stages/targets
|
||||||
|
@ -57,10 +57,12 @@ $$(TLIB$(1)_T_$(4)_H_$(3))/$(CFG_LIBRUSTDOC_$(4)): \
|
|||||||
$$(RUSTDOC_LIB) $$(RUSTDOC_INPUTS) \
|
$$(RUSTDOC_LIB) $$(RUSTDOC_INPUTS) \
|
||||||
$$(SREQ$(1)_T_$(4)_H_$(3)) \
|
$$(SREQ$(1)_T_$(4)_H_$(3)) \
|
||||||
$$(TLIB$(1)_T_$(4)_H_$(3))/$(CFG_LIBRUSTC_$(4)) \
|
$$(TLIB$(1)_T_$(4)_H_$(3))/$(CFG_LIBRUSTC_$(4)) \
|
||||||
|
$$(SUNDOWN_LIB_$(4)) \
|
||||||
| $$(TLIB$(1)_T_$(4)_H_$(3))/
|
| $$(TLIB$(1)_T_$(4)_H_$(3))/
|
||||||
@$$(call E, compile_and_link: $$@)
|
@$$(call E, compile_and_link: $$@)
|
||||||
$$(call REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTDOC_GLOB_$(4)),$$(notdir $$@))
|
$$(call REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTDOC_GLOB_$(4)),$$(notdir $$@))
|
||||||
$$(STAGE$(1)_T_$(4)_H_$(3)) $$(WFLAGS_ST$(1)) --out-dir $$(@D) $$< && touch $$@
|
$$(STAGE$(1)_T_$(4)_H_$(3)) $$(WFLAGS_ST$(1)) \
|
||||||
|
-L $$(SUNDOWN_DIR_$(4)) --out-dir $$(@D) $$< && touch $$@
|
||||||
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTDOC_GLOB_$(4)),$$(notdir $$@))
|
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTDOC_GLOB_$(4)),$$(notdir $$@))
|
||||||
|
|
||||||
$$(TBIN$(1)_T_$(4)_H_$(3))/rustdoc$$(X_$(4)): \
|
$$(TBIN$(1)_T_$(4)_H_$(3))/rustdoc$$(X_$(4)): \
|
||||||
|
@ -69,6 +69,7 @@ struct buf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// sundown FFI
|
// sundown FFI
|
||||||
|
#[link_args = "-lsundown"]
|
||||||
extern {
|
extern {
|
||||||
fn sdhtml_renderer(callbacks: *sd_callbacks,
|
fn sdhtml_renderer(callbacks: *sd_callbacks,
|
||||||
options_ptr: *html_renderopt,
|
options_ptr: *html_renderopt,
|
||||||
|
@ -183,12 +183,6 @@ rust_uv_pipe_init
|
|||||||
rust_uv_signal_init
|
rust_uv_signal_init
|
||||||
rust_uv_signal_start
|
rust_uv_signal_start
|
||||||
rust_uv_signal_stop
|
rust_uv_signal_stop
|
||||||
sdhtml_renderer
|
|
||||||
sd_markdown_new
|
|
||||||
sd_markdown_render
|
|
||||||
sd_markdown_free
|
|
||||||
bufrelease
|
|
||||||
bufnew
|
|
||||||
rust_take_dlerror_lock
|
rust_take_dlerror_lock
|
||||||
rust_drop_dlerror_lock
|
rust_drop_dlerror_lock
|
||||||
rust_uv_pipe_open
|
rust_uv_pipe_open
|
||||||
|
Loading…
Reference in New Issue
Block a user