Skip to content

Commit 7d1f304

Browse files
segevfinermarco-ippolito
authored andcommitted
build: fix headers install for shared mode on Win
PR-URL: #52442 Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent bcc06ac commit 7d1f304

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
@@ -458,12 +458,28 @@ if defined dll (
458458
copy /Y libnode.dll %TARGET_NAME%\ > nul
459459
if errorlevel 1 echo Cannot copy libnode.dll && goto package_error
460460

461+
copy /Y libnode.lib %TARGET_NAME%\ > nul
462+
if errorlevel 1 echo Cannot copy libnode.lib && goto package_error
463+
461464
mkdir %TARGET_NAME%\Release > nul
462465
copy /Y node.def %TARGET_NAME%\Release\ > nul
463466
if errorlevel 1 echo Cannot copy node.def && goto package_error
464467

465-
python ..\tools\install.py install --dest-dir %CD%\%TARGET_NAME% --prefix \ --headers-only --silent
468+
python ..\tools\install.py install --root-dir .. --config-gypi-path %CD%\..\config.gypi --dest-dir %CD%\%TARGET_NAME% --prefix \ --headers-only
466469
if errorlevel 1 echo Cannot install headers && goto package_error
470+
471+
if exist ..\Debug (
472+
mkdir %TARGET_NAME%\Debug > nul
473+
474+
copy /Y ..\Debug\libnode.dll %TARGET_NAME%\Debug\ > nul
475+
if errorlevel 1 echo Cannot copy libnode.dll && goto package_error
476+
477+
copy /Y ..\Debug\libnode.lib %TARGET_NAME%\Debug\ > nul
478+
if errorlevel 1 echo Cannot copy libnode.lib && goto package_error
479+
480+
copy /Y ..\Debug\node.def %TARGET_NAME%\Debug\ > nul
481+
if errorlevel 1 echo Cannot copy node.def && goto package_error
482+
)
467483
)
468484
cd ..
469485

0 commit comments

Comments
 (0)