summaryrefslogtreecommitdiffstats
path: root/components/policy.gypi
diff options
context:
space:
mode:
authorknn <knn@chromium.org>2015-04-09 07:14:08 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-09 14:14:44 +0000
commit287196bac815e47ec142a77644a0b3848bb2b33f (patch)
tree83a243feacba42d08a434a80b4b9a902f48fd7b2 /components/policy.gypi
parent5ad72c5d8d4349f7386af79c5c5479d203036cd2 (diff)
downloadchromium_src-287196bac815e47ec142a77644a0b3848bb2b33f.zip
chromium_src-287196bac815e47ec142a77644a0b3848bb2b33f.tar.gz
chromium_src-287196bac815e47ec142a77644a0b3848bb2b33f.tar.bz2
Remove localized App Restrictions resources.
This is causing a ~1.46 mb increase in the binary size of chrome on android. Preemptively reverting this to facilitate further discussion. This change introduces a dummy target in gyp that deletes existing localized resources. The target as well as the python script can be removed once all buildbots have run this once (~ a day). Thankfully this is is not required in gn. BUG=450548 Review URL: https://codereview.chromium.org/1062213002 Cr-Commit-Position: refs/heads/master@{#324432}
Diffstat (limited to 'components/policy.gypi')
-rw-r--r--components/policy.gypi19
1 files changed, 19 insertions, 0 deletions
diff --git a/components/policy.gypi b/components/policy.gypi
index 2a6aee4..c2b99d8 100644
--- a/components/policy.gypi
+++ b/components/policy.gypi
@@ -358,11 +358,30 @@
],
'actions': [
{
+ 'action_name': 'remove_localized_resources',
+ 'outputs': [
+ '<(input_resources_dir)/remove_localized_resources.d.stamp'
+ ],
+ 'inputs': [
+ 'policy/tools/remove_localized_app_restrictions.py',
+ ],
+ 'action': [
+ 'python',
+ 'policy/tools/remove_localized_app_restrictions.py',
+ '<(input_resources_dir)',
+ ],
+ },
+ {
'action_name': 'create_resources_zip',
'inputs': [
'<(create_zip_script)',
'<(input_resources_dir)/xml-v21/app_restrictions.xml',
'<(input_resources_dir)/values-v21/restriction_values.xml',
+ # A dummy stamp file to remove localized resources without
+ # clobbering the build.
+ # TODO(475515): Remove after all build bots have run
+ # 'remove_localized_resources' target.
+ '<(input_resources_dir)/remove_localized_resources.d.stamp',
],
'outputs': [
'<(resources_zip)'