From 32bccdd9912f34c40cbcbd9f0ee8b277c2af0338 Mon Sep 17 00:00:00 2001 From: "Aitor P. Iturri" Date: Mon, 15 Jul 2013 19:20:27 +0200 Subject: [PATCH] Added -D support in valabind-cc and man pages --- valabind-cc | 3 +++ valabind-cc.1 | 1 + valabind.1 | 5 ++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/valabind-cc b/valabind-cc index 04f733d..c290d7b 100755 --- a/valabind-cc +++ b/valabind-cc @@ -22,6 +22,7 @@ show_help () { echo " -C do not compile, just let the .c/.cxx and .i files" echo " -n do not generate .i/.c/.cxx code, but compile it" echo " -N[nspace] include namespace in the output" + echo " -D[SYMBOL] define vala symbol Symbol" echo " Environment:" echo " VALABIND_DEBUG if not empty show stderr of commands" echo " PYTHON_CONFIG path to python-config program (select py2 or py3)" @@ -198,6 +199,8 @@ while : ; do COMPILE="" elif [ "`echo $1 | grep -- '-pthread'`" ]; then echo ignored $1 + elif [ "`echo $1 | grep -- '-D'`" ]; then + VALABINDFLAGS="`echo $1|sed -e 's,^-D,-D ,'` ${VALABINDFLAGS}" else FILES="$1 ${FILES}" fi diff --git a/valabind-cc.1 b/valabind-cc.1 index f2b4f7d..da73acd 100644 --- a/valabind-cc.1 +++ b/valabind-cc.1 @@ -21,6 +21,7 @@ .Op Fl I Ar path .Op Fl L Ar path .Op Fl l Ar libname +.Op Fl D Ar SYMBOL .Op Fl C .Ar vapifile .Sh DESCRIPTION diff --git a/valabind.1 b/valabind.1 index bed3178..55c09d5 100644 --- a/valabind.1 +++ b/valabind.1 @@ -15,6 +15,7 @@ .Op Fl m Ar modname .Op Fl p Ar profile .Op Fl N Ar namespace +.Op Fl D Ar SYMBOL .Op Fl -swig .Op Fl -node-ffi .Op Fl -ctypes @@ -35,6 +36,8 @@ specify output file name specify module name .It Fl N Ar NS include given namespace for processing +.It Fl D Ar SYMBOL +define a preprocessor symbol inside Vala code .It Fl p Ar PROFILE select Vala profile (posix, gobject, dova) .It Fl x @@ -52,7 +55,7 @@ Standard freedesktop environment variable to point to the share prefix directory . .Sh HYPER-REFERENCES .Bl -tag -width Fl -.It Vala +.It Vala http://live.gnome.org/Vala .It SWIG http://www.swig.org