summaryrefslogtreecommitdiffstats
path: root/net/net.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'net/net.gyp')
-rw-r--r--net/net.gyp19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/net.gyp b/net/net.gyp
index 31afc17..1eb0a8d 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -822,8 +822,27 @@
],
[ 'component == "shared_library"', {
'defines': [
+ 'NET_DLL',
'NET_IMPLEMENTATION',
],
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'NET_DLL',
+ ],
+ },
+ 'conditions': [
+ [ 'OS == "win"', {
+ 'msvs_disabled_warnings': [
+ # class 'std::xx' needs to have dll-interface.
+ 4251,
+ ],
+ 'direct_dependent_settings': {
+ 'msvs_disabled_warnings': [
+ 4251,
+ ],
+ },
+ }],
+ ],
}],
[ 'OS == "mac"', {
'dependencies': [