Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 289649a

Browse files
committed
Add "node" target which builds a shared library.
With this other projects would be possible to include node as a third party library and embed a node engine in their applications.
1 parent 82e10ce commit 289649a

File tree

1 file changed

+5
-34
lines changed

1 file changed

+5
-34
lines changed

node.gyp

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@
8989
'dependencies': [
9090
'node_js2c#host',
9191
'deps/cares/cares.gyp:cares',
92-
'deps/v8/tools/gyp/v8.gyp:v8',
93-
'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
92+
# 'deps/v8/tools/gyp/v8.gyp:v8',
93+
# 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
9494
],
9595

9696
'include_dirs': [
9797
'src',
9898
'tools/msvs/genfiles',
9999
'deps/uv/src/ares',
100100
'<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h
101-
'deps/v8' # include/v8_platform.h
101+
# 'deps/v8' # include/v8_platform.h
102102
],
103103

104104
'sources': [
@@ -240,29 +240,6 @@
240240
[ 'node_shared_openssl=="false"', {
241241
'dependencies': [
242242
'./deps/openssl/openssl.gyp:openssl',
243-
244-
# For tests
245-
'./deps/openssl/openssl.gyp:openssl-cli',
246-
],
247-
# Do not let unused OpenSSL symbols to slip away
248-
'conditions': [
249-
# -force_load or --whole-archive are not applicable for
250-
# the static library
251-
[ 'node_target_type!="static_library"', {
252-
'xcode_settings': {
253-
'OTHER_LDFLAGS': [
254-
'-Wl,-force_load,<(PRODUCT_DIR)/<(OPENSSL_PRODUCT)',
255-
],
256-
},
257-
'conditions': [
258-
['OS in "linux freebsd"', {
259-
'ldflags': [
260-
'-Wl,--whole-archive <(PRODUCT_DIR)/<(OPENSSL_PRODUCT)',
261-
'-Wl,--no-whole-archive',
262-
],
263-
}],
264-
],
265-
}],
266243
],
267244
}]]
268245
}, {
@@ -427,12 +404,6 @@
427404
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
428405
}],
429406
],
430-
'msvs_settings': {
431-
'VCManifestTool': {
432-
'EmbedManifest': 'true',
433-
'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest'
434-
}
435-
},
436407
},
437408
# generate ETW header and resource files
438409
{
@@ -655,8 +626,8 @@
655626
'type': 'executable',
656627
'dependencies': [
657628
'deps/gtest/gtest.gyp:gtest',
658-
'deps/v8/tools/gyp/v8.gyp:v8',
659-
'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
629+
# 'deps/v8/tools/gyp/v8.gyp:v8',
630+
# 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
660631
],
661632
'include_dirs': [
662633
'src',

0 commit comments

Comments
 (0)