[vlc-devel] [PATCH 2/4] Add rust targets and cargo to contrib makefile
rustyc
kartikohri13 at gmail.com
Wed Jul 22 12:37:30 CEST 2020
From: Kartik Ohri <kartikohri13 at gmail.com>
---
contrib/src/main.mak | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 3119a39875..633e168e59 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -440,6 +440,25 @@ else
MESON = meson $(MESONFLAGS)
endif
+ifdef HAVE_WIN32
+RUST_TARGET = $(ARCH)-pc-windows-gnu
+else ifdef HAVE_BSD
+RUST_TARGET = $(HOST)
+else ifdef HAVE_ANDROID
+RUST_TARGET = $(HOST)
+else ifdef HAVE_IOS
+RUST_TARGET = $(ARCH)-apple-ios
+else ifdef HAVE_MACOSX
+RUST_TARGET = $(ARCH)-apple-darwin
+else ifdef HAVE_SOLARIS
+RUST_TARGET = x86_64-sun-solaris
+else ifdef HAVE_LINUX
+RUST_TARGET = $(ARCH)-unknown-linux-gnu
+endif
+
+CARGO = cargo cinstall --target=$(RUST_TARGET) --prefix=$(PREFIX) \
+ --library-type staticlib --release
+
ifdef GPL
REQUIRE_GPL =
else
--
2.25.1
More information about the vlc-devel
mailing list