commit c257cf066f4d864b81c42f110fa117cdcf562014 parent 75deeaf0f78b4ea20e16c7f748fd8f659dfbd45d Author: cfillion <cfillion@users.noreply.github.com> Date: Fri, 24 Jun 2016 12:43:46 -0700 win32: automate curl build process Diffstat:
M | README.md | | | 33 | ++++++++++++++++----------------- |
A | build_deps.bat | | | 28 | ++++++++++++++++++++++++++++ |
M | wrapper.bat | | | 1 | + |
3 files changed, 45 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md @@ -59,24 +59,23 @@ vendor 3. Download the latest [boost](http://www.boost.org/) and copy the `boost` subdirectory into `<reapack>\vendor` 4. Download the latest [curl](http://curl.haxx.se/download.html) source - code and extract it on your computer -5. Launch "Developer Command Prompt for VS2015" and run the following commands: - ```sh - cd Path\To\Curl\winbuild - - "%VCINSTALLDIR%\vcvarsall" x86_amd64 - nmake /f Makefile.vc mode=static RTLIBCFG=static ENABLE_IDN=no MACHINE=x64 - - "%VCINSTALLDIR%\vcvarsall" x86 - nmake /f Makefile.vc mode=static RTLIBCFG=static ENABLE_IDN=no MACHINE=x86 + code and extract it as `vendor/curl`: ``` -6. Copy `<curl directory>\builds\libcurl-vc-x64-release-static-ipv6-sspi-winssl` - to `<reapack directory>\vendor` as `libcurl64` -7. Copy `<curl directory>\builds\libcurl-vc-x86-release-static-ipv6-sspi-winssl` - to `<reapack directory>\vendor` as `libcurl32` -8. Download the latest stable amalgamation build of [sqlite](https://www.sqlite.org/download.html). + reapack> tree vendor + vendor + ├── curl/ + │ ├── builds/ + │ │ └── ... + │ ├── winbuild/ + │ │ ├── Makefile.vc + │ │ └── ... + │ └── ... + └── ... + ``` +5. Launch "Developer Command Prompt for VS2015" and run `build_deps.bat` +6. Download the latest stable amalgamation build of [sqlite](https://www.sqlite.org/download.html). Put `sqlite3.h` and `sqlite3.c` in `<reapack>\vendor`. -9. Run `rake` from this directory using +7. Run `rake` from this directory using "Developer Command Prompt for VS2015" -10. Copy or symlink `x64\bin\reaper_reapack64.dll` or `x86\bin\reaper_reapack32.dll` +8. Copy or symlink `x64\bin\reaper_reapack64.dll` or `x86\bin\reaper_reapack32.dll` to your REAPER plugin folder diff --git a/build_deps.bat b/build_deps.bat @@ -0,0 +1,28 @@ +@echo off +setlocal + +set self=%~dp0 +set vendor=%self%\vendor +set curl=%vendor%\curl + +if "%1%"=="curl32" ( + cd "%curl%\builds" + if %errorlevel% neq 0 exit /b %errorlevel% + del * /Q /S + cd "%curl%\winbuild" + nmake /f Makefile.vc mode=static RTLIBCFG=static MACHINE=x86 + xcopy /y /s %curl%\builds\libcurl-vc-x86-release-static-ssl-static-ipv6-sspi %vendor\libcurl32\ + exit /b +) +if "%1%"=="curl64" ( + cd "%curl%\builds" + if %errorlevel% neq 0 exit /b %errorlevel% + del * /Q /S + cd "%curl%\winbuild" + nmake /f Makefile.vc mode=static RTLIBCFG=static MACHINE=x64 + xcopy /y /s %curl%\builds\libcurl-vc-x64-release-static-ssl-static-ipv6-sspi %vendor\libcurl64\ + exit /b +) + +call %self%\wrapper i386 cmd /c %self%\build_deps curl32 +call %self%\wrapper x86_64 cmd /c %self%\build_deps curl64 diff --git a/wrapper.bat b/wrapper.bat @@ -1,4 +1,5 @@ @echo off +setlocal set arch=%1% set program=%2%