Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4f713fb

Browse files
segevfineraduh95
authored andcommittedApr 29, 2024
build: fix headers install for shared mode on Win
PR-URL: #52442 Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent 9b2b6ab commit 4f713fb

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed
 

‎vcbuild.bat

+17-1
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,28 @@ if defined dll (
434434
copy /Y libnode.dll %TARGET_NAME%\ > nul
435435
if errorlevel 1 echo Cannot copy libnode.dll && goto package_error
436436

437+
copy /Y libnode.lib %TARGET_NAME%\ > nul
438+
if errorlevel 1 echo Cannot copy libnode.lib && goto package_error
439+
437440
mkdir %TARGET_NAME%\Release > nul
438441
copy /Y node.def %TARGET_NAME%\Release\ > nul
439442
if errorlevel 1 echo Cannot copy node.def && goto package_error
440443

441-
python ..\tools\install.py install --dest-dir %CD%\%TARGET_NAME% --prefix \ --headers-only --silent
444+
python ..\tools\install.py install --root-dir .. --config-gypi-path %CD%\..\config.gypi --dest-dir %CD%\%TARGET_NAME% --prefix \ --headers-only
442445
if errorlevel 1 echo Cannot install headers && goto package_error
446+
447+
if exist ..\Debug (
448+
mkdir %TARGET_NAME%\Debug > nul
449+
450+
copy /Y ..\Debug\libnode.dll %TARGET_NAME%\Debug\ > nul
451+
if errorlevel 1 echo Cannot copy libnode.dll && goto package_error
452+
453+
copy /Y ..\Debug\libnode.lib %TARGET_NAME%\Debug\ > nul
454+
if errorlevel 1 echo Cannot copy libnode.lib && goto package_error
455+
456+
copy /Y ..\Debug\node.def %TARGET_NAME%\Debug\ > nul
457+
if errorlevel 1 echo Cannot copy node.def && goto package_error
458+
)
443459
)
444460
cd ..
445461

0 commit comments

Comments
 (0)
Failed to load comments.