OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'make_global_settings': [ |
| 7 ['LINK_wrapper', './check-ldflags.py'], |
| 8 ], |
| 9 'targets': [ |
| 10 { |
| 11 'target_name': 'test', |
| 12 'type': 'executable', |
| 13 'ldflags': [ |
| 14 '-Wl,--whole-archive <(PRODUCT_DIR)/lib1.a', |
| 15 '-Wl,--no-whole-archive', |
| 16 |
| 17 '-Wl,--whole-archive <(PRODUCT_DIR)/lib2.a', |
| 18 '-Wl,--no-whole-archive', |
| 19 ], |
| 20 'dependencies': [ |
| 21 'lib1', |
| 22 'lib2', |
| 23 ], |
| 24 'sources': [ |
| 25 'main.c', |
| 26 ], |
| 27 }, |
| 28 { |
| 29 'target_name': 'lib1', |
| 30 'type': 'static_library', |
| 31 'standalone_static_library': 1, |
| 32 'sources': [ |
| 33 'lib1.c', |
| 34 ], |
| 35 }, |
| 36 { |
| 37 'target_name': 'lib2', |
| 38 'type': 'static_library', |
| 39 'standalone_static_library': 1, |
| 40 'sources': [ |
| 41 'lib2.c', |
| 42 ], |
| 43 }, |
| 44 ], |
| 45 } |
OLD | NEW |