Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement type hints in `ninja_syntax.py` | Thaddeus Crews | 2024-04-06 | 1 | -21/+53 |
| | |||||
* | Adds dyndep support to ninja_syntax.py. | Nathan Ringo | 2021-01-12 | 1 | -1/+3 |
| | |||||
* | Add missing Apache license header, fix #1781 | Jan Niklas Hasse | 2020-05-25 | 1 | -0/+14 |
| | |||||
* | ninja_syntax.py: remove unused has_path argument | Alex Vallee | 2019-01-30 | 1 | -1/+1 |
| | | | The usage of the parameter was removed a long time ago and was never cleaned up. The argument is not provided in the test. | ||||
* | Support pool for Writer.build() in ninja_syntax.py | Kareem Khazem | 2018-02-20 | 1 | -1/+3 |
| | | | | | ninja_syntax.py now supports a pool being specified for individual builds, as well as rules. | ||||
* | Add support for implicit outputs in ninja_syntax.py. | Nicolas Despres | 2016-02-06 | 1 | -1/+6 |
| | |||||
* | Disable long word wrapping entirely in comments. | Alex Vallée | 2015-11-27 | 1 | -4/+2 |
| | | | | | | 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). | ||||
* | Fix indent in pull request #1042. | Alex Vallee | 2015-11-12 | 1 | -1/+1 |
| | |||||
* | Fix wrapping file paths in Writer.comment | Alex Vallée | 2015-10-23 | 1 | -2/+5 |
| | | | | | | | | 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. | ||||
* | add a --bootstrap mode for configure.py | Evan Martin | 2014-11-18 | 1 | -11/+15 |
| | | | | | | 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. | ||||
* | add an "expand" function to ninja_syntax | Evan Martin | 2014-11-18 | 1 | -0/+15 |
| | | | | Implements basic variable expansion for use in configure.py. | ||||
* | Get rid of unused import | Chris Drake | 2014-05-05 | 1 | -1/+0 |
| | |||||
* | Use consistent indentation conventions | Chris Drake | 2014-05-05 | 1 | -17/+17 |
| | |||||
* | performance: Writer.build should copy less. | Daniel Bratell | 2014-04-14 | 1 | -5/+4 |
| | | | | | | 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. | ||||
* | rename "special" to "deps" | Evan Martin | 2013-04-08 | 1 | -3/+3 |
| | |||||
* | add "special=gcc" attribute, use to load depslog | Evan Martin | 2013-04-08 | 1 | -1/+3 |
| | |||||
* | ninja_syntax.py: don't add trailing space when build has no inputs | Evan Martin | 2012-12-29 | 1 | -3/+2 |
| | | | | Seen in Ninja's configure.py where it creates an "rpmbuild" command. | ||||
* | Add python ninja_syntax.py support for pool | Robert Iannucci | 2012-12-14 | 1 | -1/+8 |
| | |||||
* | Add support for Python 3 | Zaheer Chothia | 2012-10-18 | 1 | -1/+1 |
| | |||||
* | ninja_syntax: escape colons in paths | Evan Martin | 2012-07-17 | 1 | -6/+6 |
| | |||||
* | Fix layout width in ninja_syntax.py. | Nico Weber | 2012-05-02 | 1 | -1/+1 |
| | | | | | | | 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. | ||||
* | add rspfile and rspfile_content to ninja_syntax | Scott Graham | 2012-03-27 | 1 | -1/+5 |
| | |||||
* | Explicitly turn input/output lists into list objects. | Scott Franklin | 2012-01-28 | 1 | -2/+2 |
| | | | | Python 3 does not support map.append/extend. | ||||
* | ninja_syntax.py: Fix a bug when passing dict variables to Writer.build() | Evan Jones | 2012-01-04 | 1 | -1/+6 |
| | | | | Add a test to cover both dict and list variables. | ||||
* | ninja_syntax: add restat attribute to rules | Evan Martin | 2011-12-28 | 1 | -1/+3 |
| | | | | Patch from Ami Fischman <fischman@chromium.org>. | ||||
* | Let ninja_syntax handle escaped spaces correctly. | Nico Weber | 2011-12-22 | 1 | -30/+30 |
| | | | | | | 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. | ||||
* | Update ninja_syntax.py and tests to reflect '$ ' syntax. | Jeremy Apthorp | 2011-11-29 | 1 | -13/+42 |
| | |||||
* | Implement generator rules | Peter Collingbourne | 2011-10-15 | 1 | -1/+4 |
| | | | | | | | | | | | | | 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. | ||||
* | allow --with-gtest flag to use unpacked gtest dir | Evan Martin | 2011-09-07 | 1 | -0/+4 |
| | | | | Useful for building on Macs. | ||||
* | add 'default' keyword to python module | Evan Martin | 2011-09-06 | 1 | -0/+3 |
| | |||||
* | ninja_syntax.py: add include and subninja | Evan Martin | 2011-08-29 | 1 | -0/+6 |
| | |||||
* | rename ninja module to ninja_syntax | Evan Martin | 2011-08-16 | 1 | -0/+94 |