summaryrefslogtreecommitdiffstats
path: root/misc/ninja_syntax.py
Commit message (Collapse)AuthorAgeFilesLines
* Disable long word wrapping entirely in comments.Alex Vallée2015-11-271-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 Vallee2015-11-121-1/+1
|
* Fix wrapping file paths in Writer.commentAlex Vallée2015-10-231-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.pyEvan Martin2014-11-181-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_syntaxEvan Martin2014-11-181-0/+15
| | | | Implements basic variable expansion for use in configure.py.
* Get rid of unused importChris Drake2014-05-051-1/+0
|
* Use consistent indentation conventionsChris Drake2014-05-051-17/+17
|
* performance: Writer.build should copy less.Daniel Bratell2014-04-141-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 Martin2013-04-081-3/+3
|
* add "special=gcc" attribute, use to load depslogEvan Martin2013-04-081-1/+3
|
* ninja_syntax.py: don't add trailing space when build has no inputsEvan Martin2012-12-291-3/+2
| | | | Seen in Ninja's configure.py where it creates an "rpmbuild" command.
* Add python ninja_syntax.py support for poolRobert Iannucci2012-12-141-1/+8
|
* Add support for Python 3Zaheer Chothia2012-10-181-1/+1
|
* ninja_syntax: escape colons in pathsEvan Martin2012-07-171-6/+6
|
* Fix layout width in ninja_syntax.py.Nico Weber2012-05-021-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_syntaxScott Graham2012-03-271-1/+5
|
* Explicitly turn input/output lists into list objects.Scott Franklin2012-01-281-2/+2
| | | | Python 3 does not support map.append/extend.
* ninja_syntax.py: Fix a bug when passing dict variables to Writer.build()Evan Jones2012-01-041-1/+6
| | | | Add a test to cover both dict and list variables.
* ninja_syntax: add restat attribute to rulesEvan Martin2011-12-281-1/+3
| | | | Patch from Ami Fischman <fischman@chromium.org>.
* Let ninja_syntax handle escaped spaces correctly.Nico Weber2011-12-221-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 Apthorp2011-11-291-13/+42
|
* Implement generator rulesPeter Collingbourne2011-10-151-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 dirEvan Martin2011-09-071-0/+4
| | | | Useful for building on Macs.
* add 'default' keyword to python moduleEvan Martin2011-09-061-0/+3
|
* ninja_syntax.py: add include and subninjaEvan Martin2011-08-291-0/+6
|
* rename ninja module to ninja_syntaxEvan Martin2011-08-161-0/+94