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

Unified Diff: components/policy.gypi

Issue 1038903002: Upstream Android App Restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments: Chris Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/policy/BUILD.gn » ('j') | components/policy/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy.gypi
diff --git a/components/policy.gypi b/components/policy.gypi
index 02d4c59483432bd730ca5fe5af78f51d90f677d0..2a6aee44eb40352a207344bf75e4245b980b6e4a 100644
--- a/components/policy.gypi
+++ b/components/policy.gypi
@@ -337,6 +337,52 @@
},
],
}],
+ ['OS=="android" and configuration_policy==1', {
+ 'targets': [
+ {
+ 'target_name': 'app_restrictions_resources',
+ 'type': 'none',
+ 'variables': {
+ 'resources_zip': '<(PRODUCT_DIR)/res.java/<(_target_name).zip',
+ 'input_resources_dir':
+ '<(SHARED_INTERMEDIATE_DIR)/chrome/app/policy/android',
+ 'create_zip_script': '../build/android/gyp/zip.py',
+ },
+ 'copies': [
+ {
+ 'destination': '<(input_resources_dir)/xml-v21/',
pneubeck (no reviews) 2015/03/27 09:09:24 same question as in the GN file: It seems weird to
knn 2015/03/27 11:46:49 This is mainly because I felt all outputs of a tar
+ 'files': [
+ '<(SHARED_INTERMEDIATE_DIR)/policy/app_restrictions.xml'
+ ],
+ },
+ ],
+ 'actions': [
+ {
+ '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',
+ ],
+ 'outputs': [
+ '<(resources_zip)'
+ ],
+ 'action': [
+ 'python', '<(create_zip_script)',
+ '--input-dir', '<(input_resources_dir)',
+ '--output', '<(resources_zip)',
+ ],
+ }
+ ],
+ 'all_dependent_settings': {
pneubeck (no reviews) 2015/03/27 09:09:24 i don't know what this is for.
knn 2015/03/27 11:46:49 This is a setting used in android resource targets
+ 'variables': {
+ 'additional_input_paths': ['<(resources_zip)'],
+ 'dependencies_res_zip_paths': ['<(resources_zip)'],
+ },
+ },
+ }
+ ],
+ }],
['OS=="win" and target_arch=="ia32" and configuration_policy==1', {
'targets': [
{
« no previous file with comments | « no previous file | components/policy/BUILD.gn » ('j') | components/policy/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698