]> git.lyx.org Git - features.git/blob - src/SConscript
Some fixes to the scons-based building sytem, from Bo Peng (ben.bob@gmail.com)
[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 )
27
28 if env['INCLUDED_BOOST']:
29   env.SConscript(dirs = ['#boost/libs'])
30
31
32 # Start in src directory
33
34 env.substFile('version.C', 'version.C.in')
35
36 lyx_source = Split('''
37   Bidi.C 
38   BufferView.C 
39   BufferView_pimpl.C 
40   Bullet.C 
41   BranchList.C 
42   Chktex.C 
43   Color.C 
44   CutAndPaste.C 
45   DepTable.C 
46   FloatList.C 
47   Floating.C 
48   FontIterator.C 
49   FuncStatus.C 
50   InsetList.C 
51   LColor.C 
52   LaTeX.C 
53   LaTeXFeatures.C 
54   LyXAction.C 
55   MenuBackend.C 
56   ParagraphParameters.C 
57   PrinterParams.C 
58   Spacing.C 
59   Thesaurus.C 
60   ToolbarBackend.C 
61   author.C 
62   boost.C 
63   box.C 
64   buffer.C 
65   buffer_funcs.C 
66   bufferlist.C 
67   bufferparams.C 
68   bufferview_funcs.C 
69   changes.C 
70   chset.C 
71   converter.C 
72   counters.C 
73   coordcache.C 
74   cursor.C 
75   cursor_slice.C 
76   debug.C 
77   dimension.C 
78   dociterator.C 
79   encoding.C 
80   errorlist.C 
81   exporter.C 
82   gettext.C 
83   factory.C 
84   format.C 
85   funcrequest.C 
86   graph.C 
87   importer.C 
88   intl.C 
89   insetiterator.C 
90   kbmap.C 
91   kbsequence.C 
92   language.C 
93   session.C 
94   lengthcommon.C 
95   lyx_cb.C 
96   lyx_main.C 
97   lyx_sty.C 
98   lyxfont.C 
99   lyxfind.C 
100   lyxfunc.C 
101   lyxgluelength.C 
102   lyxlayout.C 
103   lyxlength.C 
104   lyxlex.C 
105   lyxlex_pimpl.C 
106   lyxrc.C 
107   lyxrow.C 
108   lyxrow_funcs.C 
109   lyxserver.C 
110   lyxsocket.C 
111   lyxtextclass.C 
112   lyxtextclasslist.C 
113   lyxvc.C 
114   messages.C 
115   metricsinfo.C 
116   mover.C 
117   output.C 
118   outputparams.C 
119   output_docbook.C 
120   output_latex.C 
121   output_linuxdoc.C 
122   output_plaintext.C 
123   paragraph.C 
124   paragraph_funcs.C 
125   paragraph_pimpl.C 
126   pariterator.C 
127   SpellBase.C 
128   rowpainter.C 
129   sgml.C 
130   tabular.C 
131   tex-accent.C 
132   tex-strings.C 
133   texrow.C 
134   text.C 
135   text2.C 
136   text3.C 
137   TocBackend.C 
138   toc.C 
139   trans.C 
140   trans_mgr.C 
141   undo.C 
142   vc-backend.C 
143   version.C 
144   vspace.C 
145   main.C
146 ''')
147
148 if env.has_key('USE_ASPELL') and env['USE_ASPELL']:
149   lyx_source += ['aspell.C']
150 elif env.has_key('USE_PSPELL') and env['USE_PSPELL']:
151   lyx_source += ['pspell.C']
152 elif env.has_key('USE_ISPELL') and env['USE_ISPELL']:
153   lyx_source += ['ispell.C']
154
155
156 #
157 # Build lyx with given frontend
158 #
159 lyx = env.Program(
160   target = 'lyx',
161   source = lyx_source,
162   LIBS = [
163     'mathed', 
164     'insets', 
165     'frontends', 
166     env['frontend'],
167     'controllers', 
168     'graphics', 
169     'supports',
170     'z' ] + 
171     env['EXTRA_LIBS'] +
172     env['BOOST_LIBRARIES']
173 )
174
175 # Return program
176 Return('lyx')