OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2011 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 'targets': [ |
| 7 { |
| 8 'target_name': 'a', |
| 9 'type': 'static_library', |
| 10 'sources': [ |
| 11 'a.c', |
| 12 'a.h', |
| 13 ], |
| 14 'actions': [ |
| 15 { |
| 16 'action_name': 'generate_headers', |
| 17 'inputs': [ |
| 18 'emit.py' |
| 19 ], |
| 20 'outputs': [ |
| 21 '<(SHARED_INTERMEDIATE_DIR)/a/generated.h' |
| 22 ], |
| 23 'action': [ |
| 24 'python', |
| 25 'emit.py', |
| 26 '<(SHARED_INTERMEDIATE_DIR)/a/generated.h', |
| 27 ], |
| 28 # Allows the test to run without hermetic cygwin on windows. |
| 29 'msvs_cygwin_shell': 0, |
| 30 }, |
| 31 ], |
| 32 'include_dirs': [ |
| 33 '<(SHARED_INTERMEDIATE_DIR)', |
| 34 ], |
| 35 'direct_dependent_settings': { |
| 36 'include_dirs': [ |
| 37 '<(SHARED_INTERMEDIATE_DIR)', |
| 38 ], |
| 39 }, |
| 40 }, |
| 41 { |
| 42 'target_name': 'b', |
| 43 'type': 'executable', |
| 44 'sources': [ |
| 45 'b.c', |
| 46 'b.h', |
| 47 ], |
| 48 'dependencies': [ |
| 49 'a', |
| 50 ], |
| 51 }, |
| 52 { |
| 53 'target_name': 'c', |
| 54 'type': 'static_library', |
| 55 'sources': [ |
| 56 'c.c', |
| 57 'c.h', |
| 58 ], |
| 59 'dependencies': [ |
| 60 'b', |
| 61 ], |
| 62 'actions': [ |
| 63 { |
| 64 'action_name': 'generate_headers', |
| 65 'inputs': [ |
| 66 ], |
| 67 'outputs': [ |
| 68 '<(SHARED_INTERMEDIATE_DIR)/c/generated.h' |
| 69 ], |
| 70 'action': [ |
| 71 '<(PRODUCT_DIR)/b', |
| 72 '<(SHARED_INTERMEDIATE_DIR)/c/generated.h', |
| 73 ], |
| 74 # Allows the test to run without hermetic cygwin on windows. |
| 75 'msvs_cygwin_shell': 0, |
| 76 }, |
| 77 ], |
| 78 'include_dirs': [ |
| 79 '<(SHARED_INTERMEDIATE_DIR)', |
| 80 ], |
| 81 'direct_dependent_settings': { |
| 82 'include_dirs': [ |
| 83 '<(SHARED_INTERMEDIATE_DIR)', |
| 84 ], |
| 85 }, |
| 86 }, |
| 87 ], |
| 88 } |
OLD | NEW |