OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. 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 'conditions': [ | 5 'conditions': [ |
| 6 # Dummy target to allow chrome to require chrome_dll to build |
| 7 # without actually linking to the library |
| 8 ['OS=="mac"', { |
| 9 'targets': [ |
| 10 { |
| 11 'target_name': 'chrome_dll_dependency_shim', |
| 12 'type': 'executable', |
| 13 'dependencies': [ |
| 14 'chrome_dll', |
| 15 ], |
| 16 # In release, we end up with a strip step that is unhappy if there is |
| 17 # no binary. Rather than check in a new file for this hack, just |
| 18 # generate a source file on the fly. |
| 19 'actions': [ |
| 20 { |
| 21 'action_name': 'generate_stub_main', |
| 22 'process_outputs_as_sources': 1, |
| 23 'inputs': [], |
| 24 'outputs': [ '<(INTERMEDIATE_DIR)/dummy_main.c' ], |
| 25 'action': [ |
| 26 'bash', '-c', |
| 27 'echo "int main() { return 0; }" > <(INTERMEDIATE_DIR)/dummy_mai
n.c' |
| 28 ], |
| 29 }, |
| 30 ], |
| 31 }, |
| 32 ], |
| 33 }, |
| 34 ], |
6 ['OS=="mac" or OS=="win"', { | 35 ['OS=="mac" or OS=="win"', { |
7 'targets': [ | 36 'targets': [ |
8 { | 37 { |
9 # GN version: //chrome:chrome_dll | 38 # GN version: //chrome:chrome_dll |
10 'target_name': 'chrome_dll', | 39 'target_name': 'chrome_dll', |
11 'type': 'none', | 40 'type': 'none', |
12 'dependencies': [ | 41 'dependencies': [ |
13 'chrome_main_dll', | 42 'chrome_main_dll', |
14 ], | 43 ], |
15 'conditions': [ | 44 'conditions': [ |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 'dependencies': [ | 408 'dependencies': [ |
380 '../pdf/pdf.gyp:pdf', | 409 '../pdf/pdf.gyp:pdf', |
381 ], | 410 ], |
382 }], | 411 }], |
383 ], | 412 ], |
384 }, # target chrome_child_dll | 413 }, # target chrome_child_dll |
385 ], | 414 ], |
386 }], | 415 }], |
387 ], | 416 ], |
388 } | 417 } |
OLD | NEW |