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

Side by Side Diff: components/policy.gypi

Issue 838263005: Revert Revert "Expose chrome policies using Android's App Restrictions Schema" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actual change that should fix the issue Created 5 years, 11 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/policy/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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',
15 'generate_policy_source_script_path': 16 'generate_policy_source_script_path':
16 'policy/tools/generate_policy_source.py', 17 'policy/tools/generate_policy_source.py',
17 'policy_constant_header_path': 18 'policy_constant_header_path':
18 '<(policy_out_dir)/policy/policy_constants.h', 19 '<(policy_out_dir)/policy/policy_constants.h',
19 'policy_constant_source_path': 20 'policy_constant_source_path':
20 '<(policy_out_dir)/policy/policy_constants.cc', 21 '<(policy_out_dir)/policy/policy_constants.cc',
21 'protobuf_decoder_path': 22 'protobuf_decoder_path':
22 '<(policy_out_dir)/policy/cloud_policy_generated.cc', 23 '<(policy_out_dir)/policy/cloud_policy_generated.cc',
24 'app_restrictions_path':
25 '<(android_resources_out_dir)/xml-v21/app_restrictions.xml',
26 'app_resources_path':
27 '<(android_resources_out_dir)/values-v21/restriction_values.xml',
23 # This is the "full" protobuf, which defines one protobuf message per 28 # This is the "full" protobuf, which defines one protobuf message per
24 # policy. It is also the format currently used by the server. 29 # policy. It is also the format currently used by the server.
25 'chrome_settings_proto_path': 30 'chrome_settings_proto_path':
26 '<(policy_out_dir)/policy/chrome_settings.proto', 31 '<(policy_out_dir)/policy/chrome_settings.proto',
27 # This protobuf is equivalent to chrome_settings.proto but shares messages 32 # This protobuf is equivalent to chrome_settings.proto but shares messages
28 # for policies of the same type, so that less classes have to be generated 33 # for policies of the same type, so that less classes have to be generated
29 # and compiled. 34 # and compiled.
30 'cloud_policy_proto_path': 35 'cloud_policy_proto_path':
31 '<(policy_out_dir)/policy/cloud_policy.proto', 36 '<(policy_out_dir)/policy/cloud_policy.proto',
32 }, 37 },
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 'inputs': [ 107 'inputs': [
103 'policy/resources/policy_templates.json', 108 'policy/resources/policy_templates.json',
104 '<(generate_policy_source_script_path)', 109 '<(generate_policy_source_script_path)',
105 ], 110 ],
106 'outputs': [ 111 'outputs': [
107 '<(policy_constant_header_path)', 112 '<(policy_constant_header_path)',
108 '<(policy_constant_source_path)', 113 '<(policy_constant_source_path)',
109 '<(protobuf_decoder_path)', 114 '<(protobuf_decoder_path)',
110 '<(chrome_settings_proto_path)', 115 '<(chrome_settings_proto_path)',
111 '<(cloud_policy_proto_path)', 116 '<(cloud_policy_proto_path)',
117 '<(app_restrictions_path)',
118 '<(app_resources_path)',
112 ], 119 ],
113 'action_name': 'generate_policy_source', 120 'action_name': 'generate_policy_source',
114 'action': [ 121 'action': [
115 'python', 122 'python',
116 '<@(generate_policy_source_script_path)', 123 '<@(generate_policy_source_script_path)',
117 '--policy-constants-header=<(policy_constant_header_path)', 124 '--policy-constants-header=<(policy_constant_header_path)',
118 '--policy-constants-source=<(policy_constant_source_path)', 125 '--policy-constants-source=<(policy_constant_source_path)',
119 '--chrome-settings-protobuf=<(chrome_settings_proto_path)', 126 '--chrome-settings-protobuf=<(chrome_settings_proto_path)',
120 '--cloud-policy-protobuf=<(cloud_policy_proto_path)', 127 '--cloud-policy-protobuf=<(cloud_policy_proto_path)',
121 '--cloud-policy-decoder=<(protobuf_decoder_path)', 128 '--cloud-policy-decoder=<(protobuf_decoder_path)',
129 '--app-restrictions-definition=<(app_restrictions_path)',
130 '--app-restrictions-resources=<(app_resources_path)',
122 '<(OS)', 131 '<(OS)',
123 '<(chromeos)', 132 '<(chromeos)',
124 'policy/resources/policy_templates.json', 133 'policy/resources/policy_templates.json',
125 ], 134 ],
126 'message': 'Generating policy source', 135 'message': 'Generating policy source',
136 'conditions': [
137 ['OS!="android"', {
138 'outputs!': [
139 '<(app_restrictions_path)',
140 '<(app_resources_path)',
141 ],
142 }],
143 ],
127 }, 144 },
128 ], 145 ],
129 'direct_dependent_settings': { 146 'direct_dependent_settings': {
130 'include_dirs': [ 147 'include_dirs': [
131 '<(policy_out_dir)', 148 '<(policy_out_dir)',
132 '<(protoc_out_dir)', 149 '<(protoc_out_dir)',
133 ], 150 ],
134 }, 151 },
135 }, 152 },
136 { 153 {
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 'message': 461 'message':
445 'Copy the Localizable.strings files to the manifest bundle', 462 'Copy the Localizable.strings files to the manifest bundle',
446 'process_outputs_as_mac_bundle_resources': 1, 463 'process_outputs_as_mac_bundle_resources': 1,
447 }, 464 },
448 ], 465 ],
449 }, 466 },
450 ], 467 ],
451 }], 468 }],
452 ], 469 ],
453 } 470 }
OLDNEW
« no previous file with comments | « no previous file | components/policy/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698