if mode == 'debug' and use_vc and \
conf.CheckLibWithHeader('QtCored4', 'QtGui/QApplication', 'c++', 'QApplication qapp();'):
qt_lib_suffix = 'd4'
+ use_qt_debug_libs = True
else:
qt_lib_suffix = '4'
+ use_qt_debug_libs = False
else:
if mode == 'debug' and conf.CheckLibWithHeader('QtCore_debug', 'QtGui/QApplication', 'c++', 'QApplication qapp();'):
qt_lib_suffix = '_debug'
+ use_qt_debug_libs = True
else:
qt_lib_suffix = ''
+ use_qt_debug_libs = False
frontend_libs = [x + qt_lib_suffix for x in qt_libs]
qtcore_lib = ['QtCore' + qt_lib_suffix]
# process .C file!!! (add to cxx_suffixes )
#
qt4env.Tool('qt4', [scons_dir])
- qt4env.EnableQt4Modules(qt_libs, debug = (mode == 'debug'))
+ qt4env.EnableQt4Modules(qt_libs, debug = (mode == 'debug' and use_qt_debug_libs))
qt4env['QT4_AUTOSCAN'] = 0
qt4env['QT4_UICDECLFLAGS'] = '-tr lyx::qt_'
for ver in versions:
lib_files += filter(lambda x: re.search('libboost_%s-\w+-mt-([^dgy]+-)*%s.a' % (lib, ver), x), files)
if len(lib_files) == 0:
- print 'Warning: Can not find an appropriate boost library in %s.' % path
- print 'Allowed versions are ', ', '.join(versions)
+ if isDebug:
+ print 'Failed to find the debug version of boost', ' or '.join(versions)
+ else:
+ print 'Failed to find the release version of boost', ' or '.join(versions)
+ # use alternative libraries
for ver in versions:
lib_files += filter(lambda x: re.search('libboost_%s-[\w-]+%s.a' % (lib, ver), x), files)
if len(lib_files) > 0:
if len(lib_files) > 0:
# get xxx-gcc-1_33_1 from /usr/local/lib/libboost_xxx-gcc-1_33_1.a
lib_names.append(lib_files[0].split(os.sep)[-1][3:-2])
+ else:
+ break
if len(lib_names) == len(libs):
found_lib = True
lib_path = path