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

Side by Side Diff: third_party/protobuf/protobuf.gyp

Issue 12090058: Componentize protobuf_lite (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 2012 The Chromium Authors. All rights reserved. 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 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 'conditions': [ 6 'conditions': [
7 ['use_system_protobuf==0', { 7 ['use_system_protobuf==0', {
8 'conditions': [ 8 'conditions': [
9 ['OS!="win"', { 9 ['OS!="win"', {
10 'variables': { 10 'variables': {
11 'config_h_dir': 11 'config_h_dir':
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 # The "lite" lib is about 1/7th the size of the heavy lib, 122 # The "lite" lib is about 1/7th the size of the heavy lib,
123 # but it doesn't support some of the more exotic features of 123 # but it doesn't support some of the more exotic features of
124 # protobufs, like reflection. To generate C++ code that can link 124 # protobufs, like reflection. To generate C++ code that can link
125 # against the lite version of the library, add the option line: 125 # against the lite version of the library, add the option line:
126 # 126 #
127 # option optimize_for = LITE_RUNTIME; 127 # option optimize_for = LITE_RUNTIME;
128 # 128 #
129 # to your .proto file. 129 # to your .proto file.
130 { 130 {
131 'target_name': 'protobuf_lite', 131 'target_name': 'protobuf_lite',
132 'type': 'static_library', 132 'type': '<(component)',
133 'toolsets': ['host', 'target'], 133 'toolsets': ['host', 'target'],
134 'sources': [ 134 'includes': [
135 'src/google/protobuf/stubs/atomicops.h', 135 'protobuf_lite.gypi',
136 'src/google/protobuf/stubs/atomicops_internals_arm_gcc.h',
137 'src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h',
138 'src/google/protobuf/stubs/atomicops_internals_macosx.h',
139 'src/google/protobuf/stubs/atomicops_internals_mips_gcc.h',
140 'src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc',
141 'src/google/protobuf/stubs/atomicops_internals_x86_gcc.h',
142 'src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc',
143 'src/google/protobuf/stubs/atomicops_internals_x86_msvc.h',
144 'src/google/protobuf/stubs/common.h',
145 'src/google/protobuf/stubs/once.h',
146 'src/google/protobuf/stubs/platform_macros.h',
147 'src/google/protobuf/extension_set.h',
148 'src/google/protobuf/generated_message_util.h',
149 'src/google/protobuf/message_lite.h',
150 'src/google/protobuf/repeated_field.h',
151 'src/google/protobuf/unknown_field_set.cc',
152 'src/google/protobuf/unknown_field_set.h',
153 'src/google/protobuf/wire_format_lite.h',
154 'src/google/protobuf/wire_format_lite_inl.h',
155 'src/google/protobuf/io/coded_stream.h',
156 'src/google/protobuf/io/zero_copy_stream.h',
157 'src/google/protobuf/io/zero_copy_stream_impl_lite.h',
158
159 'src/google/protobuf/stubs/common.cc',
160 'src/google/protobuf/stubs/once.cc',
161 'src/google/protobuf/stubs/hash.h',
162 'src/google/protobuf/stubs/map-util.h',
163 'src/google/protobuf/stubs/stl_util-inl.h',
164 'src/google/protobuf/extension_set.cc',
165 'src/google/protobuf/generated_message_util.cc',
166 'src/google/protobuf/message_lite.cc',
167 'src/google/protobuf/repeated_field.cc',
168 'src/google/protobuf/wire_format_lite.cc',
169 'src/google/protobuf/io/coded_stream.cc',
170 'src/google/protobuf/io/coded_stream_inl.h',
171 'src/google/protobuf/io/zero_copy_stream.cc',
172 'src/google/protobuf/io/zero_copy_stream_impl_lite.cc',
173 '<(config_h_dir)/config.h',
174 ], 136 ],
175 'include_dirs': [ 137 # Required for component builds. See http://crbug.com/172800.
176 '<(config_h_dir)', 138 'defines': [
177 'src', 139 'LIBPROTOBUF_EXPORTS',
140 'PROTOBUF_USE_DLLS',
178 ], 141 ],
179 # This macro must be defined to suppress the use of dynamic_cast<>,
180 # which requires RTTI.
181 'defines': [
182 'GOOGLE_PROTOBUF_NO_RTTI',
183 'GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER',
184 ],
185
186 'direct_dependent_settings': { 142 'direct_dependent_settings': {
187 'include_dirs': [ 143 'defines': [
188 '<(config_h_dir)', 144 'PROTOBUF_USE_DLLS',
189 'src',
190 ], 145 ],
191 'defines': [
192 'GOOGLE_PROTOBUF_NO_RTTI',
193 'GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER',
194 ],
195 # TODO(jschuh): http://crbug.com/167187 size_t -> int.
196 'msvs_disabled_warnings': [ 4267 ],
197 }, 146 },
198 }, 147 },
199 # This is the full, heavy protobuf lib that's needed for c++ .proto's 148 # This is the full, heavy protobuf lib that's needed for c++ .protos
200 # that don't specify the LITE_RUNTIME option. The protocol 149 # that don't specify the LITE_RUNTIME option. The protocol
201 # compiler itself (protoc) falls into that category. 150 # compiler itself (protoc) falls into that category.
202 # 151 #
203 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl 152 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl
204 { 153 {
205 'target_name': 'protobuf_full_do_not_use', 154 'target_name': 'protobuf_full_do_not_use',
206 'type': 'static_library', 155 'type': 'static_library',
207 'toolsets': ['host','target'], 156 'toolsets': ['host','target'],
208 'sources': [ 157 'includes': [
209 'src/google/protobuf/descriptor.h', 158 'protobuf_full_do_not_use.gypi',
Ryan Sleevi 2013/01/30 00:24:00 It shouldn't be necessary to pull this into its ow
Raghu Simha 2013/01/30 00:48:48 Fair point. Restored.
210 'src/google/protobuf/descriptor.pb.h', 159 'protobuf_lite.gypi',
211 'src/google/protobuf/descriptor_database.h',
212 'src/google/protobuf/dynamic_message.h',
213 'src/google/protobuf/generated_message_reflection.h',
214 'src/google/protobuf/message.h',
215 'src/google/protobuf/reflection_ops.h',
216 'src/google/protobuf/service.h',
217 'src/google/protobuf/text_format.h',
218 'src/google/protobuf/wire_format.h',
219 'src/google/protobuf/io/gzip_stream.h',
220 'src/google/protobuf/io/printer.h',
221 'src/google/protobuf/io/tokenizer.h',
222 'src/google/protobuf/io/zero_copy_stream_impl.h',
223 'src/google/protobuf/compiler/code_generator.h',
224 'src/google/protobuf/compiler/command_line_interface.h',
225 'src/google/protobuf/compiler/importer.h',
226 'src/google/protobuf/compiler/parser.h',
227
228 'src/google/protobuf/stubs/strutil.cc',
229 'src/google/protobuf/stubs/strutil.h',
230 'src/google/protobuf/stubs/substitute.cc',
231 'src/google/protobuf/stubs/substitute.h',
232 'src/google/protobuf/stubs/structurally_valid.cc',
233 'src/google/protobuf/descriptor.cc',
234 'src/google/protobuf/descriptor.pb.cc',
235 'src/google/protobuf/descriptor_database.cc',
236 'src/google/protobuf/dynamic_message.cc',
237 'src/google/protobuf/extension_set_heavy.cc',
238 'src/google/protobuf/generated_message_reflection.cc',
239 'src/google/protobuf/message.cc',
240 'src/google/protobuf/reflection_ops.cc',
241 'src/google/protobuf/service.cc',
242 'src/google/protobuf/text_format.cc',
243 'src/google/protobuf/wire_format.cc',
244 # This file pulls in zlib, but it's not actually used by protoc, so
245 # instead of compiling zlib for the host, let's just exclude this.
246 # 'src/src/google/protobuf/io/gzip_stream.cc',
247 'src/google/protobuf/io/printer.cc',
248 'src/google/protobuf/io/tokenizer.cc',
249 'src/google/protobuf/io/zero_copy_stream_impl.cc',
250 'src/google/protobuf/compiler/importer.cc',
251 'src/google/protobuf/compiler/parser.cc',
252 ],
253 'dependencies': [
254 'protobuf_lite',
255 ],
256 'export_dependent_settings': [
257 'protobuf_lite',
258 ], 160 ],
259 }, 161 },
260 { 162 {
261 'target_name': 'protoc', 163 'target_name': 'protoc',
262 'conditions': [ 164 'conditions': [
263 ['OS!="ios"', { 165 ['OS!="ios"', {
264 'type': 'executable', 166 'type': 'executable',
265 'toolsets': ['host'], 167 'toolsets': ['host'],
266 'sources': [ 168 'sources': [
267 'src/google/protobuf/compiler/code_generator.cc', 169 'src/google/protobuf/compiler/code_generator.cc',
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 'toolsets': ['host', 'target'], 376 'toolsets': ['host', 'target'],
475 }, 377 },
476 { 378 {
477 'target_name': 'py_proto', 379 'target_name': 'py_proto',
478 'type': 'none', 380 'type': 'none',
479 }, 381 },
480 ], 382 ],
481 }], 383 }],
482 ], 384 ],
483 } 385 }
OLDNEW
« no previous file with comments | « third_party/protobuf/README.chromium ('k') | third_party/protobuf/protobuf_full_do_not_use.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698