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..620969526e398b5cfe85c0859df054ed0d56a9d6 100644 |
| --- a/chrome/app/policy/policy_templates.gypi |
| +++ b/chrome/app/policy/policy_templates.gypi |
| @@ -98,6 +98,75 @@ |
| }], |
| ], |
| }, |
| + { |
|
gfeher
2011/01/04 12:58:06
This target is only built for OS==win || OS==linux
danno
2011/01/11 13:03:48
Done.
|
| + 'target_name': 'policy_source', |
| + 'type' : 'none', |
| + 'actions': [ |
| + { |
| + 'variables': { |
| + 'generate_policy_source_script': |
| + 'tools/build/generate_policy_source.py', |
|
gfeher
2011/01/04 12:58:06
Can you move this variable out into the target?
danno
2011/01/11 13:03:48
Done.
|
| + }, |
| + '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)', |
| + '-h', |
| + '<@(_inputs)', |
| + '<@(_outputs)', |
| + ], |
| + 'message': 'Generating policy constant header from template', |
| + }, |
| + { |
| + 'variables': { |
| + 'generate_policy_source_script': |
| + 'tools/build/generate_policy_source.py', |
| + }, |
| + '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)', |
| + '--cc', |
| + '<@(_inputs)', |
| + '<@(_outputs)', |
| + ], |
| + 'message': 'Generating policy constant source from template', |
| + }, |
| + { |
| + 'variables': { |
| + 'generate_policy_source_script': |
| + 'tools/build/generate_policy_source.py', |
| + }, |
| + '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)', |
| + '--pte', |
| + '<@(_inputs)', |
| + '<@(_outputs)', |
| + ], |
| + 'message': 'Generating policy enumeration header from template', |
| + }, |
| + ], |
| + }, |
| ], # 'targets' |
| }], # OS=="win" or OS=="mac" or OS=="linux" |
| ['OS=="mac"', { |