From f9bf7d531bcea3fde3bb055d5d517f93945515dd Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 26 Jan 2024 12:38:01 +0900 Subject: [PATCH] Added vcpkg manifest for windows build environment. "builtin-baseline": "53bef8994c541b6561884a8395ea35715ece75db" is 2024.01.12 released version of vcpkg. https://github.com/microsoft/vcpkg/releases/tag/2024.01.12 --- .gitignore | 1 + doc/windows.md | 7 ++++--- vcpkg.json | 11 +++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 vcpkg.json diff --git a/.gitignore b/.gitignore index f402bf2155..89b817b4f6 100644 --- a/.gitignore +++ b/.gitignore @@ -138,6 +138,7 @@ lcov*.info /test.rb /test-coverage.dat /tmp +/vcpkg_installed /transdb.h /uncommon.mk /verconf.h diff --git a/doc/windows.md b/doc/windows.md index a8bc4f6a42..2020eec9cf 100644 --- a/doc/windows.md +++ b/doc/windows.md @@ -88,10 +88,11 @@ make scoop install git ruby sed patch ``` -5. You need to install required libraries using [vcpkg](https://vcpkg.io/) like: +5. You need to install required libraries using [vcpkg](https://vcpkg.io/) on + directory of ruby repository like: ``` - vcpkg --triplet x64-windows install openssl libffi libyaml zlib + vcpkg --triplet x64-windows install ``` 6. Enable Command Extension of your command line. It's the default behavior @@ -117,7 +118,7 @@ make executable without console window if also you want. 3. You need specify vcpkg directory to use `--with-opt-dir` - option like `configure --with-opt-dir=C:\vcpkg\installed\x64-windows` + option like `win32\configure.bat --with-opt-dir=vcpkg_installed\x64-windows` 4. Run `nmake up` if you are building from GIT source. diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 0000000000..1296010e1f --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", + "dependencies": [ + "gmp", + "libffi", + "libyaml", + "openssl", + "zlib" + ], + "builtin-baseline": "53bef8994c541b6561884a8395ea35715ece75db" +}