2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00
Commit Graph

4209 Commits

Author SHA1 Message Date
Dave Abrahams
9cf94e22c7 * new/generators.jam: Improved commenting, naming, formatting
(generator.match-rank): Count also requirements when determining the rank,
   not only optional properties.
  (generator.run): Always set 'multiple' to true.


[SVN r18352]
2003-05-08 00:25:27 +00:00
Dave Abrahams
a24042fe51 On NT, force backslashes during binding phase so that files will be
found.  This used to be taken care of by path_build, but now that
we're trying to preserve slash direction there, we need this here.


[SVN r18345]
2003-05-07 16:07:40 +00:00
Rene Rivera
af8a522fd2 Removed the /LIBPATH option for MSVC compilers as it's causing too much grief.
[SVN r18336]
2003-04-30 17:05:48 +00:00
Vladimir Prus
b75c9e17ca Bugfixes.
* new/prebuilt.jam : Make 'file' feature into path-feature.
  (prebuilt-file-generator.run): Adjust accordingly.


[SVN r18328]
2003-04-28 14:12:17 +00:00
Rene Rivera
f3615c6176 Slightly better explanation of replace.
[SVN r18327]
2003-04-28 14:07:37 +00:00
Vladimir Prus
c7d21ea4f3 Cleanup.
* new/project.jam
  (lookup): If no module is associated with location, don't even try
  to get project attributes.


[SVN r18326]
2003-04-28 08:52:15 +00:00
Vladimir Prus
412ee4ad24 Fix path properties handling bug, noted by Kirill Lapshin.
* new/property.jam
  (translate-paths): Apply 'path.make' to path properties.

* test/path_features.py: Test for the bug.


[SVN r18325]
2003-04-28 08:46:16 +00:00
Vladimir Prus
e6f4b40277 Fix problem with absolute paths for sources, noted by Kirill Lapshin.
* new/virtual-target.jam
  (from-file): Pass target name via "path.make".
  (abstract-file-target.actual-name): Pass target name via "path.native".

* test/absolute_sources.py: New test.


[SVN r18324]
2003-04-28 07:55:53 +00:00
Rene Rivera
e884f70cdd Added a "replace" rule to do global string replacements.
[SVN r18316]
2003-04-26 06:20:49 +00:00
Vladimir Prus
9e57ab2d66 Bump the version number.
[SVN r18308]
2003-04-25 06:11:27 +00:00
Vladimir Prus
7dbda0c6e7 Fix mistaken commit
[SVN r18302]
2003-04-24 11:49:34 +00:00
Vladimir Prus
19e776cc6d Add a script for making distributions
[SVN r18300]
2003-04-24 11:35:40 +00:00
Vladimir Prus
139b62330a Get rid of annoying 'unused source' warning for stage targets.
* new/stage.jam
  (stage-target-class.check-for-unused-sources): Override base method with
  an empty one, since the inherited logic does not make any sense for stage.


[SVN r18295]
2003-04-23 14:17:34 +00:00
Vladimir Prus
bfb285baea Implement 'explicit targets'. This closes BB29, except for documentation
issues.

* new/project.jam: New project attribute 'explicit-targets'.
* new/targets.jam (project-target): Don't implicitly generate targets
  that are in 'explicit-targets' attribute.


[SVN r18294]
2003-04-23 13:34:17 +00:00
Rene Rivera
6a6cef153b * Add --help-usage option to display bjam options.
* Add the missing recursive display of docs when specifying --help-enable-detailed. Using it with --help-all will produce most of the available docs at once.


[SVN r18290]
2003-04-23 01:10:12 +00:00
Rene Rivera
828616e5d4 Change behaviour so that we always do a clean bootstrap.
[SVN r18287]
2003-04-21 04:39:44 +00:00
Rene Rivera
e5c152f90d Add preliminary support for building the final VMS bjam executable.
[SVN r18286]
2003-04-21 04:38:30 +00:00
Rene Rivera
e9dc74c73b Fix failing compilation on non-MSVC compilers. Specifically CodeWarriorn.
The defenitions in tchar.h prevent the definition TCHAR; windows.h must always be included before any other windows headers.


[SVN r18285]
2003-04-21 04:22:27 +00:00
Vladimir Prus
6dd39487f3 Workaround: change timestamp of 0, to 1, so that Jam does not consider
file as missing. This is needed because /cygdrive on cygwin has the
zero timestamp.

* new/fileunix.c
  (file_time): The above change.


[SVN r18256]
2003-04-16 10:01:17 +00:00
Vladimir Prus
b040c8b42e Bugfix: set NDEBUG for release builds.
* new/builtin.jam: Make <optimization>speed active property and add
  <define>NDEBUG for it.

* test/ndebug.py: New test.


[SVN r18250]
2003-04-14 11:02:34 +00:00
Vladimir Prus
9969209255 Cleanups.
* new/targets.jam
  (project-target.reference-properties): Call 'run-action' on properties,
  to match the process in 'basic-target'.

  (basic-target.refined-properties): Remove the comment about difference
  from the above rule.


[SVN r18249]
2003-04-14 10:06:20 +00:00
Vladimir Prus
21bb325dcc Bugfix: don't create duplicate virtual targets for searched lib with
the same properties. Thanks to Andre Hentz for finding this bug and
providing the test case.

* new/builtin.jam
  (searched-lib-generator.run): Pass the result through
  'virtual-target.register'.

* test/searched_lib.py: Add new test.


[SVN r18247]
2003-04-14 05:51:06 +00:00
Dave Abrahams
4fae733892 optimized insertion-sort
[SVN r18225]
2003-04-10 11:33:13 +00:00
Vladimir Prus
142365f287 Improve library handling.
* new/toolset.jam
  (flags): Add 'unchecked' parameter, too allow declaring flags for other
  modules.

* new/builtin.jam: Don't declare LIBRARY_PATH_OPTION.
* new/borland.jam: Use flags to declare LIBRARY_PATH_OPTION and LIBRARY_OPTION.
* new/msvc.jam: Use flags to declare LIBRARY_PATH_OPTION and LIBRARY_OPTION.


[SVN r18222]
2003-04-09 14:14:57 +00:00
Vladimir Prus
5eaac86c0c Make composing generators fail immediately if given no name. This,
essentially, makes composing generators fail if they are run deeper
during transformation search. Looks like a new incarnation of
'allow-composing'.

The motivation is to fight with cases where trasformation
like CPP -> OBJ -> STATIC_LIB -> RSP -> EXE was tried. The composing
OBJ -> STATIC_LIB generator was totally unprepared to be invoked at such
depth, and errored out. The new behaviour cause this transformation to be
rejected, but the search continues.

* new/generators.jam
  (generator.run-really): New rule, with most of previous 'run' content.
  (generator.run): Check arguments only and call 'run-really'. Immediately
  return if the generator is composing and no name is specified.


[SVN r18216]
2003-04-09 12:12:41 +00:00
Vladimir Prus
de1c0dca7b Minor bugfix: properties were not correctly reported in --debug-generators
output.


[SVN r18215]
2003-04-09 12:06:14 +00:00
Vladimir Prus
c0c1636dfb Cleanups.
* new/builtin.jam
  (searched-lib-generator.run): Tweak the logic and change comments.


[SVN r18214]
2003-04-09 12:03:19 +00:00
Vladimir Prus
9cb554a731 Declare 'user-interface' feature in 'builtin.jam', not 'msvc.jam', because
it is not msvc-specific -- e.g. borland needs it as well.


[SVN r18213]
2003-04-09 12:01:02 +00:00
Vladimir Prus
b1f7b4f34d Patch from Andre Hentz to fix os=cygwin/toolset=msvc combination.
* new/builtin.jam: Associate obj and lib extension with OBJ and
STATIC_LIB target types, to handle the above combination. The gcc
toolset overrides these extension explicitly.

* new/msvc.jam
   (archive): Use bash syntax on cygwin.


[SVN r18210]
2003-04-08 14:14:53 +00:00
Vladimir Prus
192fd6c976 Cleanups.
* new/virtual-target.jam
  (virtual-target.path): New abstract method. Added so that derived classes
  always define both 'actualize-location' and 'path'.

* new/builtin.jam
  (searched-lib-target.path): Use empty body.


[SVN r18196]
2003-04-07 09:08:35 +00:00
Vladimir Prus
3ed8693101 Win32 fixes. Big thanks to Bjorn Karlsson.
* jam_src/pwc.c: Concert short pathnames to long ones.


[SVN r18181]
2003-04-04 07:55:59 +00:00
Douglas Gregor
8153b7b4d9 print.jam: Provide escaped strings for Windows and Unix
regex.jam: Provide "escape" routine that escapes a string with certain escape
  characters

boostbook.jam: Use print.escape to properly escape argument to "echo" on
  Windows and Unix (BoostBook now works on non-Cygwin Windows)


[SVN r18148]
2003-04-01 14:34:31 +00:00
Douglas Gregor
f17b4f4e95 Allow passing in the caller to the make rule, so that other modules
(that aren't user projects) can use it to add targets to their callers


[SVN r18137]
2003-03-30 15:24:57 +00:00
Douglas Gregor
16010b66b0 ALWAYS $(output-target) doesn't belong in the text rule, it belongs in
the caller


[SVN r18135]
2003-03-30 15:17:52 +00:00
Douglas Gregor
62ee4de76b - Changes the \" -> '' transformation into \" -> \\\", i.e., instead of
transforming the double-quote character into two single quotes, we transform
it into a correctly-escaped double quote.

- Add an "overwrite" option to print.text that overwrites the file instead of
appending to it.


[SVN r18124]
2003-03-28 15:12:29 +00:00
Vladimir Prus
5b79cb74ed Patch from Andre Hentz.
* new/builtin.jam
  - register builtin.response-generator with 'register-linker', to
    take advantange of 'link-action'. Convert <library-path>,
    <find-static-library> and <find-shared-library> into on-target
    variables using toolset.flags.
  (builtin.response-file) Output variables for library path to response
    file.
  (searched-lib-generator.run): Assign 'null-action' instance to the
  generated target, to carry properties. Correct prototype and workaround
  some, as-yet-unknown problem.

* test/searched_lib.py: New test (added by me).


[SVN r18121]
2003-03-28 09:20:58 +00:00
Vladimir Prus
a85fd44bb4 Bugfix: quote filenames in actions.
[SVN r18102]
2003-03-27 15:40:07 +00:00
Vladimir Prus
783a7fe308 Fix path handling on Cygwin. Thanks to Andre Hentz for the patch.
[SVN r18091]
2003-03-26 12:16:01 +00:00
Vladimir Prus
d5e39ef214 Comments/renames.
[SVN r18089]
2003-03-26 09:09:42 +00:00
Rene Rivera
e6472a08c8 Changes to bootstrap and build with the MinGW environment.
* Define the OS as NT as this seems more reasonable than having MINGW as the OS (after all MinGW is the toolset not the OS).
* Add detection of one common install location for MinGW.


[SVN r18073]
2003-03-24 04:34:27 +00:00
Rene Rivera
f063766d8e Minor change to hopefully cover more NT shells.
[SVN r18068]
2003-03-24 00:56:58 +00:00
Dave Abrahams
ebfc61b92f minor UML tweaks
[SVN r18034]
2003-03-20 16:01:53 +00:00
Dave Abrahams
c08dae0d99 Add missing path nativizing.
[SVN r18029]
2003-03-20 13:48:31 +00:00
Dave Abrahams
540b62ec8f Fix usage requirements check to account for conditional properties.
I'm not completely sure this is precisely the right fix:

    a. The error message used to reference a non-existent variable.
    What was it supposed to be?

    b. Should property.remove et. al. be able to cope with conditional
    properties?


[SVN r18023]
2003-03-20 02:41:49 +00:00
Vladimir Prus
b64b4ab884 Prevent 'hardcode-dll-paths' from setting rpath on static libraries.
Thanks to Ali Azarbayejani for the bug report.


[SVN r17999]
2003-03-19 09:00:25 +00:00
Douglas Gregor
0c2d9952f1 Allow '=' in free features specified on the command line
[SVN r17961]
2003-03-17 15:55:28 +00:00
Vladimir Prus
1a64e29a3d Try to reduce the number of include paths.
[SVN r17956]
2003-03-17 09:31:19 +00:00
Vladimir Prus
5f5d281dc1 Better direct request handling.
* new/build-request.jam
  (directly-requested-properties-adjuster): Redo.

* new/targets.jam
  (main-target.generate-really): Adjust properties here.

* new/virtual-target.jam
  (register-actual-name): New rule.
  (virtual-target.actualize-no-scanner): Call the above, to detected bugs,
  where two virtual target correspond to one Jam target name.


[SVN r17955]
2003-03-17 09:27:43 +00:00
Vladimir Prus
4546260675 Refactorings.
* new/build-request.jam
  (directly-requested-properties-adjuster): New class.

* new/targets.jam
  (abstract-target.direct-build-request): Gone.
  (abstract-target.set-property-adjuster): New method.
  (main-target.generate): Use property-adjuster.


[SVN r17954]
2003-03-17 08:36:34 +00:00
Vladimir Prus
05ca30e383 Bufgix. Thanks to Jürgen Hunold for the report.
* new/toolset.jam
  (set-target-variable): Call 'path.native' when setting path features.


[SVN r17953]
2003-03-17 07:58:06 +00:00