diff --git a/v2/tools/qt4.jam b/v2/tools/qt4.jam index 72fd3becf..b3f7d76fc 100644 --- a/v2/tools/qt4.jam +++ b/v2/tools/qt4.jam @@ -211,10 +211,15 @@ rule directory return $(.prefix) ; } +# Get and from current toolset +flags qt4.moc INCLUDES ; +flags qt4.moc DEFINES ; + # Processes headers to create Qt MetaObject information +# Qt4-moc has its c++-parser, so pass INCLUDES and DEFINES. actions moc { - $(.prefix)/bin/moc -I$(.prefix)/include -I$(.prefix)/include/QtCore -f $(>) -o $(<) + $(.prefix)/bin/moc -I$(INCLUDES) -I$(DEFINES) -f $(>) -o $(<) } # Generates source files from resource files