rust: rename lib to libsuricata_rust

Previously it was libsuricata.a, but eventually we want to get
to a place where libsuricata.a is a combination of the Rust
and C code.
pull/5866/head
Jason Ish 4 years ago
parent 325096a07f
commit a178ec6bef

@ -273,7 +273,7 @@
fi
echo -n "installation for $host OS... "
RUST_SURICATA_LIBNAME="libsuricata.a"
RUST_SURICATA_LIBNAME="libsuricata_rust.a"
e_magic_file=""
e_magic_file_comment="#"

@ -6,6 +6,7 @@ edition = "2018"
[lib]
crate-type = ["staticlib", "rlib"]
path = "@e_rustdir@/src/lib.rs"
name = "suricata_rust"
[profile.release]
debug = true

@ -45,9 +45,9 @@ else
$(CARGO) build $(RELEASE) $(NIGHTLY_ARGS) \
--features "$(RUST_FEATURES)" $(RUST_TARGET)
endif
if test -e $(RUST_SURICATA_LIBDIR)/suricata.lib; then \
cp $(RUST_SURICATA_LIBDIR)/suricata.lib \
$(RUST_SURICATA_LIBDIR)/libsuricata.a; \
if test -e $(RUST_SURICATA_LIBDIR)/suricata_rust.lib; then \
cp $(RUST_SURICATA_LIBDIR)/suricata_rust.lib \
$(RUST_SURICATA_LIBDIR)/${RUST_SURICATA_LIBNAME}; \
fi
$(MAKE) gen/rust-bindings.h

Loading…
Cancel
Save