]> git.lyx.org Git - features.git/blob - src/SConscript
Scons: various fixes from Enrico (aspell, aikasurus etc), and correct handling of...
[features.git] / src / SConscript
1 # vi:filetype=python:expandtab:tabstop=2:shiftwidth=2
2
3 # file SConscript
4 #
5 # This file is part of LyX, the document processor.
6 # Licence details can be found in the file COPYING.
7
8 # \author Bo Peng
9 # Full author contact details are available in file CREDITS.
10
11 Import('env')
12
13 print "Entering src"
14
15 # building all the libraries
16 env.SConscript(
17   dirs = [
18     'mathed',
19     'insets',
20     'frontends',
21     'frontends/controllers',
22     'graphics',
23     'support',
24     'frontends/$frontend'
25   ], 
26   duplicate=0
27 )
28
29 if env['INCLUDED_BOOST']:
30   env.SConscript(dirs = ['#boost/libs'], duplicate=0)
31
32
33 # Start in src directory
34
35 env['SUBST_KEYS'] = ['PACKAGE_VERSION', 'VERSION_INFO']
36 env.substFile('version.C', 'version.C.in')
37
38 lyx_source = Split('''
39   Bidi.C 
40   BufferView.C 
41   BufferView_pimpl.C 
42   Bullet.C 
43   BranchList.C 
44   Chktex.C 
45   Color.C 
46   CutAndPaste.C 
47   DepTable.C 
48   FloatList.C 
49   Floating.C 
50   FontIterator.C 
51   FuncStatus.C 
52   InsetList.C 
53   LColor.C 
54   LaTeX.C 
55   LaTeXFeatures.C 
56   LyXAction.C 
57   MenuBackend.C 
58   ParagraphParameters.C 
59   PrinterParams.C 
60   Spacing.C 
61   Thesaurus.C 
62   ToolbarBackend.C 
63   author.C 
64   boost.C 
65   box.C 
66   buffer.C 
67   buffer_funcs.C 
68   bufferlist.C 
69   bufferparams.C 
70   bufferview_funcs.C 
71   changes.C 
72   chset.C 
73   converter.C 
74   counters.C 
75   coordcache.C 
76   cursor.C 
77   cursor_slice.C 
78   debug.C 
79   dimension.C 
80   dociterator.C 
81   encoding.C 
82   errorlist.C 
83   exporter.C 
84   gettext.C 
85   factory.C 
86   format.C 
87   funcrequest.C 
88   graph.C 
89   importer.C 
90   intl.C 
91   insetiterator.C 
92   kbmap.C 
93   kbsequence.C 
94   language.C 
95   session.C 
96   lengthcommon.C 
97   lyx_cb.C 
98   lyx_main.C 
99   lyx_sty.C 
100   lyxfont.C 
101   lyxfind.C 
102   lyxfunc.C 
103   lyxgluelength.C 
104   lyxlayout.C 
105   lyxlength.C 
106   lyxlex.C 
107   lyxlex_pimpl.C 
108   lyxrc.C 
109   lyxrow.C 
110   lyxrow_funcs.C 
111   lyxserver.C 
112   lyxsocket.C 
113   lyxtextclass.C 
114   lyxtextclasslist.C 
115   lyxvc.C 
116   messages.C 
117   metricsinfo.C 
118   mover.C 
119   output.C 
120   outputparams.C 
121   output_docbook.C 
122   output_latex.C 
123   output_linuxdoc.C 
124   output_plaintext.C 
125   paragraph.C 
126   paragraph_funcs.C 
127   paragraph_pimpl.C 
128   pariterator.C 
129   SpellBase.C 
130   rowpainter.C 
131   sgml.C 
132   tabular.C 
133   tex-accent.C 
134   tex-strings.C 
135   texrow.C 
136   text.C 
137   text2.C 
138   text3.C 
139   TocBackend.C 
140   toc.C 
141   trans.C 
142   trans_mgr.C 
143   undo.C 
144   vc-backend.C 
145   version.C 
146   vspace.C 
147   main.C
148 ''')
149
150 if env.has_key('USE_ASPELL') and env['USE_ASPELL']:
151   lyx_source += ['aspell.C']
152 elif env.has_key('USE_PSPELL') and env['USE_PSPELL']:
153   lyx_source += ['pspell.C']
154 elif env.has_key('USE_ISPELL') and env['USE_ISPELL']:
155   lyx_source += ['ispell.C']
156
157
158 #
159 # Build lyx with given frontend
160 #
161 lyx = env.Program(
162   target = 'lyx',
163   source = lyx_source,
164   LIBS = [
165     'mathed', 
166     'insets', 
167     'frontends', 
168     env['frontend'],
169     'controllers', 
170     'graphics', 
171     'supports'] + 
172     env['BOOST_LIBRARIES'] +
173     env['EXTRA_LIBS'] +
174     env['SYSTEM_LIBS']
175 )
176
177 # Return program
178 Return('lyx')