Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: test/toplevel-dir/gyptest-toplevel-dir.py

Issue 2122004: Add a flag to generate the Makefile in a different directory than... (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/generator/make.py ('k') | test/toplevel-dir/src/sub1/main.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2009 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 """
8 Verifies building a subsidiary dependent target from a .gyp file in a
9 subdirectory, without specifying an explicit output build directory,
10 and using the subdirectory's solution or project file as the entry point.
11 """
12
13 import TestGyp
14 import errno
15
16 test = TestGyp.TestGyp(formats=['make'])
17
18 # We want our Makefile to be one dir up from main.gyp.
19 test.run_gyp('main.gyp', '--toplevel-dir=..', chdir='src/sub1')
20
21 toplevel_dir = 'src'
22
23 test.build('all', chdir=toplevel_dir)
24
25 test.built_file_must_exist('prog1', type=test.EXECUTABLE, chdir=toplevel_dir)
26
27 test.run_built_executable('prog1',
28 chdir=toplevel_dir,
29 stdout="Hello from prog1.c\n")
30
31 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/generator/make.py ('k') | test/toplevel-dir/src/sub1/main.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698