[DOC] Tweaks for windows.md

This commit is contained in:
Nobuyoshi Nakada 2024-10-28 21:38:57 +09:00
parent 4f467c3fbf
commit 90ef28f59b
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -72,16 +72,16 @@ make
**Note** building ruby requires following commands.
* nmake
* cl
* ml
* lib
* dumpbin
* `nmake`
* `cl`
* `ml`
* `lib`
* `dumpbin`
4. If you want to build from GIT source, following commands are required.
* git
* sed
* ruby 3.0 or later
* `git`
* `sed`
* `ruby` 3.0 or later
You can use [scoop](https://scoop.sh/) to install them like:
@ -104,21 +104,23 @@ make
1. Execute `win32\configure.bat` on your build directory.
You can specify the target platform as an argument.
For example, run `configure --target=i686-mswin32`
For example, run `configure --target=i686-mswin32`.
You can also specify the install directory.
For example, run `configure --prefix=<install_directory>`
For example, run `configure --prefix=<install_directory>`.
Default of the install directory is `/usr` .
2. If you want to change the name of the executable files and the DLL
file, you can specify `--program-prefix` and `--program-suffix`,
like `win32\configure.bat --program-suffix=-$(MAJOR)$(MINOR)`.
2. If you want to append to the executable and DLL file names,
specify `--program-prefix` and `--program-suffix`, like
`win32\configure.bat --program-suffix=-$(MAJOR)$(MINOR)`.
Also `--install-name` and `--so-name` options affect the whole
name executable files and the DLL file respectively, like
`win32\configure.bat --install-name=$(RUBY_BASE_NAME)-$(MAJOR)$(MINOR)`.
Also, the `--install-name` and `--so-name` options specify the
exact base names of the executable and DLL files, respectively,
like `win32\configure.bat --install-name=$(RUBY_BASE_NAME)-$(MAJOR)$(MINOR)`.
And add _RUBYW_INSTALL_NAME_ to change the name of the
executable without console window if also you want.
By default, the name for the executable without a console window
is generated from the _RUBY_INSTALL_NAME_ specified as above by
replacing `ruby` with `rubyw`. If you want to make it different
more, modify _RUBYW_INSTALL_NAME_ directly in the Makefile.
3. You need specify vcpkg directory to use `--with-opt-dir`
option like `win32\configure.bat --with-opt-dir=vcpkg_installed\x64-windows`
@ -127,8 +129,8 @@ make
5. Run `nmake`
6. Run `nmake prepare-vcpkg` if you need to copy
vcpkg installed libraries like `libssl-3-x64.dll` to the build directory.
6. Run `nmake prepare-vcpkg` if you need to copy vcpkg installed
libraries like `libssl-3-x64.dll` to the build directory.
7. Run `nmake check`