Skip to content

Commit

Permalink
Added -D support in valabind-cc and man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitor P. Iturri authored and radare committed Sep 27, 2013
1 parent ba2d9ad commit 32bccdd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions valabind-cc
Expand Up @@ -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)"
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions valabind-cc.1
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion valabind.1
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 32bccdd

Please sign in to comment.