mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
build: support building crates (temporal) on windows
PR-URL: https://github.com/nodejs/node/pull/61163 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
1 parent
ca5c4c9752
commit
3213de08e8
1 file changed
+11
-2
Vendored
+11
-2
@@ -1,6 +1,7 @@
|
||||
{
|
||||
'variables': {
|
||||
'cargo_vendor_dir': './vendor',
|
||||
'node_crates_libpath': '<(SHARED_INTERMEDIATE_DIR)/>(cargo_build_mode)/<(STATIC_LIB_PREFIX)node_crates<(STATIC_LIB_SUFFIX)',
|
||||
},
|
||||
'targets': [
|
||||
{
|
||||
@@ -14,7 +15,15 @@
|
||||
],
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/>(cargo_build_mode)/libnode_crates.a',
|
||||
'<(node_crates_libpath)',
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="win"', {
|
||||
'libraries': [
|
||||
'-lntdll',
|
||||
'-luserenv'
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'actions': [
|
||||
@@ -24,7 +33,7 @@
|
||||
'<@(_sources)'
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/>(cargo_build_mode)/libnode_crates.a'
|
||||
'<(node_crates_libpath)'
|
||||
],
|
||||
'action': [
|
||||
'cargo',
|
||||
|
||||
Reference in new issue
Block a user