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