summaryrefslogtreecommitdiffstats
path: root/third_party/protobuf
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 18:21:19 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 18:21:19 +0000
commitaf3176a286d63c0db0ca7370e37b8e452e2a0200 (patch)
treec82605aff317ffeda943ba1afe240694c9ac8f17 /third_party/protobuf
parent990de36904afa4af6bd23728cd5fae8468593d30 (diff)
downloadchromium_src-af3176a286d63c0db0ca7370e37b8e452e2a0200.zip
chromium_src-af3176a286d63c0db0ca7370e37b8e452e2a0200.tar.gz
chromium_src-af3176a286d63c0db0ca7370e37b8e452e2a0200.tar.bz2
Use protobuf_lite to save on binary size.
Now that we have a forked protobuf-lite library which can retain unknown fields, we can switch to using protobuf-lite. The full protobuf target has been renamed to hopefully avoid accidental use in the future. This saves 357K from a stripped, Release, Linux 'chrome' binary (48032752 -> 47676176). BUG=56579 TEST=sync_unit_tests Review URL: http://codereview.chromium.org/3793001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62426 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/protobuf')
-rw-r--r--third_party/protobuf/protobuf.gyp6
1 files changed, 4 insertions, 2 deletions
diff --git a/third_party/protobuf/protobuf.gyp b/third_party/protobuf/protobuf.gyp
index ed81fd9..6833ca5 100644
--- a/third_party/protobuf/protobuf.gyp
+++ b/third_party/protobuf/protobuf.gyp
@@ -94,8 +94,10 @@
# This is the full, heavy protobuf lib that's needed for c++ .proto's
# that don't specify the LITE_RUNTIME option. The protocol
# compiler itself (protoc) falls into that category.
+ #
+ # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl
{
- 'target_name': 'protobuf',
+ 'target_name': 'protobuf_full_do_not_use',
'type': '<(library)',
'toolsets': ['host','target'],
'sources': [
@@ -214,7 +216,7 @@
'src/google/protobuf/compiler/main.cc',
],
'dependencies': [
- 'protobuf',
+ 'protobuf_full_do_not_use',
],
'include_dirs': [
'<(config_h_dir)',