Index: build/common.gypi |
=================================================================== |
--- build/common.gypi (revision 92224) |
+++ build/common.gypi (working copy) |
@@ -694,6 +694,9 @@ |
}, { # else: branding!="Chrome" |
'defines': ['CHROMIUM_BUILD'], |
}], |
+ ['component=="shared_library"', { |
+ 'defines': ['COMPONENT_BUILD'], |
+ }], |
['toolkit_views==1', { |
'defines': ['TOOLKIT_VIEWS=1'], |
}], |
@@ -922,6 +925,11 @@ |
}, |
}, |
}], |
+ ['OS=="win" and component=="shared_library"', { |
+ 'msvs_disabled_warnings': [ |
+ 4251, # class 'std::xx' needs to have dll-interface. |
+ ], |
+ }], |
['chromeos!=1', { |
'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ] |
}], |