- # frontend
- EnumOption('frontend', 'Main GUI', default_frontend,
- allowed_values = ('xform', 'qt2', 'qt3', 'qt4', 'gtk') ),
- # debug or release build
- EnumOption('mode', 'Building method', default_build_mode,
- allowed_values = ('debug', 'release') ),
- # boost libraries
- EnumOption('boost',
- 'Use included, system boost library, or try sytem boost first.',
- 'auto', allowed_values = (
- 'auto', # detect boost, if not found, use included
- 'included', # always use included boost
- 'system', # always use system boost, fail if can not find
- ) ),
- #
- EnumOption('gettext',
- 'Use included, system gettext library, or try sytem gettext first',
- 'auto', allowed_values = (
- 'auto', # detect gettext, if not found, use included
- 'included', # always use included gettext
- 'system', # always use system gettext, fail if can not find
- ) ),
- #
- EnumOption('spell', 'Choose spell checker to use.', 'auto',
- allowed_values = ('aspell', 'pspell', 'ispell', 'auto', 'no') ),
- # packaging method
- EnumOption('packaging', 'Packaging method to use.', default_packaging_method,
- allowed_values = ('windows', 'posix', 'macosx')),
- #
- BoolOption('fast_start', 'Whether or not use cached tests and keep current config.h', True),
- # No precompiled header support (too troublesome to make it work for msvc)
- # BoolOption('pch', 'Whether or not use pch', False),
- # enable assertion, (config.h has ENABLE_ASSERTIOS
- BoolOption('assertions', 'Use assertions', True),
- # enable warning, (config.h has WITH_WARNINGS)
- # default to False since MSVC does not have #warning
- BoolOption('warnings', 'Use warnings', False),
- # config.h define _GLIBCXX_CONCEPT_CHECKS
- # Note: for earlier version of gcc (3.3) define _GLIBCPP_CONCEPT_CHECKS
- BoolOption('concept_checks', 'Enable concept checks', True),
- #
- BoolOption('nls', 'Whether or not use native language support', True),
- #
- BoolOption('profiling', 'Whether or not enable profiling', False),
- # config.h define _GLIBCXX_DEBUG and _GLIBCXX_DEBUG_PEDANTIC
- BoolOption('stdlib_debug', 'Whether or not turn on stdlib debug', False),
- # using x11?
- BoolOption('X11', 'Use x11 windows system', default_with_x),
- # use MS VC++ to build lyx
- BoolOption('use_vc', 'Use MS VC++ to build lyx (cl.exe will be probed)', None),
- #
- PathOption('qt_dir', 'Path to qt directory', None),
- #
- PathOption('qt_include_path', 'Path to qt include directory', None),
- #
- PathOption('qt_lib_path', 'Path to qt library directory', None),
- # build directory, will use $mode if not set
- PathOption('build_dir', 'Build directory', None),
- # extra include and libpath
- PathOption('extra_inc_path', 'Extra include path', None),
- #
- PathOption('extra_lib_path', 'Extra library path', None),
- #
- PathOption('extra_bin_path', 'A convenient way to add a path to $PATH', None),
- #
- PathOption('extra_inc_path1', 'Extra include path', None),
- #
- PathOption('extra_lib_path1', 'Extra library path', None),
- # rebuild only specifed, comma separated targets
- ('rebuild', 'rebuild only specifed, comma separated targets', None),
- # can be set to a non-existing directory
- ('prefix', 'install architecture-independent files in PREFIX', default_prefix),
- # version suffix
- ('version_suffix', 'install lyx as lyx-suffix', None),
- # how to load options
- ('load_option', '''load option from previous scons run. option can be
- yes (default): load all options
- no: do not load any option
- opt1,opt2: load specified options
- -opt1,opt2: load all options other than specified ones''', 'yes'),
- #
- ('optimization', 'optimization CCFLAGS option.', None),
- #
- PathOption('exec_prefix', 'install architecture-independent executable files in PREFIX', None),
- # log file
- ('logfile', 'save commands (not outputs) to logfile', default_log_file),
- # provided for backward compatibility
- ('dest_dir', 'install to DESTDIR. (Provided for backward compatibility only)', None),
- # environment variable can be set as options.
- ('DESTDIR', 'install to DESTDIR', None),
- ('CC', 'replace default $CC', None),
- ('LINK', 'replace default $LINK', None),
- ('CPP', 'replace default $CPP', None),
- ('CXX', 'replace default $CXX', None),
- ('CXXCPP', 'replace default $CXXCPP', None),
- ('CCFLAGS', 'replace default $CCFLAGS', None),
- ('CPPFLAGS', 'replace default $CPPFLAGS', None),
- ('LINKFLAGS', 'replace default $LINKFLAGS', None),
+ # frontend
+ EnumOption('frontend', 'Main GUI', default_frontend,
+ allowed_values = ('xform', 'qt2', 'qt3', 'qt4', 'gtk') ),
+ # debug or release build
+ EnumOption('mode', 'Building method', default_build_mode,
+ allowed_values = ('debug', 'release') ),
+ # boost libraries
+ EnumOption('boost',
+ 'Use included, system boost library, or try sytem boost first.',
+ 'auto', allowed_values = (
+ 'auto', # detect boost, if not found, use included
+ 'included', # always use included boost
+ 'system', # always use system boost, fail if can not find
+ ) ),
+ #
+ EnumOption('gettext',
+ 'Use included, system gettext library, or try sytem gettext first',
+ 'auto', allowed_values = (
+ 'auto', # detect gettext, if not found, use included
+ 'included', # always use included gettext
+ 'system', # always use system gettext, fail if can not find
+ ) ),
+ #
+ EnumOption('spell', 'Choose spell checker to use.', 'auto',
+ allowed_values = ('aspell', 'pspell', 'ispell', 'auto', 'no') ),
+ # packaging method
+ EnumOption('packaging', 'Packaging method to use.', default_packaging_method,
+ allowed_values = ('windows', 'posix', 'macosx')),
+ #
+ BoolOption('fast_start', 'Whether or not use cached tests and keep current config.h', True),
+ # No precompiled header support (too troublesome to make it work for msvc)
+ # BoolOption('pch', 'Whether or not use pch', False),
+ # enable assertion, (config.h has ENABLE_ASSERTIOS
+ BoolOption('assertions', 'Use assertions', True),
+ # enable warning, (config.h has WITH_WARNINGS)
+ # default to False since MSVC does not have #warning
+ BoolOption('warnings', 'Use warnings', False),
+ # config.h define _GLIBCXX_CONCEPT_CHECKS
+ # Note: for earlier version of gcc (3.3) define _GLIBCPP_CONCEPT_CHECKS
+ BoolOption('concept_checks', 'Enable concept checks', True),
+ #
+ BoolOption('nls', 'Whether or not use native language support', True),
+ #
+ BoolOption('profiling', 'Whether or not enable profiling', False),
+ # config.h define _GLIBCXX_DEBUG and _GLIBCXX_DEBUG_PEDANTIC
+ BoolOption('stdlib_debug', 'Whether or not turn on stdlib debug', False),
+ # using x11?
+ BoolOption('X11', 'Use x11 windows system', default_with_x),
+ # use MS VC++ to build lyx
+ BoolOption('use_vc', 'Use MS VC++ to build lyx (cl.exe will be probed)', None),
+ #
+ PathOption('qt_dir', 'Path to qt directory', None),
+ #
+ PathOption('qt_include_path', 'Path to qt include directory', None),
+ #
+ PathOption('qt_lib_path', 'Path to qt library directory', None),
+ # build directory, will use $mode if not set
+ PathOption('build_dir', 'Build directory', None),
+ # extra include and libpath
+ PathOption('extra_inc_path', 'Extra include path', None),
+ #
+ PathOption('extra_lib_path', 'Extra library path', None),
+ #
+ PathOption('extra_bin_path', 'A convenient way to add a path to $PATH', None),
+ #
+ PathOption('extra_inc_path1', 'Extra include path', None),
+ #
+ PathOption('extra_lib_path1', 'Extra library path', None),
+ # rebuild only specifed, comma separated targets
+ ('rebuild', 'rebuild only specifed, comma separated targets', None),
+ # can be set to a non-existing directory
+ ('prefix', 'install architecture-independent files in PREFIX', default_prefix),
+ # version suffix
+ ('version_suffix', 'install lyx as lyx-suffix', None),
+ # how to load options
+ ('load_option', '''load option from previous scons run. option can be
+ yes (default): load all options
+ no: do not load any option
+ opt1,opt2: load specified options
+ -opt1,opt2: load all options other than specified ones''', 'yes'),
+ #
+ ('optimization', 'optimization CCFLAGS option.', None),
+ #
+ PathOption('exec_prefix', 'install architecture-independent executable files in PREFIX', None),
+ # log file
+ ('logfile', 'save commands (not outputs) to logfile', default_log_file),
+ # provided for backward compatibility
+ ('dest_dir', 'install to DESTDIR. (Provided for backward compatibility only)', None),
+ # environment variable can be set as options.
+ ('DESTDIR', 'install to DESTDIR', None),
+ ('CC', 'replace default $CC', None),
+ ('LINK', 'replace default $LINK', None),
+ ('CPP', 'replace default $CPP', None),
+ ('CXX', 'replace default $CXX', None),
+ ('CXXCPP', 'replace default $CXXCPP', None),
+ ('CCFLAGS', 'replace default $CCFLAGS', None),
+ ('CPPFLAGS', 'replace default $CPPFLAGS', None),
+ ('LINKFLAGS', 'replace default $LINKFLAGS', None),