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

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

Issue 9317034: Revert 120063 - Remove hand-rolled cases of protobufs generations/compilation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | net/test/test_server.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 'direct_dependent_settings': { 53 'direct_dependent_settings': {
54 'include_dirs': [ 54 'include_dirs': [
55 '<(policy_out_dir)', 55 '<(policy_out_dir)',
56 '<(protoc_out_dir)', 56 '<(protoc_out_dir)',
57 ], 57 ],
58 }, 58 },
59 }, 59 },
60 { 60 {
61 'target_name': 'cloud_policy_proto_compile', 61 'target_name': 'cloud_policy_proto_compile',
62 'type': 'none', 62 'type': 'none',
63 'sources': [ 63 'actions': [
64 '<(policy_out_dir)/policy/cloud_policy.proto', 64 {
65 'action_name': 'compile_generated_proto',
66 'inputs': [
67 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
68 '<(policy_out_dir)/policy/cloud_policy.proto',
69 ],
70 'outputs': [
71 '<(PRODUCT_DIR)/pyproto/device_management_pb/cloud_policy_pb2.py',
72 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h',
73 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc',
74 ],
75 'action': [
76 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
77 '--proto_path=<(policy_out_dir)/policy',
78 '<(policy_out_dir)/policy/cloud_policy.proto',
79 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)',
80 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb',
81 ],
82 'message': 'Compiling generated cloud policy protobuf',
83 },
65 ], 84 ],
66 'variables': {
67 'proto_in_dir': '<(policy_out_dir)/policy',
68 'proto_out_dir': '<(proto_path_substr)',
69 },
70 'dependencies': [ 85 'dependencies': [
86 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
71 'cloud_policy_code_generate', 87 'cloud_policy_code_generate',
72 ], 88 ],
73 'includes': [ '../../../build/protoc.gypi' ], 89 'direct_dependent_settings': {
90 'include_dirs': [
91 '<(protoc_out_dir)',
92 ]
93 },
74 }, 94 },
75 { 95 {
76 'target_name': 'cloud_policy_backend_header_compile', 96 'target_name': 'cloud_policy_backend_header_compile',
77 'type': 'none', 97 'type': 'none',
78 'sources': [ 98 'sources': [
79 '<(proto_rel_path)/chrome_device_policy.proto', 99 '<(proto_rel_path)/chrome_device_policy.proto',
80 '<(proto_rel_path)/device_management_backend.proto', 100 '<(proto_rel_path)/device_management_backend.proto',
81 '<(proto_rel_path)/device_management_local.proto', 101 '<(proto_rel_path)/device_management_local.proto',
82 '<(proto_rel_path)/old_generic_format.proto', 102 '<(proto_rel_path)/old_generic_format.proto',
83 ], 103 ],
84 'variables': { 104 'rules': [
85 'proto_in_dir': '<(proto_rel_path)', 105 {
86 'proto_out_dir': '<(proto_path_substr)', 106 'rule_name': 'gen_proto',
107 'extension': 'proto',
108 'inputs': [
109 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
110 ],
111 'outputs': [
112 '<(PRODUCT_DIR)/pyproto/device_management_pb/<(RULE_INPUT_ROOT)_pb2. py',
113 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.h',
114 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.cc',
115 ],
116 'action': [
117 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
118 '--proto_path=<(proto_rel_path)',
119 '<(proto_rel_path)/<(RULE_INPUT_NAME)',
120 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)',
121 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb',
122 ],
123 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
124 },
125 ],
126 'dependencies': [
127 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
128 ],
129 'direct_dependent_settings': {
130 'include_dirs': [
131 '<(protoc_out_dir)',
132 ]
87 }, 133 },
88 'dependencies': [
89 'cloud_policy_code_generate',
90 ],
91 'includes': [ '../../../build/protoc.gypi' ],
92 }, 134 },
93 { 135 {
94 'target_name': 'policy', 136 'target_name': 'policy',
95 'type': 'static_library', 137 'type': 'static_library',
96 'hard_dependency': 1, 138 'hard_dependency': 1,
97 'direct_dependent_settings': { 139 'direct_dependent_settings': {
98 'include_dirs': [ 140 'include_dirs': [
99 '<(policy_out_dir)', 141 '<(policy_out_dir)',
100 '<(protoc_out_dir)', 142 '<(protoc_out_dir)',
101 ], 143 ],
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 'configurations': { 190 'configurations': {
149 'Common_Base': { 191 'Common_Base': {
150 'msvs_target_platform': 'x64', 192 'msvs_target_platform': 'x64',
151 }, 193 },
152 }, 194 },
153 }, 195 },
154 ], 196 ],
155 }], 197 }],
156 ], # 'conditions' 198 ], # 'conditions'
157 } 199 }
OLDNEW
« no previous file with comments | « no previous file | net/test/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698