summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorDarshan Sen <darshan.sen@postman.com>2021-10-16 14:46:48 +0530
committerNode.js GitHub Bot <github-bot@iojs.org>2021-10-30 08:46:02 +0000
commitff536fa13e70a3e6874d662774a7ae726a558776 (patch)
tree47c4513b7878177461fc4eb50f00051de6010300 /node.gyp
parentbabd73ce259b4c19f6889c0db82a4264d61307e5 (diff)
downloadnode-new-ff536fa13e70a3e6874d662774a7ae726a558776.tar.gz
test: test `crypto.setEngine()` using an actual engine
Signed-off-by: Darshan Sen <darshan.sen@postman.com> PR-URL: https://github.com/nodejs/node/pull/40481 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp26
1 files changed, 26 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 989efb1aa5..d2337823a8 100644
--- a/node.gyp
+++ b/node.gyp
@@ -1473,5 +1473,31 @@
},
]
}], # end aix section
+ # TODO(RaisinTen): Enable this to build on other platforms as well.
+ ['(OS=="mac" or (OS=="linux" and target_arch=="x64")) and \
+ node_use_openssl=="true"', {
+ 'targets': [
+ {
+ 'target_name': 'test_crypto_engine',
+ 'type': 'shared_library',
+ 'include_dirs': ['deps/openssl/openssl/include'],
+ 'sources': ['test/fixtures/test_crypto_engine.c'],
+ 'conditions': [
+ ['OS=="mac"', {
+ 'dependencies': ['deps/openssl/openssl.gyp:openssl'],
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': ['-Wno-deprecated-declarations'],
+ },
+ }],
+ ['OS=="linux" and target_arch=="x64"', {
+ 'cflags': [
+ '-Wno-deprecated-declarations',
+ '-fPIC',
+ ],
+ }],
+ ],
+ }, # test_crypto_engine
+ ], # end targets
+ }], # end node_use_openssl section
], # end conditions block
}