Skip to content

Commit

Permalink
build: fix headers install for shared mode on Win
Browse files Browse the repository at this point in the history
PR-URL: #52442
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
segevfiner authored and mhdawson committed Apr 25, 2024
1 parent d5c7ffd commit c29d53c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion vcbuild.bat
Expand Up @@ -434,12 +434,28 @@ if defined dll (
copy /Y libnode.dll %TARGET_NAME%\ > nul
if errorlevel 1 echo Cannot copy libnode.dll && goto package_error

copy /Y libnode.lib %TARGET_NAME%\ > nul
if errorlevel 1 echo Cannot copy libnode.lib && goto package_error

mkdir %TARGET_NAME%\Release > nul
copy /Y node.def %TARGET_NAME%\Release\ > nul
if errorlevel 1 echo Cannot copy node.def && goto package_error

python ..\tools\install.py install --dest-dir %CD%\%TARGET_NAME% --prefix \ --headers-only --silent
python ..\tools\install.py install --root-dir .. --config-gypi-path %CD%\..\config.gypi --dest-dir %CD%\%TARGET_NAME% --prefix \ --headers-only
if errorlevel 1 echo Cannot install headers && goto package_error

if exist ..\Debug (
mkdir %TARGET_NAME%\Debug > nul

copy /Y ..\Debug\libnode.dll %TARGET_NAME%\Debug\ > nul
if errorlevel 1 echo Cannot copy libnode.dll && goto package_error

copy /Y ..\Debug\libnode.lib %TARGET_NAME%\Debug\ > nul
if errorlevel 1 echo Cannot copy libnode.lib && goto package_error

copy /Y ..\Debug\node.def %TARGET_NAME%\Debug\ > nul
if errorlevel 1 echo Cannot copy node.def && goto package_error
)
)
cd ..

Expand Down

0 comments on commit c29d53c

Please sign in to comment.