| OLD | NEW |
| 1 # Copyright (c) 2014 Google Inc. All rights reserved. | 1 # Copyright (c) 2014 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 'variables': { | 6 'variables': { |
| 7 'test_variable%': 0, | 7 'test_variable%': 0, |
| 8 'variable_path': 'subdir', | 8 'variable_path': 'subdir', |
| 9 }, | 9 }, |
| 10 'targets': [ | 10 'targets': [ |
| 11 { | 11 { |
| 12 'target_name': 'exe', | 12 'target_name': 'exe', |
| 13 'type': 'executable', | 13 'type': 'executable', |
| 14 'dependencies': [ | 14 'dependencies': [ |
| 15 'subdir/subdir.gyp:foo', | 15 'subdir/subdir.gyp:foo', |
| 16 'subdir/subdir2/subdir2.gyp:subdir2', |
| 16 ], | 17 ], |
| 17 'sources': [ | 18 'sources': [ |
| 18 'foo.c', | 19 'foo.c', |
| 19 '<(variable_path)/subdir_source2.c', | 20 '<(variable_path)/subdir_source2.c', |
| 20 ], | 21 ], |
| 21 'conditions': [ | 22 'conditions': [ |
| 22 ['test_variable==1', { | 23 ['test_variable==1', { |
| 23 'sources': [ | 24 'sources': [ |
| 24 'conditional_source.c', | 25 'conditional_source.c', |
| 25 ], | 26 ], |
| 26 }], | 27 }], |
| 27 ], | 28 ], |
| 28 'actions': [ | 29 'actions': [ |
| 29 { | 30 { |
| 30 'action_name': 'action', | 31 'action_name': 'action', |
| 31 'inputs': [ | 32 'inputs': [ |
| 32 '<(PRODUCT_DIR)/product_dir_input.c', | 33 '<(PRODUCT_DIR)/product_dir_input.c', |
| 33 'action_input.c', | 34 'action_input.c', |
| 35 '../bad_path1.h', |
| 36 '../../bad_path2.h', |
| 34 ], | 37 ], |
| 35 'outputs': [ | 38 'outputs': [ |
| 36 'action_output.c', | 39 'action_output.c', |
| 37 ], | 40 ], |
| 38 }, | 41 }, |
| 39 ], | 42 ], |
| 40 'rules': [ | 43 'rules': [ |
| 41 { | 44 { |
| 42 'rule_name': 'rule', | 45 'rule_name': 'rule', |
| 43 'extension': 'pdf', | 46 'extension': 'pdf', |
| 44 'inputs': [ | 47 'inputs': [ |
| 45 'rule_input.c', | 48 'rule_input.c', |
| 46 ], | 49 ], |
| 47 'outputs': [ | 50 'outputs': [ |
| 48 'rule_output.pdf', | 51 'rule_output.pdf', |
| 49 ], | 52 ], |
| 50 }, | 53 }, |
| 51 ], | 54 ], |
| 52 }, | 55 }, |
| 53 ], | 56 ], |
| 54 } | 57 } |
| OLD | NEW |