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

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: Address feedback 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
« no previous file with comments | « third_party/protobuf/README.chromium ('k') | third_party/protobuf/protobuf_lite.gypi » ('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 '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': {
(...skipping 111 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'],
157 'includes': [
158 'protobuf_lite.gypi',
159 ],
208 'sources': [ 160 'sources': [
209 'src/google/protobuf/descriptor.h', 161 'src/google/protobuf/descriptor.h',
210 'src/google/protobuf/descriptor.pb.h', 162 'src/google/protobuf/descriptor.pb.h',
211 'src/google/protobuf/descriptor_database.h', 163 'src/google/protobuf/descriptor_database.h',
212 'src/google/protobuf/dynamic_message.h', 164 'src/google/protobuf/dynamic_message.h',
213 'src/google/protobuf/generated_message_reflection.h', 165 'src/google/protobuf/generated_message_reflection.h',
214 'src/google/protobuf/message.h', 166 'src/google/protobuf/message.h',
215 'src/google/protobuf/reflection_ops.h', 167 'src/google/protobuf/reflection_ops.h',
216 'src/google/protobuf/service.h', 168 'src/google/protobuf/service.h',
217 'src/google/protobuf/text_format.h', 169 'src/google/protobuf/text_format.h',
(...skipping 25 matching lines...) Expand all
243 'src/google/protobuf/wire_format.cc', 195 'src/google/protobuf/wire_format.cc',
244 # This file pulls in zlib, but it's not actually used by protoc, so 196 # 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. 197 # instead of compiling zlib for the host, let's just exclude this.
246 # 'src/src/google/protobuf/io/gzip_stream.cc', 198 # 'src/src/google/protobuf/io/gzip_stream.cc',
247 'src/google/protobuf/io/printer.cc', 199 'src/google/protobuf/io/printer.cc',
248 'src/google/protobuf/io/tokenizer.cc', 200 'src/google/protobuf/io/tokenizer.cc',
249 'src/google/protobuf/io/zero_copy_stream_impl.cc', 201 'src/google/protobuf/io/zero_copy_stream_impl.cc',
250 'src/google/protobuf/compiler/importer.cc', 202 'src/google/protobuf/compiler/importer.cc',
251 'src/google/protobuf/compiler/parser.cc', 203 'src/google/protobuf/compiler/parser.cc',
252 ], 204 ],
253 'dependencies': [
254 'protobuf_lite',
255 ],
256 'export_dependent_settings': [
257 'protobuf_lite',
258 ],
259 }, 205 },
260 { 206 {
261 'target_name': 'protoc', 207 'target_name': 'protoc',
262 'conditions': [ 208 'conditions': [
263 ['OS!="ios"', { 209 ['OS!="ios"', {
264 'type': 'executable', 210 'type': 'executable',
265 'toolsets': ['host'], 211 'toolsets': ['host'],
266 'sources': [ 212 'sources': [
267 'src/google/protobuf/compiler/code_generator.cc', 213 'src/google/protobuf/compiler/code_generator.cc',
268 'src/google/protobuf/compiler/command_line_interface.cc', 214 'src/google/protobuf/compiler/command_line_interface.cc',
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 'toolsets': ['host', 'target'], 420 'toolsets': ['host', 'target'],
475 }, 421 },
476 { 422 {
477 'target_name': 'py_proto', 423 'target_name': 'py_proto',
478 'type': 'none', 424 'type': 'none',
479 }, 425 },
480 ], 426 ],
481 }], 427 }],
482 ], 428 ],
483 } 429 }
OLDNEW
« no previous file with comments | « third_party/protobuf/README.chromium ('k') | third_party/protobuf/protobuf_lite.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698