- ''')]
-)
-env.fileCopy('$BUILDDIR/tex2lyx', '$BUILDDIR/common/tex2lyx/tex2lyx')
-Alias('tex2lyx', tex2lyx)
-#
-# src/
-#
-
-print "Processing files in src"
-
-env['SUBST_KEYS'] = ['PACKAGE_VERSION', 'VERSION_INFO']
-env.substFile('$BUILDDIR/common/version.C', '$TOP_SRC_DIR/src/version.C.in')
-
-lyx_source = Split('''
- Bidi.C
- BufferView.C
- BufferView_pimpl.C
- Bullet.C
- BranchList.C
- Chktex.C
- Color.C
- CutAndPaste.C
- DepTable.C
- FloatList.C
- Floating.C
- FontIterator.C
- FuncStatus.C
- InsetList.C
- LColor.C
- LaTeX.C
- LaTeXFeatures.C
- LyXAction.C
- MenuBackend.C
- ParagraphParameters.C
- PrinterParams.C
- Spacing.C
- Thesaurus.C
- ToolbarBackend.C
- author.C
- boost.C
- box.C
- buffer.C
- buffer_funcs.C
- bufferlist.C
- bufferparams.C
- bufferview_funcs.C
- changes.C
- chset.C
- converter.C
- counters.C
- coordcache.C
- cursor.C
- cursor_slice.C
- debug.C
- dimension.C
- dociterator.C
- encoding.C
- errorlist.C
- exporter.C
- gettext.C
- factory.C
- format.C
- funcrequest.C
- graph.C
- importer.C
- intl.C
- insetiterator.C
- kbmap.C
- kbsequence.C
- language.C
- session.C
- lengthcommon.C
- lyx_cb.C
- lyx_main.C
- lyx_sty.C
- lyxfont.C
- lyxfind.C
- lyxfunc.C
- lyxgluelength.C
- lyxlayout.C
- lyxlength.C
- lyxlex.C
- lyxlex_pimpl.C
- lyxrc.C
- lyxrow.C
- lyxrow_funcs.C
- lyxserver.C
- lyxsocket.C
- lyxtextclass.C
- lyxtextclasslist.C
- lyxvc.C
- messages.C
- metricsinfo.C
- mover.C
- output.C
- outputparams.C
- output_docbook.C
- output_latex.C
- output_linuxdoc.C
- output_plaintext.C
- paragraph.C
- paragraph_funcs.C
- paragraph_pimpl.C
- pariterator.C
- SpellBase.C
- rowpainter.C
- sgml.C
- tabular.C
- tex-accent.C
- tex-strings.C
- texrow.C
- text.C
- text2.C
- text3.C
- TocBackend.C
- toc.C
- trans.C
- trans_mgr.C
- undo.C
- vc-backend.C
- version.C
- vspace.C
- main.C
-''')
-
-if env.has_key('USE_ASPELL') and env['USE_ASPELL']:
- lyx_source.append('aspell.C')
-elif env.has_key('USE_PSPELL') and env['USE_PSPELL']:
- lyx_source.append('pspell.C')
-elif env.has_key('USE_ISPELL') and env['USE_ISPELL']:
- lyx_source.append('ispell.C')
-
-#
-# Build lyx with given frontend
-#
-lyx = env.Program(
- target = '$BUILDDIR/$frontend/lyx',
- source = ["$BUILDDIR/common/%s" % x for x in lyx_source],
- LIBS = [
- 'mathed',
- 'insets',
- 'frontends',
- env['frontend'],
- 'controllers',
- 'graphics',
- 'supports'] +
- env['BOOST_LIBRARIES'] +
- env['EXTRA_LIBS'] +
- env['SYSTEM_LIBS']
-)
-Alias('lyx', lyx)
-
-env.fileCopy('$BUILDDIR/lyx$frontend', '$BUILDDIR/$frontend/lyx')
-
-# other targets include client, tex2lyx
-Default('lyx')
-
-Alias('install', env.installProg(Dir(env['BIN_DIR']),
- [lyx, tex2lyx, lyxclient]))
-## Alias('install', env.installProg(Dir(os.path.join(env['PREFIX'], 'share/lyx/')),
-## [Dir(env.subst('$TOP_SRC_DIR/lib/') + dir) for dir in ['images', 'layouts', 'scripts', 'templates', \
-## 'examples', 'kbd', 'lyx2lyx', 'tex', 'clipart', 'doc', 'ui'] ] + \
-## [File(env.subst('$TOP_SRC_DIR/lib/') + file) for file in ['configure.py', 'encodings', 'chkconfig.ltx', 'CREDITS', \
-## 'external_templates', 'symbols', 'languages', 'lyxrc.example', 'syntax.default']]))
+ text2.C
+ text3.C
+ TocBackend.C
+ toc.C
+ trans.C
+ trans_mgr.C
+ undo.C
+ vc-backend.C
+ version.C
+ vspace.C
+ main.C
+ ''')
+
+ if env.has_key('USE_ASPELL') and env['USE_ASPELL']:
+ lyx_source.append('aspell.C')
+ elif env.has_key('USE_PSPELL') and env['USE_PSPELL']:
+ lyx_source.append('pspell.C')
+ elif env.has_key('USE_ISPELL') and env['USE_ISPELL']:
+ lyx_source.append('ispell.C')
+
+ #
+ # Build lyx with given frontend
+ #
+ lyx = env.Program(
+ target = '$BUILDDIR/$frontend/lyx',
+ source = ["$BUILDDIR/common/%s" % x for x in lyx_source],
+ LIBS = [
+ 'mathed',
+ 'insets',
+ 'frontends',
+ env['frontend'],
+ 'controllers',
+ 'graphics',
+ 'supports'] +
+ env['BOOST_LIBRARIES'] +
+ env['EXTRA_LIBS'] +
+ env['SYSTEM_LIBS']
+ )
+ Alias('lyx', lyx)
+
+if 'install' in targets:
+ env.fileCopy('$BUILDDIR/lyx$frontend', '$BUILDDIR/$frontend/lyx')
+
+ # other targets include client, tex2lyx
+ Default('lyx')
+
+ Alias('install', env.installProg(Dir(env['BIN_DIR']),
+ [lyx, tex2lyx, lyxclient]))
+ ## Alias('install', env.installProg(Dir(os.path.join(env['PREFIX'], 'share/lyx/')),
+ ## [Dir(env.subst('$TOP_SRC_DIR/lib/') + dir) for dir in ['images', 'layouts', 'scripts', 'templates', \
+ ## 'examples', 'kbd', 'lyx2lyx', 'tex', 'clipart', 'doc', 'ui'] ] + \
+ ## [File(env.subst('$TOP_SRC_DIR/lib/') + file) for file in ['configure.py', 'encodings', 'chkconfig.ltx', 'CREDITS', \
+ ## 'external_templates', 'symbols', 'languages', 'lyxrc.example', 'syntax.default']]))