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 'conditions': [ | 6 'conditions': [ |
7 ['OS=="win" or OS=="mac" or OS=="linux"', { | 7 ['OS=="win" or OS=="mac" or OS=="linux"', { |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 # policy_templates has different inputs and outputs, so it can't use | 10 # policy_templates has different inputs and outputs, so it can't use |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 ], | 91 ], |
92 'message': 'Packing generated templates into <(_outputs)', | 92 'message': 'Packing generated templates into <(_outputs)', |
93 } | 93 } |
94 ] | 94 ] |
95 }], | 95 }], |
96 ['OS=="win"', { | 96 ['OS=="win"', { |
97 'dependencies': ['../build/win/system.gyp:cygwin'], | 97 'dependencies': ['../build/win/system.gyp:cygwin'], |
98 }], | 98 }], |
99 ], | 99 ], |
100 }, | 100 }, |
101 { | |
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.
| |
102 'target_name': 'policy_source', | |
103 'type' : 'none', | |
104 'actions': [ | |
105 { | |
106 'variables': { | |
107 'generate_policy_source_script': | |
108 '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.
| |
109 }, | |
110 'inputs': [ | |
111 'policy_templates.json', | |
112 ], | |
113 'outputs': [ | |
114 '<(policy_out_dir)/chrome/common/policy_constants.h', | |
115 ], | |
116 'action_name': 'generate_policy_constant_header', | |
117 'action': [ | |
118 'python', | |
119 '<(generate_policy_source_script)', | |
120 '-h', | |
121 '<@(_inputs)', | |
122 '<@(_outputs)', | |
123 ], | |
124 'message': 'Generating policy constant header from template', | |
125 }, | |
126 { | |
127 'variables': { | |
128 'generate_policy_source_script': | |
129 'tools/build/generate_policy_source.py', | |
130 }, | |
131 'inputs': [ | |
132 'policy_templates.json', | |
133 ], | |
134 'outputs': [ | |
135 '<(policy_out_dir)/chrome/common/policy_constants.cc', | |
136 ], | |
137 'action_name': 'generate_policy_constant_source', | |
138 'action': [ | |
139 'python', | |
140 '<(generate_policy_source_script)', | |
141 '--cc', | |
142 '<@(_inputs)', | |
143 '<@(_outputs)', | |
144 ], | |
145 'message': 'Generating policy constant source from template', | |
146 }, | |
147 { | |
148 'variables': { | |
149 'generate_policy_source_script': | |
150 'tools/build/generate_policy_source.py', | |
151 }, | |
152 'inputs': [ | |
153 'policy_templates.json', | |
154 ], | |
155 'outputs': [ | |
156 '<(policy_out_dir)/chrome/browser/policy/configuration_policy_ty pe.h', | |
157 ], | |
158 'action_name': 'generate_policy_type_enumeration', | |
159 'action': [ | |
160 'python', | |
161 '<(generate_policy_source_script)', | |
162 '--pte', | |
163 '<@(_inputs)', | |
164 '<@(_outputs)', | |
165 ], | |
166 'message': 'Generating policy enumeration header from template', | |
167 }, | |
168 ], | |
169 }, | |
101 ], # 'targets' | 170 ], # 'targets' |
102 }], # OS=="win" or OS=="mac" or OS=="linux" | 171 }], # OS=="win" or OS=="mac" or OS=="linux" |
103 ['OS=="mac"', { | 172 ['OS=="mac"', { |
104 'targets': [ | 173 'targets': [ |
105 { | 174 { |
106 # This is the bundle of the manifest file of Chrome. | 175 # This is the bundle of the manifest file of Chrome. |
107 # It contains the manifest file and its string tables. | 176 # It contains the manifest file and its string tables. |
108 'target_name': 'chrome_manifest_bundle', | 177 'target_name': 'chrome_manifest_bundle', |
109 'type': 'loadable_module', | 178 'type': 'loadable_module', |
110 'mac_bundle': 1, | 179 'mac_bundle': 1, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 ] | 240 ] |
172 }] | 241 }] |
173 ], # 'conditions' | 242 ], # 'conditions' |
174 } | 243 } |
175 | 244 |
176 # Local Variables: | 245 # Local Variables: |
177 # tab-width:2 | 246 # tab-width:2 |
178 # indent-tabs-mode:nil | 247 # indent-tabs-mode:nil |
179 # End: | 248 # End: |
180 # vim: set expandtab tabstop=2 shiftwidth=2: | 249 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |