mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
36cf88893c
Add .rs as a recognized file extension in SOURCES. Propagate that through to the Makefile backend and add a dependency generated and an explicit rule to call $(RUSTC) to compile them. rustc builds static libraries, not obj files. At least, if one asks it to output an obj file, I'm not clear how to get all the compiler-specific runtime libraries the code will expect to link to. Therefore we generate a static library for each rust source file (which must be a complete crate for the time being) and link that. Because of the extension it ends up on the LIBS line in the the corresponding .desc file. Note that the static library does still depend on some system libraries, e.g. -ldl -lpthread -lm on linux. Gecko already links to all of those, so we don't keep track of it here. Should we need to add explicit linkage for other targets, rustc does print a list to stderr which can be parsed. |
||
---|---|---|
.. | ||
external | ||
makefiles | ||
Moz | ||
tests | ||
android-common.mk | ||
autoconf-js.mk.in | ||
autoconf.mk.in | ||
baseconfig.mk | ||
check_source_count.py | ||
check_spidermonkey_style.py | ||
check_vanilla_allocations.py | ||
config.mk | ||
configobj.py | ||
createprecomplete.py | ||
doxygen.cfg.in | ||
emptyvars-js.mk.in | ||
emptyvars.mk.in | ||
expandlibs_config.py | ||
expandlibs_exec.py | ||
expandlibs_gen.py | ||
expandlibs.py | ||
find_OOM_errors.py | ||
gcc_hidden_dso_handle.h | ||
gcc_hidden.h | ||
gcc-stl-wrapper.template.h | ||
glibcversion.sh | ||
install.bat | ||
link.py | ||
make-stl-wrappers.py | ||
Makefile.in | ||
milestone.txt | ||
moz.build | ||
mozunit.py | ||
MozZipFile.py | ||
msvc-stl-wrapper.template.h | ||
nsinstall.c | ||
nsinstall.py | ||
pathsub.c | ||
pathsub.h | ||
printconfigsetting.py | ||
printprereleasesuffix.py | ||
pythonpath.py | ||
rebuild_check.py | ||
recurse.mk | ||
rules.mk | ||
solaris_ia32.map | ||
static-checking-config.mk | ||
static-checking.js | ||
stl-headers | ||
string-format.js | ||
system-headers | ||
version_win.pl | ||
version.mk |