* INSTALL.scons: document this change.
* development/scons/SConstruct: check for included_boost to exclude boost
headers from the dependency tree.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14343
a592a061-630c-0410-9148-
cb99ea01b6c8
4. Windows/cygwin
5. windows/msvc
6. Other versions of lyx (1.4.x)
4. Windows/cygwin
5. windows/msvc
6. Other versions of lyx (1.4.x)
+7. Tips and hints
+8. Troubleshooting
1. General usage of scons
1. General usage of scons
so option boost=included is recommended.
so option boost=included is recommended.
+7. Tips and hints
+=================
+
+ * Using external boost libraries (install boost libraries and use
+ option boost=system) can speed up scons' starting time a lot, since
+ the boost headers will then be considered as system headers and will
+ not be included in the dependency tree.
+
+
+8. Troubleshooting
==================
When you get an error:
==================
When you get an error:
env['CPPPATH'] += ['$BUILDDIR/common', '$TOP_SRCDIR/src']
#
# Separating boost directories from CPPPATH stops scons from building
env['CPPPATH'] += ['$BUILDDIR/common', '$TOP_SRCDIR/src']
#
# Separating boost directories from CPPPATH stops scons from building
-# the dependency tree of boost header files, and effectively reduce
-# the null build time of lyx from 29s to 16s.
-if use_vc:
- env.AppendUnique(CCFLAGS = ['/I$BOOST_INC_PATH'])
+# the dependency tree for boost header files, and effectively reduce
+# the null build time of lyx from 29s to 16s. Since lyx may tweak local
+# boost headers, this is only done for system boost headers.
+if included_boost:
+ env.AppendUnique(CPPPATH = ['$BOOST_INC_PATH'])
- env.AppendUnique(CCFLAGS = ['-I$BOOST_INC_PATH'])
+ if use_vc:
+ env.PrependUnique(CCFLAGS = ['/I$BOOST_INC_PATH'])
+ else:
+ env.PrependUnique(CCFLAGS = ['-I$BOOST_INC_PATH'])
# for intl/config.h, intl/libintl.h and intl/libgnuintl.h
if env['nls'] and included_gettext:
# for intl/config.h, intl/libintl.h and intl/libgnuintl.h
if env['nls'] and included_gettext: