OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 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 |
3 """ | 7 """ |
4 Verify that a link time only dependency will get pulled into the set of built | 8 Verify that a link time only dependency will get pulled into the set of built |
5 targets, even if no executable uses it. | 9 targets, even if no executable uses it. |
6 """ | 10 """ |
7 | 11 |
8 import TestGyp | 12 import TestGyp |
9 | 13 |
10 test = TestGyp.TestGyp() | 14 test = TestGyp.TestGyp() |
11 | 15 |
12 test.run_gyp('lib_only.gyp') | 16 test.run_gyp('lib_only.gyp') |
(...skipping 12 matching lines...) Expand all Loading... |
25 # into the generated sln/_main.scons, since not doing so confuses users. | 29 # into the generated sln/_main.scons, since not doing so confuses users. |
26 # This is not currently implemented on mac, which has the opposite behavior. | 30 # This is not currently implemented on mac, which has the opposite behavior. |
27 if test.format == 'xcode': | 31 if test.format == 'xcode': |
28 test.built_lib_must_not_exist('b') | 32 test.built_lib_must_not_exist('b') |
29 elif test.format == 'make': | 33 elif test.format == 'make': |
30 test.built_lib_must_exist('b', libdir='obj.target/b') | 34 test.built_lib_must_exist('b', libdir='obj.target/b') |
31 else: | 35 else: |
32 test.built_lib_must_exist('b') | 36 test.built_lib_must_exist('b') |
33 | 37 |
34 test.pass_test() | 38 test.pass_test() |
OLD | NEW |