2019-03-15 13:06:56 +01:00
|
|
|
# Building RETRO on Windows
|
|
|
|
|
2019-03-18 21:55:32 +01:00
|
|
|
It is possible to build RETRO on Windows, though a few of the
|
|
|
|
extensions are not supported:
|
2019-03-18 20:44:09 +01:00
|
|
|
|
2019-03-18 21:55:32 +01:00
|
|
|
- no `unix:` words
|
|
|
|
- no `gopher:` words
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-03-19 13:36:16 +01:00
|
|
|
This is currently more difficult than on a Unix host. If you have
|
|
|
|
Windows 10 and WSL, it may be better to build under that (using
|
|
|
|
the Linux instructions).
|
|
|
|
|
2019-04-29 18:22:50 +02:00
|
|
|
## Setup Build Environment
|
|
|
|
|
|
|
|
RETRO on Windows is built with TCC.
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-03-18 21:55:32 +01:00
|
|
|
Go to http://download.savannah.gnu.org/releases/tinycc/
|
|
|
|
|
|
|
|
Download the *winapi-full* and *tcc-xxxx-bin* packages for your
|
|
|
|
system. Decompress them, copy the headers from the winapi
|
|
|
|
package into the tcc directory.
|
|
|
|
|
2019-04-29 18:22:50 +02:00
|
|
|
## Prepare Source
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-05-09 19:58:39 +02:00
|
|
|
Copy the `source/interfaces/retro-windows.c` and the
|
|
|
|
`source/interfaces/retro-windows.c` to the directory you setup
|
|
|
|
tcc into.
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-04-29 18:22:50 +02:00
|
|
|
## Build
|
2019-03-14 21:43:27 +01:00
|
|
|
|
2019-05-09 19:58:39 +02:00
|
|
|
Building will require use of the command line. Assuming that
|
|
|
|
tcc.exe is in the current directory along with the RETRO sources:
|
|
|
|
|
|
|
|
tcc retro-windows.c -o retro.exe
|