Commit Graph

88 Commits

Author SHA1 Message Date
Evan Martin
9cf5918cc5 ninja_syntax: add restat attribute to rules
Patch from Ami Fischman <fischman@chromium.org>.
2011-12-28 13:52:47 -08:00
Evan Martin
71626dde2c add bash completion based on zsh completion 2011-12-27 23:32:09 -08:00
Nico Weber
ebb6c59346 Let ninja_syntax handle escaped spaces correctly.
Revert the main loop changes made in 2e7ab75142,
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.
2011-12-22 12:21:12 -08:00
Jeremy Apthorp
9be1597a21 Update ninja_syntax.py and tests to reflect '$ ' syntax. 2011-11-29 16:36:33 +11:00
Humza
88fbad50ae Improvements to ninja-mode
* provide ninja-mode feature
* highlight rule names
2011-11-13 11:30:10 -05:00
Evan Martin
bb52198d19 don't leak fds into subprocesses
Patch from Antoine Labour <piman@chromium.org>, (hacky) test by me.
2011-10-31 15:39:53 -07:00
Peter Collingbourne
7cf2bdffe2 Implement generator rules
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.
2011-10-15 20:23:50 +01:00
Evan Martin
32855955c6 allow --with-gtest flag to use unpacked gtest dir
Useful for building on Macs.
2011-09-07 16:47:57 -07:00
Evan Martin
3becb3bbf5 add 'default' keyword to python module 2011-09-06 12:59:47 -07:00
Evan Martin
679305757e ninja_syntax.py: add include and subninja 2011-08-29 11:19:50 -07:00
Evan Martin
f5aed0b31f rename ninja module to ninja_syntax 2011-08-16 11:36:01 -07:00
Evan Martin
9c8b25515b add escaping function to python module 2011-08-16 11:35:56 -07:00
Evan Martin
6faa70718d fix double-indenting 2011-07-27 10:06:52 -07:00
Evan Martin
ba3f2a416c ninja.py: fix the new test and pass the test
From a patch from Elazar Leibovich <elazarl@gmail.com>.
2011-07-27 10:03:16 -07:00
Evan Martin
f60aee4330 unit test for line-wrapping in ninja.py
From a patch from Elazar Leibovich <elazarl@gmail.com>.
2011-07-27 10:03:13 -07:00
Scott Franklin
0187219cc1 Adding tab-completion function for zsh. 2011-06-22 18:40:12 -07:00
Evan Martin
55fd4232d3 switch to $ as the line continuation char
This means that backslashes are passed through without interpretation,
allowing us to support Windows paths without worrying about escaping.
2011-05-26 19:35:39 -07:00
Evan Martin
91e0f9ff96 emacs: highlight variable expansions too 2011-05-22 10:28:09 -07:00
Evan Martin
28eb6b792d update instructions on using gyp; mention cmake 2011-05-17 15:27:00 -07:00
Evan Martin
d7bd4a2367 check in a script that generates build.ninja
This will allow us to:
1) simplify bootstrap
2) generate windows-style paths on windows

It is also in line with ninja's philosophy: the build file syntax
is simple because the build files are easy to generate.
2011-05-01 18:02:13 -07:00
Evan Martin
746820c0a3 check in a ninja file generator Python module 2011-04-30 12:15:34 -07:00
Evan Martin
92baa81d51 fix terrible bug in gyp patch 2011-03-11 16:00:39 -08:00
Evan Martin
58a2b6d560 update gyp patch 2011-03-07 14:10:37 -08:00
Evan Martin
723409c578 update gyp patch
(Needed to fix Chrome build.)
2011-02-28 11:59:29 -08:00
Evan Martin
78de420b53 quick-fix gyp.patch for chrome change 2011-02-08 10:23:33 -08:00
Evan Martin
d52238f212 add copyrights 2011-02-06 11:02:57 -08:00
Evan Martin
4caf59af8d use -f for input file, matching make 2011-02-05 11:38:36 -08:00
Evan Martin
e5cf693cdc check in demo file 2011-02-05 11:37:26 -08:00
Evan Martin
0d41b2c219 gyp updates 2011-02-03 10:40:32 -08:00
Evan Martin
d093c24782 update gyp patch 2011-01-31 11:43:19 -08:00
Evan Martin
c1cb4f5ee8 fancier elisp, handle "include" 2011-01-22 19:05:26 -08:00
Evan Martin
44bab83c90 more work on gyp tests, slow going :( 2011-01-14 19:21:54 -08:00
Evan Martin
3446e3407c improved emacs mode 2011-01-08 15:42:29 -08:00
Evan Martin
1297efdd10 more gyp updates 2010-12-20 16:01:47 -08:00
Evan Martin
d196aa6a80 update gyp patch post-builddir-removal 2010-12-19 16:04:58 -08:00
Evan Martin
cd5dd9e74d more gyp work 2010-12-17 14:07:48 -08:00
Evan Martin
baafa7e39c gyp update 2010-12-07 09:21:23 -08:00
Evan Martin
42d237e784 move src into subdir 2010-12-04 16:09:50 -08:00