• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include ../tools.mk
2
3# ignore-cross-compile
4# ignore-wasm
5
6all:
7	$(RUSTC) --crate-type rlib -lbar_cli bar.rs
8	$(RUSTC) foo.rs -lfoo_cli --crate-type staticlib --print native-static-libs 2>&1 \
9		| grep 'note: native-static-libs: ' \
10		| sed 's/note: native-static-libs: \(.*\)/\1/' > $(TMPDIR)/libs.txt
11
12	cat $(TMPDIR)/libs.txt | grep -F "glib-2.0" # in bar.rs
13	cat $(TMPDIR)/libs.txt | grep -F "systemd" # in foo.rs
14	cat $(TMPDIR)/libs.txt | grep -F "bar_cli"
15	cat $(TMPDIR)/libs.txt | grep -F "foo_cli"
16