diff options
author | sgk@chromium.org <sgk@chromium.org@78cadc50-ecff-11dd-a971-7dbc132099af> | 2009-10-21 18:45:59 +0000 |
---|---|---|
committer | sgk@chromium.org <sgk@chromium.org@78cadc50-ecff-11dd-a971-7dbc132099af> | 2009-10-21 18:45:59 +0000 |
commit | 040d50e7277c41a0b9641dc42c76be8605055637 (patch) | |
tree | 3b0b85c0075912b1b07e9a8da90060c3ffd96ca4 /test/library/gyptest-static.py | |
parent | 5f64b9b1d8c4bb6d87ca526ea9ae1191f64946e1 (diff) | |
download | gyp-040d50e7277c41a0b9641dc42c76be8605055637.tar.gz |
Simplify the API for building targets:
Gets rid of the separate .build_{all,default,target)() methods
(and underlying .run_build() methods in the subclasses that had one)
in favor of a single .build() method that takes an optional target
argument:
* An unspecified target argument, or an explicit target
argument of None or test.DEFAULT builds the default target for
the generated build configuration.
* A target argumnent of test.ALL builds the 'all' target (if any)
for the generatede build configuration.
* Otherwise, the specified target is built.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/306029
git-svn-id: http://gyp.googlecode.com/svn/trunk@717 78cadc50-ecff-11dd-a971-7dbc132099af
Diffstat (limited to 'test/library/gyptest-static.py')
-rw-r--r-- | test/library/gyptest-static.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/library/gyptest-static.py b/test/library/gyptest-static.py index 0998eb9d..e5c5117b 100644 --- a/test/library/gyptest-static.py +++ b/test/library/gyptest-static.py @@ -17,7 +17,7 @@ test.run_gyp('library.gyp', test.relocate('src', 'relocate/src') -test.build_all('library.gyp', chdir='relocate/src') +test.build('library.gyp', test.ALL, chdir='relocate/src') expect = """\ Hello from program.c @@ -39,7 +39,7 @@ contents = test.read('relocate/src/program.c') contents = contents.replace('Hello', 'Hello again') test.write('relocate/src/program.c', contents) -test.build_all('library.gyp', chdir='relocate/src') +test.build('library.gyp', test.ALL, chdir='relocate/src') expect = """\ Hello again from program.c @@ -66,7 +66,7 @@ test.write('relocate/src/program.c', contents) # on the generated .vcproj file itself. test.touch('relocate/src/lib2.c') -test.build_all('library.gyp', chdir='relocate/src') +test.build('library.gyp', test.ALL, chdir='relocate/src') expect = """\ Hello again again from program.c |