aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-01-28 14:53:33 -0800
committerGravatar murgatroid99 <mlumish@google.com>2016-01-28 14:53:33 -0800
commit8e4103e7d005b5f279e5769c05c6d7a7e23896a9 (patch)
tree488f9707a4f06a717dcfe3157de33f53e5ca5b3a
parentaf6c1785fe7cab40ae54cc99338c6e75e976ba6f (diff)
Fixed windows build warning
-rw-r--r--binding.gyp11
-rw-r--r--templates/binding.gyp.template11
2 files changed, 18 insertions, 4 deletions
diff --git a/binding.gyp b/binding.gyp
index eacc7c44f6..651c2e13af 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -118,10 +118,17 @@
# when including the Node headers. The remedy for this is to remove
# the OpenSSL headers, from the downloaded Node development package,
# which is typically located in `.node-gyp` in your home directory.
- 'target_name': 'windows_build_warning',
+ 'target_name': 'WINDOWS_BUILD_WARNING',
'actions': [
{
- 'message': "IMPORTANT: Due to https://github.com/nodejs/node/issues/4932, to build this library on Windows, you must first remove <(node_root_dir)/include/node/openssl/"
+ 'action_name': 'WINDOWS_BUILD_WARNING',
+ 'inputs': [
+ 'package.json'
+ ],
+ 'outputs': [
+ 'ignore_this_part'
+ ],
+ 'action': ['echo', 'IMPORTANT: Due to https://github.com/nodejs/node/issues/4932, to build this library on Windows, you must first remove <(node_root_dir)/include/node/openssl/']
}
]
},
diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template
index 650670b750..a913585240 100644
--- a/templates/binding.gyp.template
+++ b/templates/binding.gyp.template
@@ -120,10 +120,17 @@
# when including the Node headers. The remedy for this is to remove
# the OpenSSL headers, from the downloaded Node development package,
# which is typically located in `.node-gyp` in your home directory.
- 'target_name': 'windows_build_warning',
+ 'target_name': 'WINDOWS_BUILD_WARNING',
'actions': [
{
- 'message': "IMPORTANT: Due to https://github.com/nodejs/node/issues/4932, to build this library on Windows, you must first remove <(node_root_dir)/include/node/openssl/"
+ 'action_name': 'WINDOWS_BUILD_WARNING',
+ 'inputs': [
+ 'package.json'
+ ],
+ 'outputs': [
+ 'ignore_this_part'
+ ],
+ 'action': ['echo', 'IMPORTANT: Due to https://github.com/nodejs/node/issues/4932, to build this library on Windows, you must first remove <(node_root_dir)/include/node/openssl/']
}
]
},