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
Build a .gyp with two targets that share a common .c source file.
13
test = TestGyp.TestGyp()
15
test.run_gyp('all.gyp', chdir='src')
17
test.relocate('src', 'relocate/src')
19
test.build('all.gyp', chdir='relocate/src')
23
Hello prog1 from func.c
28
Hello prog2 from func.c
31
test.run_built_executable('prog1', chdir='relocate/src', stdout=expect1)
32
test.run_built_executable('prog2', chdir='relocate/src', stdout=expect2)