Chromium Code Reviews| Index: chrome/app/policy/policy_templates.gypi |
| diff --git a/chrome/app/policy/policy_templates.gypi b/chrome/app/policy/policy_templates.gypi |
| index 4f41c3a036d37dadbb3278104edcc409184140d1..656a961fbd2ef01ade18db4a456fbd79312902f0 100644 |
| --- a/chrome/app/policy/policy_templates.gypi |
| +++ b/chrome/app/policy/policy_templates.gypi |
| @@ -3,6 +3,73 @@ |
| # found in the LICENSE file. |
| { |
| + 'targets': [ |
| + { |
| + 'target_name': 'policy_source', |
| + 'type' : 'none', |
| + 'variables': |
| + { |
| + 'generate_policy_source_script': |
| + '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.
|
| + }, |
| + 'actions': [ |
| + { |
| + 'inputs': [ |
| + 'policy_templates.json', |
| + ], |
| + 'outputs': [ |
| + '<(policy_out_dir)/chrome/common/policy_constants.h', |
| + ], |
| + 'action_name': 'generate_policy_constant_header', |
| + 'action': [ |
| + 'python', |
| + '<(generate_policy_source_script)', |
| + '--policy-constants-header', |
| + '<@(_inputs)', |
| + '<@(_outputs)', |
| + ], |
| + 'message': 'Generating policy constant header from template', |
| + 'process_outputs_as_sources': 1, |
| + }, |
| + { |
| + 'inputs': [ |
| + 'policy_templates.json', |
| + ], |
| + 'outputs': [ |
| + '<(policy_out_dir)/chrome/common/policy_constants.cc', |
| + ], |
| + 'action_name': 'generate_policy_constant_source', |
| + 'action': [ |
| + 'python', |
| + '<(generate_policy_source_script)', |
| + '--policy-constants-source', |
| + '<@(_inputs)', |
| + '<@(_outputs)', |
| + ], |
| + 'message': 'Generating policy constant source from template', |
| + 'process_outputs_as_sources': 1, |
| + }, |
| + { |
| + 'inputs': [ |
| + 'policy_templates.json', |
| + ], |
| + 'outputs': [ |
| + '<(policy_out_dir)/chrome/browser/policy/configuration_policy_type.h', |
| + ], |
| + 'action_name': 'generate_policy_type_enumeration', |
| + 'action': [ |
| + 'python', |
| + '<(generate_policy_source_script)', |
| + '--policy-type-header', |
| + '<@(_inputs)', |
| + '<@(_outputs)', |
| + ], |
| + 'message': 'Generating policy enumeration header from template', |
| + 'process_outputs_as_sources': 1, |
| + }, |
| + ], |
| + }, |
| + ], |
| 'conditions': [ |
| ['OS=="win" or OS=="mac" or OS=="linux"', { |
| 'targets': [ |