| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
ninja_syntax.py now supports a pool being specified for individual
builds, as well as rules.
|
| |
|
|
|
|
|
|
| |
As pointed out by nico, we should unconditionally disable breaking of
long words in comments. It is unlikely long words that are in comments
should be split (like pathnames).
|
| |
|
|
|
|
|
|
|
|
| |
Long file names, especially with hyphens will get incorrectly wrapped by
the comment method. Pass has_path=True to prevent this type of wrapping.
This is mainly so that longer path names can show up in comments on
their on line without breaking them up.
|
|
|
|
|
|
| |
Instead of bootstrapping through a separate script, instead make
configure.py able to either generate a build.ninja *or* just execute
all the computed commands to build a ninja binary.
|
|
|
|
| |
Implements basic variable expansion for use in configure.py.
|
| |
|
| |
|
|
|
|
|
|
| |
The build method copies the input lists several times. That
cost about 0.1s in the gyp generation for the Chromium project for
no gain.
|
| |
|
| |
|
|
|
|
| |
Seen in Ninja's configure.py where it creates an "rpmbuild" command.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
The last line would sometimes be needlessly longer than the layout
width. One example is line 67 in the build.ninja generated by
ninja's own configure.py: Before this patch, ninja_syntax would
create a 81 character line.
|
| |
|
|
|
|
| |
Python 3 does not support map.append/extend.
|
|
|
|
| |
Add a test to cover both dict and list variables.
|
|
|
|
| |
Patch from Ami Fischman <fischman@chromium.org>.
|
|
|
|
|
|
| |
Revert the main loop changes made in 2e7ab7514207ea7faad40faedf3fc9d72b3adf7a,
and add just a few lines to the original main loop to make '$ ' escaping work.
Add several new tests, and make the existing tests pass again.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce a rule attribute "generator" which, if present, specifies
that this rule is used to re-invoke the generator program. Files built
using generator rules are treated specially in two ways: firstly,
they will not be rebuilt if the command line changes; and secondly,
they are not cleaned by default.
A command line flag "-g" is introduced for the clean tool, which
causes it to remove generator files.
Fixes issue #102.
|
|
|
|
| |
Useful for building on Macs.
|
| |
|
| |
|
|
|