Skip to content

Commit 32bccdd

Browse files
Aitor P. Iturriradare
authored andcommitted
Added -D support in valabind-cc and man pages
1 parent ba2d9ad commit 32bccdd

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

valabind-cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ show_help () {
2222
echo " -C do not compile, just let the .c/.cxx and .i files"
2323
echo " -n do not generate .i/.c/.cxx code, but compile it"
2424
echo " -N[nspace] include namespace in the output"
25+
echo " -D[SYMBOL] define vala symbol Symbol"
2526
echo " Environment:"
2627
echo " VALABIND_DEBUG if not empty show stderr of commands"
2728
echo " PYTHON_CONFIG path to python-config program (select py2 or py3)"
@@ -198,6 +199,8 @@ while : ; do
198199
COMPILE=""
199200
elif [ "`echo $1 | grep -- '-pthread'`" ]; then
200201
echo ignored $1
202+
elif [ "`echo $1 | grep -- '-D'`" ]; then
203+
VALABINDFLAGS="`echo $1|sed -e 's,^-D,-D ,'` ${VALABINDFLAGS}"
201204
else
202205
FILES="$1 ${FILES}"
203206
fi

valabind-cc.1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
.Op Fl I Ar path
2222
.Op Fl L Ar path
2323
.Op Fl l Ar libname
24+
.Op Fl D Ar SYMBOL
2425
.Op Fl C
2526
.Ar vapifile
2627
.Sh DESCRIPTION

valabind.1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
.Op Fl m Ar modname
1616
.Op Fl p Ar profile
1717
.Op Fl N Ar namespace
18+
.Op Fl D Ar SYMBOL
1819
.Op Fl -swig
1920
.Op Fl -node-ffi
2021
.Op Fl -ctypes
@@ -35,6 +36,8 @@ specify output file name
3536
specify module name
3637
.It Fl N Ar NS
3738
include given namespace for processing
39+
.It Fl D Ar SYMBOL
40+
define a preprocessor symbol inside Vala code
3841
.It Fl p Ar PROFILE
3942
select Vala profile (posix, gobject, dova)
4043
.It Fl x
@@ -52,7 +55,7 @@ Standard freedesktop environment variable to point to the share prefix directory
5255
.
5356
.Sh HYPER-REFERENCES
5457
.Bl -tag -width Fl
55-
.It Vala
58+
.It Vala
5659
http://live.gnome.org/Vala
5760
.It SWIG
5861
http://www.swig.org

0 commit comments

Comments
 (0)