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

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

Issue 9148084: Remove hand-rolled cases of protobufs generations/compilation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ], 56 ],
57 'direct_dependent_settings': { 57 'direct_dependent_settings': {
58 'include_dirs': [ 58 'include_dirs': [
59 '<(policy_out_dir)', 59 '<(policy_out_dir)',
60 '<(protoc_out_dir)', 60 '<(protoc_out_dir)',
61 ], 61 ],
62 }, 62 },
63 }, 63 },
64 { 64 {
65 'target_name': 'cloud_policy_proto_compile', 65 'target_name': 'cloud_policy_proto_compile',
66 'type': 'none', 66 'type': 'static_library',
Ryan Sleevi 2012/01/13 01:21:52 We don't want this. It should still be a 'none' ta
KushalP 2012/01/13 12:47:50 That makes sense. I got the impression that we wan
67 'actions': [ 67 'sources': [
68 { 68 'app/policy/cloud_policy.proto',
69 'action_name': 'compile_generated_proto',
70 'inputs': [
71 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
72 '<(policy_out_dir)/policy/cloud_policy.proto',
73 ],
74 'outputs': [
75 '<(PRODUCT_DIR)/pyproto/device_management_pb/cloud_policy_pb2.py',
76 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h',
77 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc',
78 ],
79 'action': [
80 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
81 '--proto_path=<(policy_out_dir)/policy',
82 '<(policy_out_dir)/policy/cloud_policy.proto',
83 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)',
84 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb',
85 ],
86 'message': 'Compiling generated cloud policy protobuf',
87 },
88 ], 69 ],
70 'variables': {
71 'proto_in_dir': 'app/policy',
Ryan Sleevi 2012/01/13 01:21:52 Doesn't this need to be '<(policy_out_dir)/policy'
72 'proto_out_dir': 'chrome/app/policy',
73 },
89 'dependencies': [ 74 'dependencies': [
90 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
91 'cloud_policy_code_generate', 75 'cloud_policy_code_generate',
92 ], 76 ],
93 'direct_dependent_settings': { 77 'includes': [ '../../../build/protoc.gypi' ],
94 'include_dirs': [
95 '<(protoc_out_dir)',
96 ]
97 },
98 }, 78 },
99 { 79 {
100 'target_name': 'cloud_policy_backend_header_compile', 80 'target_name': 'cloud_policy_backend_header_compile',
101 'type': 'none', 81 'type': 'static_library',
Ryan Sleevi 2012/01/13 01:21:52 Same here (re: none vs static_library)
102 'sources': [ 82 'sources': [
103 '<(proto_rel_path)/chrome_device_policy.proto', 83 'browser/policy/proto/chrome_device_policy.proto',
104 '<(proto_rel_path)/device_management_backend.proto', 84 'browser/policy/proto/device_management_backend.proto',
105 '<(proto_rel_path)/device_management_local.proto', 85 'browser/policy/proto/device_management_local.proto',
106 '<(proto_rel_path)/old_generic_format.proto', 86 'browser/policy/proto/old_generic_format.proto',
107 ], 87 ],
108 'rules': [ 88 'variables': {
109 { 89 'proto_in_dir': 'browser/policy/proto',
110 'rule_name': 'gen_proto', 90 'proto_out_dir': 'chrome/browser/policy/proto',
111 'extension': 'proto',
112 'inputs': [
113 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
114 ],
115 'outputs': [
116 '<(PRODUCT_DIR)/pyproto/device_management_pb/<(RULE_INPUT_ROOT)_pb2. py',
117 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.h',
118 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.cc',
119 ],
120 'action': [
121 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
122 '--proto_path=<(proto_rel_path)',
123 '<(proto_rel_path)/<(RULE_INPUT_NAME)',
124 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)',
125 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb',
126 ],
127 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
128 },
129 ],
130 'dependencies': [
131 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
132 ],
133 'direct_dependent_settings': {
134 'include_dirs': [
135 '<(protoc_out_dir)',
136 ]
137 }, 91 },
92 'includes': [ '../../../build/protoc.gypi' ],
138 }, 93 },
139 { 94 {
140 'target_name': 'policy', 95 'target_name': 'policy',
141 'type': 'static_library', 96 'type': 'static_library',
142 'hard_dependency': 1, 97 'hard_dependency': 1,
143 'direct_dependent_settings': { 98 'direct_dependent_settings': {
144 'include_dirs': [ 99 'include_dirs': [
145 '<(policy_out_dir)', 100 '<(policy_out_dir)',
146 '<(protoc_out_dir)', 101 '<(protoc_out_dir)',
147 ], 102 ],
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 'configurations': { 151 'configurations': {
197 'Common_Base': { 152 'Common_Base': {
198 'msvs_target_platform': 'x64', 153 'msvs_target_platform': 'x64',
199 }, 154 },
200 }, 155 },
201 }, 156 },
202 ], 157 ],
203 }], 158 }],
204 ], # 'conditions' 159 ], # 'conditions'
205 } 160 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698