Commit Graph

110 Commits

Author SHA1 Message Date
Evan Martin
62620a074a Merge pull request #472 from riannucci/add_python_pool_syntax
Add python ninja_syntax.py support for pool
2012-12-14 11:05:44 -08:00
Robert Iannucci
53ba2ca746 Add missing default keyword 2012-12-13 23:21:02 -08:00
Robert Iannucci
16a7f86f0f Add pool 2012-12-13 23:20:50 -08:00
Robert Iannucci
a7e4d6affb Add missing rspfile and rspfile_content 2012-12-13 23:12:47 -08:00
Robert Iannucci
e735510fcf Add ninja.vim syntax for pool 2012-12-13 23:12:47 -08:00
Robert Iannucci
f5129c8174 Add python ninja_syntax.py support for pool 2012-12-13 23:11:48 -08:00
Tommy Nyquist
e6c67528e8 Add support for reading directory for bash completion.
Currently ninja bash completion only works in the directory where the
build.ninja files is located. This adds support for using the -C
argument to ninja.
2012-10-30 15:28:02 -07:00
Zaheer Chothia
1d5daecfaf Add support for Python 3 2012-10-18 15:03:20 +02:00
Maxim Kalaev
1cdfae5a88 packaging: refactored rpm building
Now passing through a valid SRPM, working in a standard way.
2012-09-23 14:37:11 +02:00
Maxim Kalaev
0cd552c0dc packaging: added basic RPM building 2012-07-27 13:22:34 +03:00
Evan Martin
1e2514e521 ninja_syntax: escape colons in paths 2012-07-17 13:26:21 -07:00
Thiago Farina
3baedf1767 Rename parsers.* to manifest_parser.*
So it matches with the class name in there.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
2012-07-09 16:09:31 -03:00
Nico Weber
d8d301b2ec Make :set spell only check spelling in comments. Patch from Thilo Six <T.Six@gmx.de>! 2012-06-01 10:59:15 -07:00
Nico Weber
8aebe7d32e vim syntax file: Highlight ninja comments. 2012-05-13 21:34:58 -07:00
Nico Weber
7ef52b4c6f Fix layout width in ninja_syntax.py.
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.
2012-05-01 18:26:51 -07:00
Evan Martin
8066c2d1bb emacs: hook up ninja-mode to extension 2012-04-28 09:06:55 -07:00
Scott Graham
35544126cf add rspfile and rspfile_content to ninja_syntax 2012-03-26 17:36:43 -07:00
Scott Franklin
e257aa3fbd Explicitly turn input/output lists into list objects.
Python 3 does not support map.append/extend.
2012-01-28 15:16:47 -05:00
Evan Martin
f41757f885 Merge pull request #185 from nico/vim
Add a ninja syntax file for vim.
2012-01-04 16:46:42 -08:00
Evan Jones
16e4419e88 ninja_syntax.py: Fix a bug when passing dict variables to Writer.build()
Add a test to cover both dict and list variables.
2012-01-04 17:36:08 -05:00
Nico Weber
98956ab4e8 Add a ninja syntax file for vim. 2012-01-04 13:52:11 -08:00
Evan Martin
eaf1ff1904 add script for measuring build performance 2011-12-29 11:57:02 -08:00
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