Skip to content

Instantly share code, notes, and snippets.

@rioki
Created February 25, 2017 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rioki/64ae5a7d73d25d9f126352126162bb5b to your computer and use it in GitHub Desktop.
Save rioki/64ae5a7d73d25d9f126352126162bb5b to your computer and use it in GitHub Desktop.
libuv Visual Studio Bundle generator
echo off
rem
rem libuv Visual Studio Bundle generator
rem Copyright 2017 Sean Farrell
rem
rem DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
rem Version 2, December 2004
rem
rem Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
rem
rem Everyone is permitted to copy and distribute verbatim or modified
rem copies of this license document, and changing it is allowed as long
rem as the name is changed.
rem
rem DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
rem TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
rem
rem 0. You just DO WHAT THE FUCK YOU WANT TO.
rem
set LIBUV=libuv-1.11.0
mkdir bundle\%LIBUV%
mkdir bundle\%LIBUV%\include
copy %LIBUV%\include\uv.h bundle\%LIBUV%\include
copy %LIBUV%\include\uv-version.h bundle\%LIBUV%\include
copy %LIBUV%\include\uv-win.h bundle\%LIBUV%\include
copy %LIBUV%\include\uv-errno.h bundle\%LIBUV%\include
copy %LIBUV%\include\uv-threadpool.h bundle\%LIBUV%\include
copy %LIBUV%\include\stdint-msvc2008.h bundle\%LIBUV%\include
copy %LIBUV%\include\tree.h bundle\%LIBUV%\include
mkdir bundle\%LIBUV%\x86
mkdir bundle\%LIBUV%\x86\Debug
mkdir bundle\%LIBUV%\x86\Release
cd %LIBUV%
cmd /c "vcbuild.bat debug x86"
cmd /c "vcbuild.bat release x86"
cd ..
copy %LIBUV%\Debug\lib\libuv.lib bundle\%LIBUV%\x86\Debug
copy %LIBUV%\Debug\libuv.pdb bundle\%LIBUV%\x86\Debug
copy %LIBUV%\Release\lib\libuv.lib bundle\%LIBUV%\x86\Release
mkdir bundle\%LIBUV%\x64
mkdir bundle\%LIBUV%\x64\Debug
mkdir bundle\%LIBUV%\x64\Release
cd %LIBUV%
cmd /c "vcbuild.bat debug x64"
cmd /c "vcbuild.bat release x64"
cd ..
copy %LIBUV%\Debug\lib\libuv.lib bundle\%LIBUV%\x64\Debug
copy %LIBUV%\Debug\libuv.pdb bundle\%LIBUV%\x64\Debug
copy %LIBUV%\Release\lib\libuv.lib bundle\%LIBUV%\x64\Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment