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

Side by Side Diff: chrome/policy_templates.gypi

Issue 108513011: Move chrome/app/policy into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/policy.gypi ('k') | chrome/tools/build/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 {
6 'targets': [
7 {
8 'target_name': 'pack_policy_templates',
9 'type': 'none',
10 'conditions': [
11 ['OS=="win" or OS=="mac" or OS=="linux"', {
12 'dependencies': [
13 '../components/components.gyp:policy_templates',
14 ],
15 }],
16 ['OS=="win"', {
17 'variables': {
18 'version_path': '<(grit_out_dir)/app/policy/VERSION',
19 },
20 'actions': [
21 {
22 'action_name': 'add_version',
23 'inputs': [
24 'VERSION',
25 ],
26 'outputs': [
27 '<(version_path)',
28 ],
29 'action': [
30 'cp',
31 '<@(_inputs)',
32 '<@(_outputs)',
33 ],
34 'msvs_cygwin_shell': 1,
35 },
36 {
37 # Add all the templates generated at the previous step into
38 # a zip archive.
39 'action_name': 'pack_templates',
40 'variables': {
41 'grit_grd_file': '../components/policy/resources/policy_template s.grd',
42 'grit_info_cmd': [
43 'python',
44 '<(DEPTH)/tools/grit/grit_info.py',
45 '<@(grit_defines)',
46 ],
47 'template_files': [
48 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(grit_grd _file))',
49 ],
50 'zip_script': '../components/policy/tools/make_policy_zip.py',
51 },
52 'inputs': [
53 '<(version_path)',
54 '<@(template_files)',
55 '<(zip_script)',
56 ],
57 'outputs': [
58 '<(PRODUCT_DIR)/policy_templates.zip',
59 ],
60 'action': [
61 'python',
62 '<(zip_script)',
63 '--output',
64 '<@(_outputs)',
65 '--basedir', '<(grit_out_dir)/app/policy',
66 # The list of files in the destination zip is derived from
67 # the list of output nodes in the following grd file.
68 # This whole trickery is necessary because we cannot pass
69 # the entire list of file names as command line arguments,
70 # because they would exceed the length limit on Windows.
71 '--grd_input',
72 '<(grit_grd_file)',
73 '--grd_strip_path_prefix',
74 'app/policy',
75 '--extra_input',
76 'VERSION',
77 # Module to be used to process grd_input'.
78 '--grit_info',
79 '<(DEPTH)/tools/grit/grit_info.py',
80 '<@(grit_defines)',
81 ],
82 'message': 'Packing generated templates into <(_outputs)',
83 'msvs_cygwin_shell': 1,
84 },
85 ],
86 }],
87 ],
88 },
89 ],
90 }
OLDNEW
« no previous file with comments | « chrome/policy.gypi ('k') | chrome/tools/build/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698