From 9f77f2a39abf7a7376251e27fdd594f4c1b03c81 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Tue, 14 Aug 2007 05:02:50 +0000 Subject: [PATCH] fix scons, telling scons how to moc files is still needed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19541 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/SConstruct | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/development/scons/SConstruct b/development/scons/SConstruct index 1cba99b1a3..6820ff300d 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -1728,6 +1728,15 @@ if build_qt4: env.BuildDir('$BUILDDIR/$frontend', '$TOP_SRCDIR/src/frontend/$frontend', duplicate = 0) print "Processing files in src/frontends/qt4..." + frontend_env['QT4_MOCHPREFIX'] = '' + frontend_env['QT4_MOCHSUFFIX'] = '_moc.cpp' + + # tells scons how to get these moced files, although not all moced files are needed + # (or are actually generated). + qt4_moced_files = [frontend_env.Moc4('$BUILDDIR/common/frontends/qt4/%s' % x) + for x in src_frontends_qt4_header_files ] + resources = [frontend_env.Uic4('$BUILDDIR/common/frontends/qt4/ui/%s' % x.split('.')[0]) + for x in src_frontends_qt4_ui_files] # # moc qt4_moc_files, the moced files are included in the original files -- 2.39.2