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.
8
Verifies building a project hierarchy created when the --generator-output=
9
option is used to put the build configuration files in a separate
15
test = TestGyp.TestGyp()
17
test.writable(test.workpath('src'), False)
19
test.run_gyp('prog1.gyp',
21
'--generator-output=' + test.workpath('gypfiles'),
24
test.writable(test.workpath('src/build'), True)
25
test.writable(test.workpath('src/subdir2/build'), True)
26
test.writable(test.workpath('src/subdir3/build'), True)
28
test.build('prog1.gyp', test.ALL, chdir='gypfiles')
35
Hello from inc1/include1.h
36
Hello from inc2/include2.h
37
Hello from inc3/include3.h
38
Hello from subdir2/deeper/deeper.h
41
if test.format == 'xcode':
43
test.run_built_executable('prog1', chdir=chdir, stdout=expect % 'prog1.c')
45
if test.format == 'xcode':
47
test.run_built_executable('prog2', chdir=chdir, stdout=expect % 'prog2.c')
49
if test.format == 'xcode':
51
test.run_built_executable('prog3', chdir=chdir, stdout=expect % 'prog3.c')