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

Side by Side Diff: chrome/app/policy/policy_templates.gypi

Issue 6532019: New policy protobuf protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix one more leak Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 'variables': {
7 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy',
8 'generate_policy_source_script':
9 ['python', 'tools/build/generate_policy_source.py'],
10 },
11 'target_defaults': {
12 'variables': {
13 'policy_target': 0,
14 },
15 'target_conditions': [
16 [ 'policy_target==1', {
17 'include_dirs': [
18 '<(policy_out_dir)',
19 ],
20 'actions': [
21 {
22 'variables':
23 {
24 'policy_constant_header':
25 '<(policy_out_dir)/policy/policy_constants.h',
26 'policy_constant_source':
27 '<(policy_out_dir)/policy/policy_constants.cc',
28 'configuration_policy_type_header':
29 '<(policy_out_dir)/policy/configuration_policy_type.h',
30 },
31 'inputs': [
32 'policy_templates.json',
33 '../../tools/build/generate_policy_source.py'
34 ],
35 'outputs': [
36 '<(policy_constant_header)',
37 '<(policy_constant_source)',
38 '<(configuration_policy_type_header)',
39 ],
40 'action_name': 'generate_policy_source',
41 'action': [
42 '<@(generate_policy_source_script)',
43 '--policy-constants-header=<(policy_constant_header)',
44 '--policy-constants-source=<(policy_constant_source)',
45 '--policy-type-header=<(configuration_policy_type_header)',
46 '<(OS)',
47 '<@(_inputs)',
48 ],
49 'message': 'Generating policy source',
50 'process_outputs_as_sources': 1,
51 },
52 ],
53 }, ],
54 ],
55 },
56 'targets': [
57 {
58 'target_name': 'policy',
59 'type': '<(library)',
60 'hard_dependency': 1,
61 'include_dirs': [
62 '<(policy_out_dir)',
63 ],
64 'direct_dependent_settings': {
65 'include_dirs': [
66 '<(SHARED_INTERMEDIATE_DIR)/policy'
67 ],
68 },
69 'variables': {
70 'policy_target': 1,
71 },
72 },
73 ],
74 'conditions': [ 6 'conditions': [
75 ['OS=="win"', {
76 'targets': [
77 {
78 'target_name': 'policy_win64',
79 'type': '<(library)',
80 'hard_dependency': 1,
81 'variables': {
82 'policy_target': 1,
83 },
84 'direct_dependent_settings': {
85 'include_dirs': [
86 '<(SHARED_INTERMEDIATE_DIR)/policy'
87 ],
88 },
89 'configurations': {
90 'Common_Base': {
91 'msvs_target_platform': 'x64',
92 },
93 },
94 },
95 ],
96 }],
97 ['OS=="win" or OS=="mac" or OS=="linux"', { 7 ['OS=="win" or OS=="mac" or OS=="linux"', {
98 'targets': [ 8 'targets': [
99 { 9 {
100 # policy_templates has different inputs and outputs, so it can't use 10 # policy_templates has different inputs and outputs, so it can't use
101 # the rules of chrome_strings 11 # the rules of chrome_strings
102 'target_name': 'policy_templates', 12 'target_name': 'policy_templates',
103 'type': 'none', 13 'type': 'none',
104 'variables': { 14 'variables': {
105 'grd_path': 'policy_templates.grd', 15 'grd_path': 'policy_templates.grd',
106 'template_files': [ 16 'template_files': [
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 ] 171 ]
262 }] 172 }]
263 ], # 'conditions' 173 ], # 'conditions'
264 } 174 }
265 175
266 # Local Variables: 176 # Local Variables:
267 # tab-width:2 177 # tab-width:2
268 # indent-tabs-mode:nil 178 # indent-tabs-mode:nil
269 # End: 179 # End:
270 # vim: set expandtab tabstop=2 shiftwidth=2: 180 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698