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': | |
25 '<(android_resources_out_dir)/xml/app_restrictions.xml', | |
26 'app_resources_path': | |
27 '<(android_resources_out_dir)/values/restriction_values.xml', | |
28 # This is the "full" protobuf, which defines one protobuf message per | 23 # This is the "full" protobuf, which defines one protobuf message per |
29 # policy. It is also the format currently used by the server. | 24 # policy. It is also the format currently used by the server. |
30 'chrome_settings_proto_path': | 25 'chrome_settings_proto_path': |
31 '<(policy_out_dir)/policy/chrome_settings.proto', | 26 '<(policy_out_dir)/policy/chrome_settings.proto', |
32 # This protobuf is equivalent to chrome_settings.proto but shares messages | 27 # 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 | 28 # for policies of the same type, so that less classes have to be generated |
34 # and compiled. | 29 # and compiled. |
35 'cloud_policy_proto_path': | 30 'cloud_policy_proto_path': |
36 '<(policy_out_dir)/policy/cloud_policy.proto', | 31 '<(policy_out_dir)/policy/cloud_policy.proto', |
37 }, | 32 }, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 'inputs': [ | 102 'inputs': [ |
108 'policy/resources/policy_templates.json', | 103 'policy/resources/policy_templates.json', |
109 '<(generate_policy_source_script_path)', | 104 '<(generate_policy_source_script_path)', |
110 ], | 105 ], |
111 'outputs': [ | 106 'outputs': [ |
112 '<(policy_constant_header_path)', | 107 '<(policy_constant_header_path)', |
113 '<(policy_constant_source_path)', | 108 '<(policy_constant_source_path)', |
114 '<(protobuf_decoder_path)', | 109 '<(protobuf_decoder_path)', |
115 '<(chrome_settings_proto_path)', | 110 '<(chrome_settings_proto_path)', |
116 '<(cloud_policy_proto_path)', | 111 '<(cloud_policy_proto_path)', |
117 '<(app_restrictions_path)', | |
118 '<(app_resources_path)', | |
119 ], | 112 ], |
120 'action_name': 'generate_policy_source', | 113 'action_name': 'generate_policy_source', |
121 'action': [ | 114 'action': [ |
122 'python', | 115 'python', |
123 '<@(generate_policy_source_script_path)', | 116 '<@(generate_policy_source_script_path)', |
124 '--policy-constants-header=<(policy_constant_header_path)', | 117 '--policy-constants-header=<(policy_constant_header_path)', |
125 '--policy-constants-source=<(policy_constant_source_path)', | 118 '--policy-constants-source=<(policy_constant_source_path)', |
126 '--chrome-settings-protobuf=<(chrome_settings_proto_path)', | 119 '--chrome-settings-protobuf=<(chrome_settings_proto_path)', |
127 '--cloud-policy-protobuf=<(cloud_policy_proto_path)', | 120 '--cloud-policy-protobuf=<(cloud_policy_proto_path)', |
128 '--cloud-policy-decoder=<(protobuf_decoder_path)', | 121 '--cloud-policy-decoder=<(protobuf_decoder_path)', |
129 '--app-restrictions-definition=<(app_restrictions_path)', | |
130 '--app-restrictions-resources=<(app_resources_path)', | |
131 '<(OS)', | 122 '<(OS)', |
132 '<(chromeos)', | 123 '<(chromeos)', |
133 'policy/resources/policy_templates.json', | 124 'policy/resources/policy_templates.json', |
134 ], | 125 ], |
135 'message': 'Generating policy source', | 126 'message': 'Generating policy source', |
136 'conditions': [ | |
137 ['OS!="android"', { | |
138 'outputs!': [ | |
139 '<(app_restrictions_path)', | |
140 '<(app_resources_path)', | |
141 ], | |
142 }], | |
143 ], | |
144 }, | 127 }, |
145 ], | 128 ], |
146 'direct_dependent_settings': { | 129 'direct_dependent_settings': { |
147 'include_dirs': [ | 130 'include_dirs': [ |
148 '<(policy_out_dir)', | 131 '<(policy_out_dir)', |
149 '<(protoc_out_dir)', | 132 '<(protoc_out_dir)', |
150 ], | 133 ], |
151 }, | 134 }, |
152 }, | 135 }, |
153 { | 136 { |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 'message': | 444 'message': |
462 'Copy the Localizable.strings files to the manifest bundle', | 445 'Copy the Localizable.strings files to the manifest bundle', |
463 'process_outputs_as_mac_bundle_resources': 1, | 446 'process_outputs_as_mac_bundle_resources': 1, |
464 }, | 447 }, |
465 ], | 448 ], |
466 }, | 449 }, |
467 ], | 450 ], |
468 }], | 451 }], |
469 ], | 452 ], |
470 } | 453 } |
OLD | NEW |