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 }, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 'policy/resources/policy_templates.json', | 105 'policy/resources/policy_templates.json', |
109 '<(generate_policy_source_script_path)', | 106 '<(generate_policy_source_script_path)', |
110 ], | 107 ], |
111 'outputs': [ | 108 'outputs': [ |
112 '<(policy_constant_header_path)', | 109 '<(policy_constant_header_path)', |
113 '<(policy_constant_source_path)', | 110 '<(policy_constant_source_path)', |
114 '<(protobuf_decoder_path)', | 111 '<(protobuf_decoder_path)', |
115 '<(chrome_settings_proto_path)', | 112 '<(chrome_settings_proto_path)', |
116 '<(cloud_policy_proto_path)', | 113 '<(cloud_policy_proto_path)', |
117 '<(app_restrictions_path)', | 114 '<(app_restrictions_path)', |
118 '<(app_resources_path)', | |
119 ], | 115 ], |
120 'action_name': 'generate_policy_source', | 116 'action_name': 'generate_policy_source', |
121 'action': [ | 117 'action': [ |
122 'python', | 118 'python', |
123 '<@(generate_policy_source_script_path)', | 119 '<@(generate_policy_source_script_path)', |
124 '--policy-constants-header=<(policy_constant_header_path)', | 120 '--policy-constants-header=<(policy_constant_header_path)', |
125 '--policy-constants-source=<(policy_constant_source_path)', | 121 '--policy-constants-source=<(policy_constant_source_path)', |
126 '--chrome-settings-protobuf=<(chrome_settings_proto_path)', | 122 '--chrome-settings-protobuf=<(chrome_settings_proto_path)', |
127 '--cloud-policy-protobuf=<(cloud_policy_proto_path)', | 123 '--cloud-policy-protobuf=<(cloud_policy_proto_path)', |
128 '--cloud-policy-decoder=<(protobuf_decoder_path)', | 124 '--cloud-policy-decoder=<(protobuf_decoder_path)', |
129 '--app-restrictions-definition=<(app_restrictions_path)', | 125 '--app-restrictions-definition=<(app_restrictions_path)', |
130 '--app-restrictions-resources=<(app_resources_path)', | |
131 '<(OS)', | 126 '<(OS)', |
132 '<(chromeos)', | 127 '<(chromeos)', |
133 'policy/resources/policy_templates.json', | 128 'policy/resources/policy_templates.json', |
134 ], | 129 ], |
135 'message': 'Generating policy source', | 130 'message': 'Generating policy source', |
136 'conditions': [ | 131 'conditions': [ |
137 ['OS!="android"', { | 132 ['OS!="android"', { |
138 'outputs!': [ | 133 'outputs!': [ |
139 '<(app_restrictions_path)', | 134 '<(app_restrictions_path)', |
140 '<(app_resources_path)', | |
141 ], | 135 ], |
142 }], | 136 }], |
143 ], | 137 ], |
144 }, | 138 }, |
145 ], | 139 ], |
146 'direct_dependent_settings': { | 140 'direct_dependent_settings': { |
147 'include_dirs': [ | 141 'include_dirs': [ |
148 '<(policy_out_dir)', | 142 '<(policy_out_dir)', |
149 '<(protoc_out_dir)', | 143 '<(protoc_out_dir)', |
150 ], | 144 ], |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 'cloud_policy_code_generate', | 357 'cloud_policy_code_generate', |
364 ], | 358 ], |
365 'configurations': { | 359 'configurations': { |
366 'Common_Base': { | 360 'Common_Base': { |
367 'msvs_target_platform': 'x64', | 361 'msvs_target_platform': 'x64', |
368 }, | 362 }, |
369 }, | 363 }, |
370 }, | 364 }, |
371 ], | 365 ], |
372 }], | 366 }], |
373 ['OS=="win" or OS=="mac" or OS=="linux"', { | 367 ['OS!="ios"', { |
374 'targets': [ | 368 'targets': [ |
375 { | 369 { |
376 # policy_templates has different inputs and outputs, so it can't use | 370 # policy_templates has different inputs and outputs, so it can't use |
377 # the rules of chrome_strings | 371 # the rules of chrome_strings |
378 'target_name': 'policy_templates', | 372 'target_name': 'policy_templates', |
379 'type': 'none', | 373 'type': 'none', |
380 'variables': { | 374 'variables': { |
381 'grit_grd_file': 'policy/resources/policy_templates.grd', | 375 'grit_grd_file': 'policy/resources/policy_templates.grd', |
382 'grit_info_cmd': [ | 376 'grit_info_cmd': [ |
383 'python', | 377 'python', |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 'message': | 465 'message': |
472 'Copy the Localizable.strings files to the manifest bundle', | 466 'Copy the Localizable.strings files to the manifest bundle', |
473 'process_outputs_as_mac_bundle_resources': 1, | 467 'process_outputs_as_mac_bundle_resources': 1, |
474 }, | 468 }, |
475 ], | 469 ], |
476 }, | 470 }, |
477 ], | 471 ], |
478 }], | 472 }], |
479 ], | 473 ], |
480 } | 474 } |
OLD | NEW |