Thinking about using QT in your project?
WAF supports compiling QT moc files (Meta-Object-Compiler). See http://doc.qt.io/ and search for Meta-Object-Compiler for more information.
To enable/disable moccing of particular files you first have to:
# wscript relative path
QT_TO_MOC_FILES = [
'MyQTFile.h',
'MyOtherQTFile.h',
...
]
def build(bld):
bld.CryPlugin(
target = 'MyQTPlugin',
vs_filter = 'Plugins',
file_list = 'file_list.waf_files',
features = 'qt', # add the QT moc feature to this WAF module
qt_to_moc_files = QT_TO_MOC_FILES #list of files to go through the QT moc process
)