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

Unified Diff: third_party/protobuf/protobuf.gyp

Issue 11316370: [sync] Componentize sync: Part 4: Fix includes in third_party/protobuf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing exports to content/browser/speech/proto/speech_proto.gyp Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/protobuf/README.chromium ('k') | third_party/protobuf/src/google/protobuf/repeated_field.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/protobuf/protobuf.gyp
diff --git a/third_party/protobuf/protobuf.gyp b/third_party/protobuf/protobuf.gyp
index b679cad20475cf147559e854bc43274aebfd91ce..1fdbf46357bb4622b3fc364996f83c3bbfaf9161 100644
--- a/third_party/protobuf/protobuf.gyp
+++ b/third_party/protobuf/protobuf.gyp
@@ -181,7 +181,19 @@
'GOOGLE_PROTOBUF_NO_RTTI',
'GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER',
],
-
+ # On Win component builds, we must dynamically link protobuf_lite to
+ # avoid warning C4275: "non dll-interface class used as base for
+ # dll-interface class". See the "DLLs vs. static linking" section in
+ # third_party/protobuf/vsprojects/readme.txt.
Dirk Pranke 2012/12/14 21:00:24 If your intent is for protobuf_lite to be a DLL, y
Raghu Simha 2012/12/14 22:10:41 Thanks for your pointers. It turns out that these
+ 'conditions': [
+ ['OS=="win" and component=="shared_library"', {
+ 'defines': [
+ 'LIBPROTOBUF_EXPORTS',
+ 'LIBPROTOC_EXPORTS',
+ 'PROTOBUF_USE_DLLS',
+ ],
+ }],
+ ],
'direct_dependent_settings': {
'include_dirs': [
'<(config_h_dir)',
@@ -191,6 +203,15 @@
'GOOGLE_PROTOBUF_NO_RTTI',
'GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER',
],
+ 'conditions': [
+ ['OS=="win" and component=="shared_library"', {
+ 'defines': [
+ 'LIBPROTOBUF_EXPORTS',
+ 'LIBPROTOC_EXPORTS',
+ 'PROTOBUF_USE_DLLS',
+ ],
+ }],
+ ],
},
},
# This is the full, heavy protobuf lib that's needed for c++ .proto's
« no previous file with comments | « third_party/protobuf/README.chromium ('k') | third_party/protobuf/src/google/protobuf/repeated_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698