[vlc-commits] contrib: meson crossfile: supply arguments as array elements

Konstantin Pavlov git at videolan.org
Fri Dec 21 17:08:41 CET 2018


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Dec 21 18:56:40 2018 +0300| [62b4693390a6b76cb5db8ce470566b039a84c13c] | committer: Konstantin Pavlov

contrib: meson crossfile: supply arguments as array elements

While meson seemingly accepts spaces in the arguments, this is cleaner.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=62b4693390a6b76cb5db8ce470566b039a84c13c
---

 contrib/src/main.mak | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 6017f5fc4c..574dbce8d6 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -553,10 +553,10 @@ crossfile.meson:
 	echo "[properties]" >> $@
 	echo "needs_exe_wrapper = true" >> $@
 ifdef HAVE_CROSS_COMPILE
-	echo "c_args = [ ' -I $(PREFIX)/include' ]" >> $@
-	echo "cpp_args = [ ' -I $(PREFIX)/include' ]" >> $@
-	echo "c_link_args = [' -L $(PREFIX)/lib' ]" >> $@
-	echo "cpp_link_args = [ ' -L $(PREFIX)/lib' ]" >> $@
+	echo "c_args = [ '-I', '$(PREFIX)/include' ]" >> $@
+	echo "cpp_args = [ '-I', '$(PREFIX)/include' ]" >> $@
+	echo "c_link_args = [ '-L', '$(PREFIX)/lib' ]" >> $@
+	echo "cpp_link_args = [ '-L', '$(PREFIX)/lib' ]" >> $@
 	echo "[host_machine]" >> $@
 ifdef HAVE_WIN32
 	echo "system = 'windows'" >> $@



More information about the vlc-commits mailing list