Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Unified Diff: chrome/app/policy/policy_templates.gypi

Issue 6002015: Policy: generate boilerplate policy type and constant code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/app/policy/policy_templates.json » ('j') | chrome/app/policy/policy_templates.json » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"', {
« no previous file with comments | « no previous file | chrome/app/policy/policy_templates.json » ('j') | chrome/app/policy/policy_templates.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698