Add LIBS and LIBPATH dependencies for shared libraries. (Charles Crain)
[scons.git] / src / CHANGES.txt
1 # Copyright (c) 2001, 2002 Steven Knight
2 # __FILE__ __REVISION__ __DATE__ __DEVELOPER__
3
4
5                  SCons - a software construction tool
6
7                             Change Log
8
9
10
11 RELEASE 0.08 - 
12
13   From Charles Crain:
14
15   - Fixed a bug with relative CPPPATH dirs when using BuildDir().
16     (Bug reported by Bob Summerwill.)
17
18   - Added a warnings framework and a --warn option to enable or
19     disable warnings.
20
21   - Make the C scanner warn users if files referenced by #include
22     directives cannot be found and --warn=dependency is specified.
23
24   - The BUILDERS construction variable should now be a dictionary
25     that maps builder names to actions.  Existing uses of lists,
26     and the Builder name= keyword argument, generate warnings
27     about use of deprecated features.
28
29   - Removed the "shared" keyword argument from the Object and
30     Library builders.
31     
32   - Added separated StaticObject, SharedObject, StaticLibrary and
33     SharedLibrary builders.  Made Object and Library synonyms for
34     StaticObject and StaticLibrary, respectively.
35
36   - Add LIBS and LIBPATH dependencies for shared libraries.
37
38   - Removed support for the prefix, suffix and src_suffix arguments
39     to Builder() to be callable functions.
40
41   From Steven Knight:
42
43   - Add a "platform=" keyword argument to Environment instantiation,
44     and a separate Platform() method, for more flexible specification
45     of platform-specific environment changes.
46
47   - Updated README instructions and setup.py code to catch an
48     installation failure from not having distutils installed.
49
50   - Add descriptions to the -H help text for -D, -u and -U so
51     people can tell them apart.
52
53   - Remove the old feature of automatically splitting strings
54     of file names on white space.
55
56   - Add a dependency Scanner for native Fortran "include" statements,
57     using a new "F77PATH" construction variable.
58
59   - Fix C #include scanning to detect file names with characters like
60     '-' in them.
61
62   From Jeff Petkau:
63
64   - Fix --implicit-cache if the scanner returns an empty list.
65
66   From Anthony Roach:
67
68   - Add a "multi" keyword argument to Builder creation that specifies
69     it's okay to call the builder multiple times for a target.
70
71   - Set a "multi" on Aliases so multiple calls will append to an Alias.
72
73   - Fix emitter functions' use of path names when using BuildDir or
74     in subdirectories.
75
76   - Fix --implicit-cache causing redundant rebuilds when the header
77     file list changed.
78
79   - Fix --implicit-cache when a file has no implicit dependencies and
80     its source is generated.
81
82   - Make the drive letters on Windows always be the same case, so that
83     changes in the case of drive letters don't cause a rebuild.
84
85   - Fall back to importing the SCons.TimeStamp module if the SCons.MD5
86     module can't be imported.
87
88   - Fix interrupt handling to guarantee that a single interrupt will
89     halt SCons both when using -j and not.
90
91   - Fix .sconsign signature storage so that output files of one build
92     can be safely used as input files to another build.
93
94   - Added a --debug=time option to print SCons execution times.
95
96   - Print an error message if a file can't be unlinked before being
97     built, rather than just silently terminating the build.
98
99   From Zed Shaw:
100
101   - Add an Append() method to Environments, to append values to
102     construction variables.
103
104   - Change the name of Update() to Replace().  Keep Update() as a
105     deprecated synonym, at least for now.
106
107
108
109 RELEASE 0.07 - Thu,  2 May 2002 13:37:16 -0500
110
111   From Chad Austin:
112
113   - Changes to build SCons packages on IRIX (and other *NIces).
114
115   - Don't create a directory Node when a file already exists there,
116     and vice versa.
117
118   - Add 'dirs' and 'names' keyword arguments to SConscript for
119     easier specification of subsidiary SConscript files.
120
121   From Charles Crain:
122
123   - Internal cleanup of environment passing to function Actions.
124
125   - Builders can now take arbitrary keyword arguments to create
126     attributes to be passed to: command generator functions,
127     FunctionAction functions, Builder emitter functions (below),
128     and prefix/suffix generator functions (below).
129
130   - Command generator functions can now return ANYTHING that can be
131     converted into an Action (a function, a string, a CommandGenerator
132     instance, even an ActionBase instance).
133
134   - Actions now call get_contents() with the actual target and source
135     nodes used for the build.
136
137   - A new DictCmdGenerator class replaces CompositeBuilder to support
138     more flexible Builder behavior internally.
139
140   - Builders can now take an emitter= keyword argument.  An emitter
141     is a function that takes target, source, and env argument, then
142     return a 2-tuple of (new sources, new targets).  The emitter is
143     called when the Builder is __call__'ed, allowing a user to modify
144     source and target lists.
145
146   - The prefix, suffix and src_suffix Builder arguments now take a
147     callable as well a string.  The callable is passed the Environment
148     and any extra Builder keyword arguments and is expected to return
149     the appropriate prefix or suffix.
150
151   - CommandActions can now be a string, a list of command + argument
152     strings, or a list of commands (strings or lists).
153
154   - Added shared library support.  The Object and Library Builders now
155     take a "shared=1" keyword argument to specify that a shared object
156     or shared library should be built.  It is an error to try to build
157     static objects into a shared library or vice versa.
158
159   - Win32 support for .def files has been added.  Added the Win32-specific
160     construction variables $WIN32DEFPREFIX, $WIN32DEFSUFFIX,
161     $WIN32DLLPREFIX and $WIN32IMPLIBPREFIX.  When building a .dll,
162     the new construction variable $WIN32_INSERT_DEF, controls whether
163     the appropriately-named .def file is inserted into the target
164     list (if not already present).  A .lib file is always added to
165     a Library build if not present in the list of targets.
166
167   - ListBuilder now passes all targets to the action, not just the first.
168
169   - Fix so that -c now deletes generated yacc .h files.
170
171   - Builder actions and emitter functions can now be initialized, through
172     construction variables, to things other than strings.
173
174   - Make top-relative '#/dir' lookups work like '#dir'.
175
176   - Fix for relative CPPPATH directories in subsidiary SConscript files
177     (broken in 0.06).
178
179   - Add a for_signature argument to command generators, so that
180     generators that need to can return distinct values for the
181     command signature and for executing the command.
182
183   From Alex Jacques:
184
185   - Create a better scons.bat file from a py2bat.py script on the Python
186     mailing list two years ago (modeled after pl2bat.pl).
187
188   From Steven Knight:
189
190   - Fix so that -c -n does *not* remove the targets!
191
192   - Man page:  Add a hierarchical libraries + Program example.
193
194   - Support long MSVC linker command lines through a builder action
195     that writes to a temporary file and uses the magic MSVC "link @file"
196     argument syntax if the line is longer than 2K characters.
197
198   - Fix F77 command-line options on Win32 (use /Fo instead of -o).
199
200   - Use the same action to build from .c (lower case) and .C (upper
201     case) files on case-insensitive systems like Win32.
202
203   - Support building a PDF file directly from a TeX or LaTeX file
204     using pdftex or pdflatex.
205
206   - Add a -x option to runtest.py to specify the script being tested.
207     A -X option indicates it's an executable, not a script to feed
208     to the Python interpreter.
209
210   - Add a Split() function (identical to SCons.Util.argmunge()) for use
211     in the next release, when Builders will no longer automatically split
212     strings on white space.
213
214   From Steve Leblanc:
215
216   - Add the SConscriptChdir() method.
217
218   From Anthony Roach:
219
220   - Fix --debug=tree when used with directory targets.
221
222   - Significant internal restructuring of Scanners and Taskmaster.
223
224   - Added new --debug=dtree option.
225
226   - Fixes for --profile option.
227
228   - Performance improvement in construction variable substitution.
229
230   - Implemented caching of content signatures, plus added --max-drift
231     option to control caching.
232
233   - Implemented caching of dependency signatures, enabled by new
234     --implicit-cache option.
235
236   - Added abspath construction variable modifier.
237
238   - Added $SOURCE variable as a synonym for $SOURCES[0].
239
240   - Write out .sconsign files on error or interrupt so intermediate
241     build results are saved.
242
243   - Change the -U option to -D.  Make a new -U that builds just the
244     targets from the local SConscript file.
245
246   - Fixed use of sys.path so Python modules can be imported from
247     the SConscript directory.
248
249   - Fix for using Aliases with the -u, -U and -D options.
250
251   - Fix so that Nodes can be passed to SConscript files.
252
253   From Moshe Zadka:
254   
255   - Changes for official Debian packaging.
256
257
258
259 RELEASE 0.06 - Thu, 28 Mar 2002 01:24:29 -0600
260
261   From Charles Crain:
262
263   - Fix command generators to expand construction variables.
264
265   - Make FunctionAction arguments be Nodes, not strings.
266
267   From Stephen Kennedy:
268
269   - Performance:  Use a dictionary, not a list, for a Node's parents.
270
271   From Steven Knight:
272
273   - Add .zip files to the packages we build.
274
275   - Man page:  document LIBS, fix a typo, document ARGUMENTS.
276
277   - Added RANLIB and RANLIBFLAGS construction variables.  Only use them
278     in ARCOM if there's a "ranlib" program on the system.
279
280   - Add a configurable CFILESUFFIX for the Builder of .l and .y files
281     into C files.
282
283   - Add a CXXFile Builder that turns .ll and .yy files into .cc files
284     (configurable via a CXXFILESUFFIX construction variable).
285
286   - Use the POSIX-standard lex -t flag, not the GNU-specific -o flag.
287     (Bug reported by Russell Christensen.)
288
289   - Fixed an exception when CPPPATH or LIBPATH is a null string.
290     (Bug reported by Richard Kiss.)
291
292   - Add a --profile=FILE option to make profiling SCons easier.
293
294   - Modify the new DVI builder to create .dvi files from LaTeX (.ltx
295     and .latex) files.
296
297   - Add support for Aliases (phony targets).
298
299   - Add a WhereIs() method for searching for path names to executables.
300
301   - Add PDF and PostScript document builders.
302
303   - Add support for compiling Fortran programs from a variety of
304     suffixes (a la GNU Make):  .f, .F, .for, .FOR, .fpp and .FPP
305
306   - Support a CPPFLAGS variable on all default commands that use the
307     C preprocessor.
308
309   From Steve Leblanc:
310
311   - Add support for the -U option.
312
313   - Allow CPPPATH, LIBPATH and LIBS to be specified as white-space
314     separated strings.
315
316   - Add a document builder to create .dvi files from TeX (.tex) files.
317
318   From Anthony Roach:
319
320   - Fix:  Construction variables with values of 0 were incorrectly
321     interpolated as ''. 
322
323   - Support env['VAR'] to fetch construction variable values.
324
325   - Man page:  document Precious().
326
327
328
329 RELEASE 0.05 - Thu, 21 Feb 2002 16:50:03 -0600
330
331   From Chad Austin:
332
333   - Set PROGSUFFIX to .exe under Cygwin.
334
335   From Charles Crain:
336
337   - Allow a library to specified as a command-line source file, not just
338     in the LIBS construction variable.
339
340   - Compensate for a bug in os.path.normpath() that returns '' for './'
341     on WIN32.
342
343   - More performance optimizations:  cache #include lines from files,
344     eliminate unnecessary calls.
345
346   - If a prefix or suffix contains white space, treat the resulting
347     concatenation as separate arguments.
348
349   - Fix irregularities in the way we fetch DevStudio information from
350     the Windows registry, and in our registry error handling.
351
352   From Steven Knight:
353
354   - Flush stdout after print so it intermixes correctly with stderr
355     when redirected.
356
357   - Allow Scanners to return a list of strings, and document how to
358     write your own Scanners.
359
360   - Look up implicit (scanned) dependencies relative to the directory
361     of file being scanned.
362
363   - Make writing .sconsign files more robust by first trying to write
364     to a temp file that gets renamed.
365
366   - Create all of the directories for a list of targets before trying
367     to build any of the targets.
368
369   - WIN32 portability fixes in tests.
370
371   - Allow the list of variables exported to an SConscript file to be
372     a UserList, too.
373
374   - Document the overlooked LIBPATH construction variable.
375     (Bug reported by Eicke Godehardt.)
376
377   - Fix so that Ignore() ignores indirect, implicit dependencies
378     (included files), not just direct dependencies.
379
380   - Put the man page in the Debian distribution.
381
382   - Run HTML docs through tidy to clean up the HTML (for Konqueror).
383
384   - Add preliminary support for Unicode strings.
385
386   - Efficiency:  don't scan dependencies more than once during the
387     walk of a tree.
388
389   - Fix the -c option so it doesn't stop removing targets if one doesn't
390     already exist.
391     (Bug reported by Paul Connell.)
392
393   - Fix the --debug=pdb option when run on Windows NT.
394     (Bug reported by Paul Connell.)
395
396   - Add support for the -q option.
397
398   From Steve Leblanc:
399
400   - Add support for the -u option.
401
402   - Add .cc and .hh file suffixes to the C Scanner.
403
404   From Anthony Roach:
405
406   - Make the scons script return an error code on failures.
407
408   - Add support for using code to generate a command to build a target.
409
410
411
412 RELEASE 0.04 - Wed, 30 Jan 2002 11:09:42 -0600
413
414   From Charles Crain:
415
416   - Significant performance improvements in the Node.FS and
417     Scanner subsystems.
418
419   - Fix signatures of binary files on Win32 systems.
420
421   - Allow LIBS and LIBPATH to be strings, not just arrays.
422
423   - Print a traceback if a Python-function builder throws an exception.
424
425   From Steven Knight:
426
427   - Fix using a directory as a Default(), and allow Default() to
428     support white space in file names for strings in arrays.
429
430   - Man page updates:  corrected some mistakes, documented various
431     missing Environment methods, alphabetized the construction
432     variables and other functions, defined begin and end macros for
433     the example sections, regularized white space separation, fixed
434     the use of Export() in the Multiple Variants example.
435
436   - Function action fixes:  None is now a successful return value.
437     Exceptions are now reported.  Document function actions.
438
439   - Add 'Action' and 'Scanner' to the global keywords so SConscript
440     files can use them too.
441
442   - Removed the Wrapper class between Nodes and Walkers.
443
444   - Add examples using Library, LIBS, and LIBPATH.
445
446   - The C Scanner now always returns a sorted list of dependencies
447     so order changes don't cause unnecessary rebuilds.
448
449   - Strip $(-$) bracketed text from command lines.  Use this to
450     surround $_INCDIRS and $_LIBDIRS so we don't rebuild in response
451     to changes to -I or -L options.
452
453   - Add the Ignore() method to ignore dependencies.
454
455   - Provide an error message when a nonexistent target is specified
456     on the command line.
457
458   - Remove targets before building them, and add an Environment
459     Precious() method to override that.
460
461   - Eliminate redundant calls to the same builder when the target is a
462     list of targets:  Add a ListBuilder class that wraps Builders to
463     handle lists atomically.  Extend the Task class to support building
464     and updating multiple targets in a single Task.  Simplify the
465     interface between Task and Taskmaster.
466
467   - Add a --debug=pdb option to re-run SCons under the Python debugger.
468
469   - Only compute a build signature once for each node.
470
471   - Changes to our sys.path[] manipulation to support installation into
472     an arbitrary --prefix value.
473
474   From Steve Leblanc:
475
476   - Add var=value command-line arguments.
477
478
479
480 RELEASE 0.03 - Fri, 11 Jan 2002 01:09:30 -0600
481
482   From Charles Crain:
483
484   - Performance improvements in the Node.FS and Sig.Calculator classes.
485
486   - Add the InstallAs() method.
487
488   - Execute commands through an external interpreter (sh, cmd.exe, or
489     command.com) to handle redirection metacharacters.
490
491   - Allow the user to supply a command handler.
492
493   From Steven Knight:
494
495   - Search both /usr/lib and /usr/local/lib for scons directories by
496     adding them both to sys.path, with whichever is in sys.prefix first.
497
498   - Fix interpreting strings of multiple white-space separated file names
499     as separate file names, allowing prefixes and suffixes to be appended
500     to each individually.
501
502   - Refactor to move CompositeBuilder initialization logic from the
503     factory wrapper to the __init__() method, and allow a Builder to
504     have both an action and a src_builder (or array of them).
505
506   - Refactor BuilderBase.__call__() to separate Node creation/lookup
507     from initialization of the Node's builder information.
508
509   - Add a CFile Builder object that supports turning lex (.l) and
510     yacc (.y) files into .c files.
511
512   - Document: variable interpretation attributes; how to propogate
513     the user's environment variables to executed commands; how to
514     build variants in multiple BuildDirs.
515
516   - Collect String, Dict, and List type-checking in common utility
517     routines so we can accept User{String,Dict,List}s all over.
518
519   - Put the Action factory and classes into their own module.
520
521   - Use one CPlusPlusAction in the Object Builder's action dictionary,
522     instead of letting it create multiple identical instances.
523
524   - Document the Install() and InstallAs() methods.
525
526   From Steve Leblanc:
527
528   - Require that a Builder be given a name argument, supplying a
529     useful error message when it isn't.
530
531   From Anthony Roach:
532
533   - Add a "duplicate" keyword argument to BuildDir() that can be set
534     to prevent linking/copying source files into build directories.
535
536   - Add a "--debug=tree" option to print an ASCII dependency tree.
537
538   - Fetch the location of the Microsoft Visual C++ compiler(s) from
539     the Registry, instead of hard-coding the location.
540     
541   - Made Scanner objects take Nodes, not path names.
542     
543   - Have the C Scanner cache the #include file names instead of
544     (re-)scanning the file each time it's called.
545
546   - Created a separate class for parent "nodes" of file system roots,
547     eliminating the need for separate is-parent-null checks everywhere.
548     
549   - Removed defined __hash__() and __cmp() methods from FS.Entry, in
550     favor of Python's more efficient built-in identity comparisons.
551
552
553
554 RELEASE 0.02 - Sun, 23 Dec 2001 19:05:09 -0600
555
556   From Charles Crain:
557
558   - Added the Install(), BuildDir(), and Export() methods.
559
560   - Fix the -C option by delaying setting the top of the FS tree.
561
562   - Avoid putting the directory path on the libraries in the LIBS
563     construction variable.
564
565   - Added a GetBuildPath() method to return the full path to the
566     Node for a specified string.
567
568   - Fixed variable substitution in CPPPATH and LIBPATH.
569
570   From Steven Knight:
571
572   - Fixed the version comment in the scons.bat (the UNIX geek used
573     # instead of @rem).
574
575   - Fix to setup.py so it doesn't require a sys.argv[1] argument.
576
577   - Provide make-like warning message for "command not found" and
578     similar errors.
579
580   - Added an EXAMPLES section to the man page.
581
582   - Make Default() targets properly relative to their SConscript
583     file's subdirectory.
584
585   From Anthony Roach:
586
587   - Documented CXXFLAGS, CXXCOM, and CPPPATH.
588
589   - Fixed SCONS_LIB_DIR to work as documented.
590
591   - Made Default() accept Nodes as arguments.
592
593   - Changed Export() to make it easier to use.
594   
595   - Added the Import() and Return() methods.
596
597
598
599 RELEASE 0.01 - Thu Dec 13 19:25:23 CST 2001
600
601 A brief overview of important functionality available in release 0.01:
602
603   - C and C++ compilation on POSIX and Windows NT.
604
605   - Automatic scanning of C/C++ source files for #include dependencies.
606
607   - Support for building libraries; setting construction variables
608     allows creation of shared libraries.
609
610   - Library and C preprocessor search paths.
611
612   - File changes detected using MD5 signatures.
613
614   - User-definable Builder objects for building files.
615
616   - User-definable Scanner objects for scanning for dependencies.
617
618   - Parallel build (-j) support.
619
620   - Dependency cycles detected.
621
622   - Linux packages available in RPM and Debian format.
623
624   - Windows installer available.