OLD | NEW |
1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2015 Google Inc. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 # This test both tests solibs and implicit_deps. |
5 { | 6 { |
6 'targets': [ | 7 'targets': [ |
7 { | 8 { |
8 'target_name': 'a', | 9 'target_name': 'a', |
9 'type': 'shared_library', | 10 'type': 'shared_library', |
10 'sources': [ 'solib.cc' ], | 11 'sources': [ 'solib.cc' ], |
11 # Incremental linking enabled so that .lib timestamp is maintained when | |
12 # exports are unchanged. | |
13 'msvs_settings': { | |
14 'VCLinkerTool': { | |
15 'LinkIncremental': '2', | |
16 } | |
17 }, | |
18 }, | 12 }, |
19 { | 13 { |
20 'target_name': 'b', | 14 'target_name': 'b', |
| 15 'type': 'shared_library', |
| 16 'sources': [ 'solib.cc' ], |
| 17 }, |
| 18 { |
| 19 'target_name': 'c', |
21 'type': 'executable', | 20 'type': 'executable', |
22 'sources': [ 'main.cc' ], | 21 'sources': [ 'main.cc' ], |
23 'dependencies': [ 'a' ], | 22 'dependencies': [ 'a', 'b' ], |
24 'msvs_settings': { | |
25 'VCLinkerTool': { | |
26 'LinkIncremental': '2', | |
27 } | |
28 }, | |
29 }, | 23 }, |
30 ], | 24 ], |
31 'conditions': [ | 25 'conditions': [ |
32 ['OS=="linux"', { | 26 ['OS=="linux"', { |
33 'target_defaults': { | 27 'target_defaults': { |
34 'cflags': ['-fPIC'], | 28 'cflags': ['-fPIC'], |
35 }, | 29 }, |
36 }], | 30 }], |
37 ], | 31 ], |
38 } | 32 } |
OLD | NEW |