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

Side by Side Diff: components/policy.gypi

Issue 865573002: Add i18n support for Android App Restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Comments 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
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',
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
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 'cloud_policy_code_generate', 347 'cloud_policy_code_generate',
354 ], 348 ],
355 'configurations': { 349 'configurations': {
356 'Common_Base': { 350 'Common_Base': {
357 'msvs_target_platform': 'x64', 351 'msvs_target_platform': 'x64',
358 }, 352 },
359 }, 353 },
360 }, 354 },
361 ], 355 ],
362 }], 356 }],
363 ['OS=="win" or OS=="mac" or OS=="linux"', { 357 ['OS!="ios" and chromeos==0', {
bartfab (slow) 2015/01/26 09:57:59 Why do you exclude policy_templates on Chrome OS?
knn 2015/01/27 11:27:13 As Bernhard pointed out to me, Chrome OS uses Clou
Bernhard Bauer 2015/01/27 12:05:43 Really, the target should probably be called local
bartfab (slow) 2015/01/27 12:10:00 I am actually not sure what exactly this target ge
knn 2015/01/27 12:18:36 Yeah we could rename this generate_localized_polic
Bernhard Bauer 2015/01/27 12:19:59 The protos are generated by the cloud_policy_code_
364 'targets': [ 358 'targets': [
365 { 359 {
366 # policy_templates has different inputs and outputs, so it can't use 360 # policy_templates has different inputs and outputs, so it can't use
367 # the rules of chrome_strings 361 # the rules of chrome_strings
368 'target_name': 'policy_templates', 362 'target_name': 'policy_templates',
369 'type': 'none', 363 'type': 'none',
370 'variables': { 364 'variables': {
371 'grit_grd_file': 'policy/resources/policy_templates.grd', 365 'grit_grd_file': 'policy/resources/policy_templates.grd',
372 'grit_info_cmd': [ 366 'grit_info_cmd': [
373 'python', 367 'python',
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 'message': 455 'message':
462 'Copy the Localizable.strings files to the manifest bundle', 456 'Copy the Localizable.strings files to the manifest bundle',
463 'process_outputs_as_mac_bundle_resources': 1, 457 'process_outputs_as_mac_bundle_resources': 1,
464 }, 458 },
465 ], 459 ],
466 }, 460 },
467 ], 461 ],
468 }], 462 }],
469 ], 463 ],
470 } 464 }
OLDNEW
« no previous file with comments | « no previous file | components/policy/BUILD.gn » ('j') | components/policy/resources/policy_templates.grd » ('J')

Powered by Google App Engine
This is Rietveld 408576698