OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env python | |
2 | |
3 # Copyright (c) 2015 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 Make sure that we cause downstream modules to get built when we depend on the | |
9 parent targets. | |
10 """ | |
11 | |
12 import TestGyp | |
13 | |
14 test = TestGyp.TestGyp(formats=['msvs', 'ninja']) | |
Nico
2015/11/03 20:39:15
should this pass with all generators?
scottmg
2015/11/03 20:54:34
Oops, yes, thanks. Done.
| |
15 | |
16 CHDIR = 'module-dep' | |
17 test.run_gyp('indirect-module-dependency.gyp', chdir=CHDIR) | |
18 test.build('indirect-module-dependency.gyp', 'an_exe', chdir=CHDIR) | |
19 test.built_file_must_exist( | |
20 test.built_file_basename('a_module', test.LOADABLE_MODULE), chdir=CHDIR) | |
21 | |
22 test.pass_test() | |
OLD | NEW |