OLD | NEW |
1 # Copyright (c) 2013 Google Inc. All rights reserved. | 1 # Copyright (c) 2013 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 { | 5 { |
| 6 'target_defaults': { |
| 7 'allow_sharedlib_linksettings_propagation': 0, |
| 8 }, |
6 'targets': [ | 9 'targets': [ |
7 { | 10 { |
8 'target_name': 'sharedlib', | 11 'target_name': 'sharedlib', |
9 'type': 'shared_library', | 12 'type': 'shared_library', |
10 'sources': [ 'sharedlib.c' ], | 13 'sources': [ 'sharedlib.c' ], |
11 'link_settings': { | 14 'link_settings': { |
12 'defines': [ 'TEST_DEFINE=1' ], | 15 'defines': [ 'TEST_DEFINE=1' ], |
13 }, | 16 }, |
14 'conditions': [ | 17 'conditions': [ |
15 ['OS=="linux"', { | 18 ['OS=="linux"', { |
16 # Support 64-bit shared libs (also works fine for 32-bit). | 19 # Support 64-bit shared libs (also works fine for 32-bit). |
17 'cflags': ['-fPIC'], | 20 'cflags': ['-fPIC'], |
18 }], | 21 }], |
19 ], | 22 ], |
20 }, | 23 }, |
21 { | 24 { |
22 'target_name': 'staticlib', | 25 'target_name': 'staticlib', |
23 'type': 'static_library', | 26 'type': 'static_library', |
24 'sources': [ 'staticlib.c' ], | 27 'sources': [ 'staticlib.c' ], |
25 'dependencies': [ 'sharedlib' ], | 28 'dependencies': [ 'sharedlib' ], |
26 }, | 29 }, |
27 { | 30 { |
28 'target_name': 'program', | 31 'target_name': 'program', |
29 'type': 'executable', | 32 'type': 'executable', |
30 'sources': [ 'program.c' ], | 33 'sources': [ 'program.c' ], |
31 'dependencies': [ 'staticlib' ], | 34 'dependencies': [ 'staticlib' ], |
32 }, | 35 }, |
33 ], | 36 ], |
34 } | 37 } |
OLD | NEW |