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

Side by Side Diff: chrome/app/policy/cloud_policy_codegen.gyp

Issue 6840014: Support decoding GenericNamedValue based policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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) 2011 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': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy', 8 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy',
9 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', 9 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
10 'generate_policy_source_script_path': 10 'generate_policy_source_script_path':
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 '<(policy_out_dir)/policy/cloud_policy.proto', 71 '<(policy_out_dir)/policy/cloud_policy.proto',
72 ], 72 ],
73 'outputs': [ 73 'outputs': [
74 '<(PRODUCT_DIR)/pyproto/device_management_pb/cloud_policy_pb2.py', 74 '<(PRODUCT_DIR)/pyproto/device_management_pb/cloud_policy_pb2.py',
75 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h', 75 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h',
76 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc', 76 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc',
77 ], 77 ],
78 'action': [ 78 'action': [
79 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', 79 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
80 '--proto_path=<(policy_out_dir)/policy', 80 '--proto_path=<(policy_out_dir)/policy',
81 '--proto_path=<(proto_rel_path)',
81 '<(policy_out_dir)/policy/cloud_policy.proto', 82 '<(policy_out_dir)/policy/cloud_policy.proto',
82 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)', 83 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)',
83 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb', 84 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb',
84 ], 85 ],
85 'message': 'Compiling generated cloud policy protobuf', 86 'message': 'Compiling generated cloud policy protobuf',
86 }, 87 },
87 ], 88 ],
88 'dependencies': [ 89 'dependencies': [
89 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', 90 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
90 'cloud_policy_code_generate', 91 'cloud_policy_code_generate',
92 'cloud_policy_backend_header_compile',
91 ], 93 ],
92 'direct_dependent_settings': { 94 'direct_dependent_settings': {
93 'include_dirs': [ 95 'include_dirs': [
94 '<(protoc_out_dir)', 96 '<(protoc_out_dir)',
95 ] 97 ]
96 }, 98 },
97 }, 99 },
98 { 100 {
99 'target_name': 'cloud_policy_backend_header_compile', 101 'target_name': 'cloud_policy_backend_header_compile',
100 'type': 'none', 102 'type': 'none',
101 'sources': [ 103 'sources': [
102 '<(proto_rel_path)/chrome_device_policy.proto', 104 '<(proto_rel_path)/chrome_device_policy.proto',
103 '<(proto_rel_path)/device_management_backend.proto', 105 '<(proto_rel_path)/device_management_backend.proto',
104 '<(proto_rel_path)/device_management_local.proto', 106 '<(proto_rel_path)/device_management_local.proto',
107 '<(proto_rel_path)/old_generic_format.proto',
105 ], 108 ],
106 'rules': [ 109 'rules': [
107 { 110 {
108 'rule_name': 'gen_proto', 111 'rule_name': 'gen_proto',
109 'extension': 'proto', 112 'extension': 'proto',
110 'inputs': [ 113 'inputs': [
111 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', 114 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
112 ], 115 ],
113 'outputs': [ 116 'outputs': [
114 '<(PRODUCT_DIR)/pyproto/device_management_pb/<(RULE_INPUT_ROOT)_pb2. py', 117 '<(PRODUCT_DIR)/pyproto/device_management_pb/<(RULE_INPUT_ROOT)_pb2. py',
115 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.h', 118 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.h',
116 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.cc', 119 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.cc',
117 ], 120 ],
118 'action': [ 121 'action': [
119 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', 122 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
120 '--proto_path=<(policy_out_dir)/policy',
121 '--proto_path=<(proto_rel_path)', 123 '--proto_path=<(proto_rel_path)',
122 '<(proto_rel_path)/<(RULE_INPUT_NAME)', 124 '<(proto_rel_path)/<(RULE_INPUT_NAME)',
123 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)', 125 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)',
124 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb', 126 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb',
125 ], 127 ],
126 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', 128 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
127 } 129 },
128 ], 130 ],
129 'dependencies': [ 131 'dependencies': [
130 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', 132 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
131 'cloud_policy_proto_compile',
132 ], 133 ],
133 'direct_dependent_settings': { 134 'direct_dependent_settings': {
134 'include_dirs': [ 135 'include_dirs': [
135 '<(protoc_out_dir)', 136 '<(protoc_out_dir)',
136 ] 137 ]
137 }, 138 },
138 }, 139 },
139 { 140 {
140 'target_name': 'policy', 141 'target_name': 'policy',
141 'type': '<(library)', 142 'type': '<(library)',
142 'hard_dependency': 1, 143 'hard_dependency': 1,
143 'direct_dependent_settings': { 144 'direct_dependent_settings': {
144 'include_dirs': [ 145 'include_dirs': [
145 '<(policy_out_dir)', 146 '<(policy_out_dir)',
146 '<(protoc_out_dir)', 147 '<(protoc_out_dir)',
147 ], 148 ],
148 }, 149 },
149 'sources': [ 150 'sources': [
150 '<(policy_constant_header_path)', 151 '<(policy_constant_header_path)',
151 '<(policy_constant_source_path)', 152 '<(policy_constant_source_path)',
152 '<(configuration_policy_type_header_path)', 153 '<(configuration_policy_type_header_path)',
153 '<(protobuf_decoder_path)', 154 '<(protobuf_decoder_path)',
154 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h', 155 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h',
155 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc', 156 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc',
157 '<(protoc_out_dir)/<(proto_path_substr)/old_generic_format.pb.h',
158 '<(protoc_out_dir)/<(proto_path_substr)/old_generic_format.pb.cc',
156 '<(DEPTH)/chrome/browser/policy/policy_map.h', 159 '<(DEPTH)/chrome/browser/policy/policy_map.h',
157 '<(DEPTH)/chrome/browser/policy/policy_map.cc', 160 '<(DEPTH)/chrome/browser/policy/policy_map.cc',
158 ], 161 ],
159 'include_dirs': [ 162 'include_dirs': [
160 '<(DEPTH)', 163 '<(DEPTH)',
164 '<(protoc_out_dir)/<(proto_path_substr)',
161 ], 165 ],
162 'dependencies': [ 166 'dependencies': [
163 'cloud_policy_code_generate', 167 'cloud_policy_code_generate',
164 'cloud_policy_proto_compile', 168 'cloud_policy_proto_compile',
165 'cloud_policy_backend_header_compile', 169 'cloud_policy_backend_header_compile',
166 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', 170 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
167 ], 171 ],
168 }, 172 },
169 ], 173 ],
170 'conditions': [ 174 'conditions': [
(...skipping 25 matching lines...) Expand all
196 ], 200 ],
197 }], 201 }],
198 ], # 'conditions' 202 ], # 'conditions'
199 } 203 }
200 204
201 # Local Variables: 205 # Local Variables:
202 # tab-width:2 206 # tab-width:2
203 # indent-tabs-mode:nil 207 # indent-tabs-mode:nil
204 # End: 208 # End:
205 # vim: set expandtab tabstop=2 shiftwidth=2: 209 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_provider.h » ('j') | chrome/browser/policy/user_policy_cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698