1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
|
<html>
<head>
</head>
<body>
<div class="h2 app" style="border-left: 0px" id="customcontent">
<h2>What is SCons?</h2>
<p>SCons is a next-generation,
cross-platform, build tool.
Think of SCons as an improved
substitute for the classic
<tt>Make</tt> utility
with integrated functionality
similar to <tt>autoconf</tt>/<tt>automake</tt>
and compiler caches such as <tt>ccache</tt>.
</p>
<p>
Unlike build tools that invent their own mini-language
or wedge a scripting language onto some other
configuration file syntax,
SCons configuration files
are actually Python scripts.
The ability to script your build
gives you a tremendous amount of flexibility
to solve complicated build problems
in surprisingly small amounts of maintainable code.
</p>
<p>
In short, SCons is an easier, more reliable
and more flexible way to build software.
</p>
<!--
<h2><b>Goal</b></h2>
<p>The primary goal of The SCons Project
is to become the premiere enterprise-quality tool for
building cross-platform, multi-language software projects
by offering unparalleled <b>reliability</b> and <b>flexibility</b>
to software buildmasters and developers.
</p>
<p>
Yeah, yeah, every project has similar lofty mom-and-apple-pie goals,
blah, blah, blah...
So why is SCons any different?
Fair question.
If you go to our public home page at
<a href="http://www.scons.org/">http://www.scons.org</a>
you'll get the usual lists of
supported features and platforms, testimonials, etc.
But you're presumably at <emphasis>this</emphasis>
project page because you're interested in digging a little deeper.
So here are the <emphasis>philosophical viewpoints</emphasis>
that we think contribute to SCons being
a really distinctive software build tool:
</p>
<ul>
<li>
<strong>Software builds are getting more complicated, not less</strong>
<p>
The proliferation of programming languages and technologies
have led to increasingly difficult demands being
placed on traditional software build tools Make.
EVen if you stick to one language--a well-worn
and mature one like C, for example--the
differences between the various C tool chains
and how they behave on various platforms
make it a real challenge
to keep your software builds simple and reliable.
</p>
<p>
Consequently, SCons is a build tool
</p>
</li>
<li>
<strong>Effective software building is not a language design issue</strong>
<p>
There are a lot of build tools out there,
and it seems like a new one pops up every week
as someone gets the urge to fix some particularly
bad build problem that they're facing.
Most build tools have, historically,
invented some special configuration file format
to express dependencies and actions.
The problem is that by the time you take care of all
of the different ways people
you really want to have the flexibility
that a scripting language gives:
loops, conditionals, real data structures, etc.
(It's interesting to note that the Ant community is
working hard on adding more scriptability to their
XML-based Ant files,
and James Duncan Davidson, Ant's creator,
is on record as saying that he'd use a scripting
language if he were doing it over again.)
</p>
<p>
</p>
<p>
Note that SCons is not completely pure in this regard.
</p>
</li>
<li>
<strong>You want to encapsulate software build complexity
so most developers don't even have to think about it</strong>
<pp>
XXX
</pp>
</li>
<li>
<strong>Overall, a reliable build that takes a little longer is
cheaper than a fast build that you can't rely on</strong>
<p>
This one is sometimes tough to swallow,
because we all want the build to be as quick as possible
when we're in that tight edit-build-debug development cycle.
The problem is that if you take shortcuts in how your
build tool manages the dependencies,
you waste time chasing phantom problems
that simply go away because you finally give up
and do a <tt>make clean; make</tt>.
</p>
</li>
<li>
<strong>Building software in multiple side-by-side variants is crucial
in a multi-platform world</strong>
<pp>
XXX
</pp>
</li>
</ul>
-->
<h2><b>SCons Features</b></h2>
<ul>
<li>
<strong>Configuration files are Python scripts</strong>
<p>
This provides much more flexibility for solving
difficult build problems
than traditional build tools.
</p>
</li>
<li>
<strong>Reliable, automatic dependency analysis</strong>
<p>
C, C++ and Fortran are scanned for dependencies,
eliminating the need for a separate <tt>make depend</tt> step
or a <tt>make clean</tt> to get all of the dependencies.
Avoids the time waste from debugging phantom problems
that mysteriously disappear after you
<tt>make clean; make</tt>.
Easily extended to scan for other languages or file types.
</p>
</li>
<li>
<strong>Built-in support for multiple languages</strong>
<p>
C, C++, D, Java, Fortran, Yacc, Lex, Qt and SWIG.
Can also build TeX and LaTeX documents.
Easily extended for other languages or file types.
</p>
</li>
<li>
<strong>Cross-platform</strong>
<p>
Known to work on Linux,
other POSIX systems (AIX, *BSD, HP/UX, IRIX, Solaris),
Windows (NT, 2000, XP),
Mac OS X,
and OS/2.
</p>
</li>
<li>
<strong>Fetch files from SCM systems or central directory trees</strong>
<p>
Built-in support for SCCS, RCS, CVS, BitKeeper and Perforce.
On-disk directory trees can be searched for source files
or pre-built target files.
</p>
</li>
<li>
<strong>Support for Microsoft Visual Studio .NET and 2005</strong>
<p>
Generates <tt>.dsp</tt> and <tt>.dsw</tt> files,
or <tt>.sln</tt> and <tt>.vcproj</tt> files,
from the same build configuration used to build on all platforms.
Allows Windows developers to do all the productive
point-and-click debugging they're used to
without having to maintain a separate build configuration
just for Windows.
</p>
</li>
<li>
<strong>Reliable detection of file changes using MD5 signatures</strong>
<p>
Use of traditional file timestamps instead of MD5 can be configured.
</p>
</li>
<li>
<strong>Parallel builds</strong>
<p>
Keeps up to N jobs running simultaneously regardless
of directory hierarchy.
</p>
</li>
<li>
<strong>Global view of dependencies</strong>
<p>
Simplifies builds by eliminating multiple passes
or reording targets to build everything correctly.
</p>
</li>
<li>
<strong>Multi-platform configuration (like <tt>Autoconf</tt>)</strong>
<p>
Support for finding <tt>#include</tt> files,
libraries, functions and <tt>typedef</tt> declarations.
</p>
</li>
<li>
<strong>Shared built-file cache</strong>
<p>
Speeds up multiple builds by allowing developers
to share pre-built targets
(like <tt>ccache</tt>, but for any type of target file,
not just C/C++ compilation).
</p>
</li>
</ul>
<!--
<h2></h2>
<p>What are the high-level assumptions or ground rules for the project?
</p>
<p>For example:
</p>
<ul>
<li> we will use programming language X on operating system Y for now.
<li>We will, or will not, consider certain functional areas like
internationalization, high security, concurrency, etc. The list of
functional areas will depend on what you are trying to do.
<li>Try to keep this part short.
</ul>
-->
<h2>Future</h2>
See the <a href="roadmap.html">Roadmap</a> page.
</div>
</body>
</html>
|