Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 { | 5 { |
| 6 'targets': [ | |
| 7 { | |
| 8 'target_name': 'policy_source', | |
| 9 'type' : 'none', | |
| 10 'variables': | |
| 11 { | |
| 12 'generate_policy_source_script': | |
| 13 'tools/build/generate_policy_source.py', | |
|
gfeher
2011/01/11 15:43:58
Nit suggestion: make this ['python', 'tools/build/
danno
2011/01/20 17:18:32
Done.
| |
| 14 }, | |
| 15 'actions': [ | |
| 16 { | |
| 17 'inputs': [ | |
| 18 'policy_templates.json', | |
| 19 ], | |
| 20 'outputs': [ | |
| 21 '<(policy_out_dir)/chrome/common/policy_constants.h', | |
| 22 ], | |
| 23 'action_name': 'generate_policy_constant_header', | |
| 24 'action': [ | |
| 25 'python', | |
| 26 '<(generate_policy_source_script)', | |
| 27 '--policy-constants-header', | |
| 28 '<@(_inputs)', | |
| 29 '<@(_outputs)', | |
| 30 ], | |
| 31 'message': 'Generating policy constant header from template', | |
| 32 'process_outputs_as_sources': 1, | |
| 33 }, | |
| 34 { | |
| 35 'inputs': [ | |
| 36 'policy_templates.json', | |
| 37 ], | |
| 38 'outputs': [ | |
| 39 '<(policy_out_dir)/chrome/common/policy_constants.cc', | |
| 40 ], | |
| 41 'action_name': 'generate_policy_constant_source', | |
| 42 'action': [ | |
| 43 'python', | |
| 44 '<(generate_policy_source_script)', | |
| 45 '--policy-constants-source', | |
| 46 '<@(_inputs)', | |
| 47 '<@(_outputs)', | |
| 48 ], | |
| 49 'message': 'Generating policy constant source from template', | |
| 50 'process_outputs_as_sources': 1, | |
| 51 }, | |
| 52 { | |
| 53 'inputs': [ | |
| 54 'policy_templates.json', | |
| 55 ], | |
| 56 'outputs': [ | |
| 57 '<(policy_out_dir)/chrome/browser/policy/configuration_policy_type.h ', | |
| 58 ], | |
| 59 'action_name': 'generate_policy_type_enumeration', | |
| 60 'action': [ | |
| 61 'python', | |
| 62 '<(generate_policy_source_script)', | |
| 63 '--policy-type-header', | |
| 64 '<@(_inputs)', | |
| 65 '<@(_outputs)', | |
| 66 ], | |
| 67 'message': 'Generating policy enumeration header from template', | |
| 68 'process_outputs_as_sources': 1, | |
| 69 }, | |
| 70 ], | |
| 71 }, | |
| 72 ], | |
| 6 'conditions': [ | 73 'conditions': [ |
| 7 ['OS=="win" or OS=="mac" or OS=="linux"', { | 74 ['OS=="win" or OS=="mac" or OS=="linux"', { |
| 8 'targets': [ | 75 'targets': [ |
| 9 { | 76 { |
| 10 # policy_templates has different inputs and outputs, so it can't use | 77 # policy_templates has different inputs and outputs, so it can't use |
| 11 # the rules of chrome_strings | 78 # the rules of chrome_strings |
| 12 'target_name': 'policy_templates', | 79 'target_name': 'policy_templates', |
| 13 'type': 'none', | 80 'type': 'none', |
| 14 'variables': { | 81 'variables': { |
| 15 'grd_path': 'policy_templates.grd', | 82 'grd_path': 'policy_templates.grd', |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 ] | 238 ] |
| 172 }] | 239 }] |
| 173 ], # 'conditions' | 240 ], # 'conditions' |
| 174 } | 241 } |
| 175 | 242 |
| 176 # Local Variables: | 243 # Local Variables: |
| 177 # tab-width:2 | 244 # tab-width:2 |
| 178 # indent-tabs-mode:nil | 245 # indent-tabs-mode:nil |
| 179 # End: | 246 # End: |
| 180 # vim: set expandtab tabstop=2 shiftwidth=2: | 247 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |