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 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.
16 test = TestGyp.TestGyp()
18 test.run_gyp('prog1.gyp', chdir='src')
20 test.relocate('src', 'relocate/src')
22 chdir = 'relocate/src/subdir'
24 test.build('prog2.gyp', chdir=chdir)
26 test.built_file_must_not_exist('prog1', type=test.EXECUTABLE, chdir=chdir)
28 test.run_built_executable('prog2',
30 stdout="Hello from prog2.c\n")