GeezerVison is showing github.com — build: windows sharedlib support · nodejs/node@0138b4d
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: common.gypi +28-1Lines changed: 28 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 79 | 79 | ['OS == "android"', { | 80 | 80 | 'cflags': [ '-fPIE' ], | 81 | 81 | 'ldflags': [ '-fPIE', '-pie' ] | | 82 | + }], | | 83 | + ['node_shared=="true"', { | | 84 | + 'msvs_settings': { | | 85 | + 'VCCLCompilerTool': { | | 86 | + 'RuntimeLibrary': 3 # MultiThreadedDebugDLL (/MDd) | | 87 | + } | | 88 | + } | | 89 | + }], | | 90 | + ['node_shared=="false"', { | | 91 | + 'msvs_settings': { | | 92 | + 'VCCLCompilerTool': { | | 93 | + 'RuntimeLibrary': 1 # MultiThreadedDebug (/MTd) | | 94 | + } | | 95 | + } | 82 | 96 | }] | 83 | 97 | ], | 84 | 98 | 'msvs_settings': { | | 116 | 130 | ['OS == "android"', { | 117 | 131 | 'cflags': [ '-fPIE' ], | 118 | 132 | 'ldflags': [ '-fPIE', '-pie' ] | | 133 | + }], | | 134 | + ['node_shared=="true"', { | | 135 | + 'msvs_settings': { | | 136 | + 'VCCLCompilerTool': { | | 137 | + 'RuntimeLibrary': 2 # MultiThreadedDLL (/MD) | | 138 | + } | | 139 | + } | | 140 | + }], | | 141 | + ['node_shared=="false"', { | | 142 | + 'msvs_settings': { | | 143 | + 'VCCLCompilerTool': { | | 144 | + 'RuntimeLibrary': 0 # MultiThreaded (/MT) | | 145 | + } | | 146 | + } | 119 | 147 | }] | 120 | 148 | ], | 121 | 149 | 'msvs_settings': { | 122 | 150 | 'VCCLCompilerTool': { | 123 | | - 'RuntimeLibrary': 0, # static release | 124 | 151 | 'Optimization': 3, # /Ox, full optimization | 125 | 152 | 'FavorSizeOrSpeed': 1, # /Ot, favour speed over size | 126 | 153 | 'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible | |
Collapse file Copy file name to clipboardExpand all lines: node.gyp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 242 | 242 | 'NODE_SHARED_MODE', | 243 | 243 | ], | 244 | 244 | 'conditions': [ | 245 | | - [ 'node_module_version!=""', { | | 245 | + [ 'node_module_version!="" and OS!="win"', { | 246 | 246 | 'product_extension': 'so.<(node_module_version)', | 247 | 247 | }] | 248 | 248 | ], | |
Collapse file Copy file name to clipboardExpand all lines: vcbuild.bat +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,6 +37,7 @@ set build_release= | 37 | 37 | set configure_flags= | 38 | 38 | set build_addons= | 39 | 39 | set enable_vtune_profiling= | | 40 | +set dll= | 40 | 41 |
| 41 | 42 | :next-arg | 42 | 43 | if "%1"=="" goto args-done | @@ -76,6 +77,7 @@ if /i "%1"=="intl-none" set i18n_arg=%1&goto arg-ok | 76 | 77 | if /i "%1"=="download-all" set download_arg="--download=all"&goto arg-ok | 77 | 78 | if /i "%1"=="ignore-flaky" set test_args=%test_args% --flaky-tests=dontcare&goto arg-ok | 78 | 79 | if /i "%1"=="enable-vtune" set enable_vtune_profiling="--enable-vtune-profiling"&goto arg-ok | | 80 | +if /i "%1"=="dll" set dll=1&goto arg-ok | 79 | 81 |
| 80 | 82 | echo Error: invalid command line option `%1`. | 81 | 83 | exit /b 1 | @@ -105,6 +107,7 @@ if defined noetw set configure_flags=%configure_flags% --without-etw& set noetw_ | 105 | 107 | if defined noperfctr set configure_flags=%configure_flags% --without-perfctr& set noperfctr_msi_arg=/p:NoPerfCtr=1 | 106 | 108 | if defined release_urlbase set configure_flags=%configure_flags% --release-urlbase=%release_urlbase% | 107 | 109 | if defined download_arg set configure_flags=%configure_flags% %download_arg% | | 110 | +if defined dll set configure_flags=%configure_flags% --shared | 108 | 111 |
| 109 | 112 | if "%i18n_arg%"=="full-icu" set configure_flags=%configure_flags% --with-intl=full-icu | 110 | 113 | if "%i18n_arg%"=="small-icu" set configure_flags=%configure_flags% --with-intl=small-icu | |
|