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