OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'includes': [ | 6 'includes': [ |
7 # Included to get 'mac_bundle_id' and other variables. | 7 # Included to get 'mac_bundle_id' and other variables. |
8 '../build/chrome_settings.gypi', | 8 '../build/chrome_settings.gypi', |
9 ], | 9 ], |
10 'variables': { | 10 'variables': { |
11 'chromium_code': 1, | 11 'chromium_code': 1, |
12 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', | 12 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', |
13 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy', | 13 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy', |
14 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 14 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
15 'android_resources_out_dir': '<(policy_out_dir)/android_resources', | |
16 'generate_policy_source_script_path': | 15 'generate_policy_source_script_path': |
17 'policy/tools/generate_policy_source.py', | 16 'policy/tools/generate_policy_source.py', |
18 'policy_constant_header_path': | 17 'policy_constant_header_path': |
19 '<(policy_out_dir)/policy/policy_constants.h', | 18 '<(policy_out_dir)/policy/policy_constants.h', |
20 'policy_constant_source_path': | 19 'policy_constant_source_path': |
21 '<(policy_out_dir)/policy/policy_constants.cc', | 20 '<(policy_out_dir)/policy/policy_constants.cc', |
22 'protobuf_decoder_path': | 21 'protobuf_decoder_path': |
23 '<(policy_out_dir)/policy/cloud_policy_generated.cc', | 22 '<(policy_out_dir)/policy/cloud_policy_generated.cc', |
24 'app_restrictions_path': | 23 'app_restrictions_path': |
25 '<(android_resources_out_dir)/xml-v21/app_restrictions.xml', | 24 '<(policy_out_dir)/app_restrictions.xml', |
26 'app_resources_path': | |
27 '<(android_resources_out_dir)/values-v21/restriction_values.xml', | |
28 # This is the "full" protobuf, which defines one protobuf message per | 25 # This is the "full" protobuf, which defines one protobuf message per |
29 # policy. It is also the format currently used by the server. | 26 # policy. It is also the format currently used by the server. |
30 'chrome_settings_proto_path': | 27 'chrome_settings_proto_path': |
31 '<(policy_out_dir)/policy/chrome_settings.proto', | 28 '<(policy_out_dir)/policy/chrome_settings.proto', |
32 # This protobuf is equivalent to chrome_settings.proto but shares messages | 29 # This protobuf is equivalent to chrome_settings.proto but shares messages |
33 # for policies of the same type, so that less classes have to be generated | 30 # for policies of the same type, so that less classes have to be generated |
34 # and compiled. | 31 # and compiled. |
35 'cloud_policy_proto_path': | 32 'cloud_policy_proto_path': |
36 '<(policy_out_dir)/policy/cloud_policy.proto', | 33 '<(policy_out_dir)/policy/cloud_policy.proto', |
37 }, | 34 }, |
35 'targets': [ | |
36 { | |
37 # policy_templates has different inputs and outputs, so it can't use | |
38 # the rules of chrome_strings | |
39 'target_name': 'policy_templates', | |
40 'type': 'none', | |
41 'variables': { | |
42 'grit_grd_file': 'policy/resources/policy_templates.grd', | |
43 'grit_info_cmd': [ | |
44 'python', | |
45 '<(DEPTH)/tools/grit/grit_info.py', | |
46 '<@(grit_defines)', | |
47 ], | |
48 }, | |
49 'includes': [ | |
50 '../build/grit_target.gypi', | |
51 ], | |
52 'actions': [ | |
53 { | |
54 'action_name': 'policy_templates', | |
55 'includes': [ | |
56 '../build/grit_action.gypi', | |
57 ], | |
58 }, | |
59 ], | |
60 }, | |
61 ], | |
38 'conditions': [ | 62 'conditions': [ |
39 ['component=="static_library"', { | 63 ['component=="static_library"', { |
40 'targets': [ | 64 'targets': [ |
41 { | 65 { |
42 # GN version: //components/policy:policy_component | 66 # GN version: //components/policy:policy_component |
43 'target_name': 'policy_component', | 67 'target_name': 'policy_component', |
44 'type': 'none', | 68 'type': 'none', |
45 'dependencies': [ | 69 'dependencies': [ |
46 'policy_component_common', | 70 'policy_component_common', |
47 'policy_component_browser', | 71 'policy_component_browser', |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 'policy/resources/policy_templates.json', | 132 'policy/resources/policy_templates.json', |
109 '<(generate_policy_source_script_path)', | 133 '<(generate_policy_source_script_path)', |
110 ], | 134 ], |
111 'outputs': [ | 135 'outputs': [ |
112 '<(policy_constant_header_path)', | 136 '<(policy_constant_header_path)', |
113 '<(policy_constant_source_path)', | 137 '<(policy_constant_source_path)', |
114 '<(protobuf_decoder_path)', | 138 '<(protobuf_decoder_path)', |
115 '<(chrome_settings_proto_path)', | 139 '<(chrome_settings_proto_path)', |
116 '<(cloud_policy_proto_path)', | 140 '<(cloud_policy_proto_path)', |
117 '<(app_restrictions_path)', | 141 '<(app_restrictions_path)', |
118 '<(app_resources_path)', | |
119 ], | 142 ], |
120 'action_name': 'generate_policy_source', | 143 'action_name': 'generate_policy_source', |
121 'action': [ | 144 'action': [ |
122 'python', | 145 'python', |
123 '<@(generate_policy_source_script_path)', | 146 '<@(generate_policy_source_script_path)', |
124 '--policy-constants-header=<(policy_constant_header_path)', | 147 '--policy-constants-header=<(policy_constant_header_path)', |
125 '--policy-constants-source=<(policy_constant_source_path)', | 148 '--policy-constants-source=<(policy_constant_source_path)', |
126 '--chrome-settings-protobuf=<(chrome_settings_proto_path)', | 149 '--chrome-settings-protobuf=<(chrome_settings_proto_path)', |
127 '--cloud-policy-protobuf=<(cloud_policy_proto_path)', | 150 '--cloud-policy-protobuf=<(cloud_policy_proto_path)', |
128 '--cloud-policy-decoder=<(protobuf_decoder_path)', | 151 '--cloud-policy-decoder=<(protobuf_decoder_path)', |
129 '--app-restrictions-definition=<(app_restrictions_path)', | 152 '--app-restrictions-definition=<(app_restrictions_path)', |
130 '--app-restrictions-resources=<(app_resources_path)', | |
131 '<(OS)', | 153 '<(OS)', |
132 '<(chromeos)', | 154 '<(chromeos)', |
133 'policy/resources/policy_templates.json', | 155 'policy/resources/policy_templates.json', |
134 ], | 156 ], |
135 'message': 'Generating policy source', | 157 'message': 'Generating policy source', |
136 'conditions': [ | 158 'conditions': [ |
137 ['OS!="android"', { | 159 ['OS!="android"', { |
138 'outputs!': [ | 160 'outputs!': [ |
139 '<(app_restrictions_path)', | 161 '<(app_restrictions_path)', |
140 '<(app_resources_path)', | |
141 ], | 162 ], |
142 }], | 163 }], |
143 ], | 164 ], |
144 }, | 165 }, |
145 ], | 166 ], |
146 'direct_dependent_settings': { | 167 'direct_dependent_settings': { |
147 'include_dirs': [ | 168 'include_dirs': [ |
148 '<(policy_out_dir)', | 169 '<(policy_out_dir)', |
149 '<(protoc_out_dir)', | 170 '<(protoc_out_dir)', |
150 ], | 171 ], |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
353 'cloud_policy_code_generate', | 374 'cloud_policy_code_generate', |
354 ], | 375 ], |
355 'configurations': { | 376 'configurations': { |
356 'Common_Base': { | 377 'Common_Base': { |
357 'msvs_target_platform': 'x64', | 378 'msvs_target_platform': 'x64', |
358 }, | 379 }, |
359 }, | 380 }, |
360 }, | 381 }, |
361 ], | 382 ], |
362 }], | 383 }], |
363 ['OS=="win" or OS=="mac" or OS=="linux"', { | |
Bernhard Bauer
2015/01/21 14:23:48
Shouldn't this stay here and just get extended by
knn
2015/01/21 14:42:18
Sorry, forgot about iOS. isn't ChromeOs still unde
Bernhard Bauer
2015/01/21 15:43:27
That's true. We probably don't need the templates
knn
2015/01/21 16:39:31
Done.
| |
364 'targets': [ | |
365 { | |
366 # policy_templates has different inputs and outputs, so it can't use | |
367 # the rules of chrome_strings | |
368 'target_name': 'policy_templates', | |
369 'type': 'none', | |
370 'variables': { | |
371 'grit_grd_file': 'policy/resources/policy_templates.grd', | |
372 'grit_info_cmd': [ | |
373 'python', | |
374 '<(DEPTH)/tools/grit/grit_info.py', | |
375 '<@(grit_defines)', | |
376 ], | |
377 }, | |
378 'includes': [ | |
379 '../build/grit_target.gypi', | |
380 ], | |
381 'actions': [ | |
382 { | |
383 'action_name': 'policy_templates', | |
384 'includes': [ | |
385 '../build/grit_action.gypi', | |
386 ], | |
387 }, | |
388 ], | |
389 }, | |
390 ], | |
391 }], | |
392 ['OS=="mac"', { | 384 ['OS=="mac"', { |
393 'targets': [ | 385 'targets': [ |
394 { | 386 { |
395 # This is the bundle of the manifest file of Chrome. | 387 # This is the bundle of the manifest file of Chrome. |
396 # It contains the manifest file and its string tables. | 388 # It contains the manifest file and its string tables. |
397 'target_name': 'chrome_manifest_bundle', | 389 'target_name': 'chrome_manifest_bundle', |
398 'type': 'loadable_module', | 390 'type': 'loadable_module', |
399 'mac_bundle': 1, | 391 'mac_bundle': 1, |
400 'product_extension': 'manifest', | 392 'product_extension': 'manifest', |
401 'product_name': '<(mac_bundle_id)', | 393 'product_name': '<(mac_bundle_id)', |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
461 'message': | 453 'message': |
462 'Copy the Localizable.strings files to the manifest bundle', | 454 'Copy the Localizable.strings files to the manifest bundle', |
463 'process_outputs_as_mac_bundle_resources': 1, | 455 'process_outputs_as_mac_bundle_resources': 1, |
464 }, | 456 }, |
465 ], | 457 ], |
466 }, | 458 }, |
467 ], | 459 ], |
468 }], | 460 }], |
469 ], | 461 ], |
470 } | 462 } |
OLD | NEW |