summaryrefslogtreecommitdiffstats
path: root/misc/ninja_syntax.py
Commit message (Collapse)AuthorAgeFilesLines
* 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