summaryrefslogtreecommitdiff
path: root/windows/readme.md
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2017-01-25 12:49:37 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2017-01-25 12:49:37 +0100
commit5580322ec95f723c4ffc1c0c3d840294b942ccba (patch)
tree53fbc675d2ff654e3cc59041250a99d4b3d5ad53 /windows/readme.md
parent106834014b3060ad0054fd28ce538aa74d1eb86b (diff)
downloadlibgd-5580322ec95f723c4ffc1c0c3d840294b942ccba.tar.gz
Update Windows build instructions
Diffstat (limited to 'windows/readme.md')
-rw-r--r--windows/readme.md49
1 files changed, 40 insertions, 9 deletions
diff --git a/windows/readme.md b/windows/readme.md
index cb50e26..ce6da45 100644
--- a/windows/readme.md
+++ b/windows/readme.md
@@ -1,15 +1,46 @@
-# Building on Windows with Visual Studio 2013
+# Building on Windows with Visual Studio 2015
-* Open the VS2013 x64 Native Tools Command Prompt. 2012 will *not* work!
-* Change to the gd-libgd folder
-* `git clone https://github.com/imazen/gd-win-dependencies` into the folder
-* Run:
+* Get the required dependencies from
+ http://windows.php.net/downloads/php-sdk/deps/vc14/. Choose the x86 or x64
+ packages depending on your needs.
+
+ * freetype
+ * libiconv
+ * libjpeg
+ * libpng
+ * libwebp
+ * libxpm
+ * zlib
+
+* Unpack all dependency packages into the same folder.
+
+* Open the VS2015 x86 or x64 Native Tools Command Prompt.
+
+* Set the environment variable `WITH_DEVEL` to the path where you have unpacked
+ the dependencies. `WITH_DEVEL` defaults to `..\deps`.
+
+* If you want a debug build, do
+````
+set DEBUG=1
+````
+
+* `cd` into the libgd source folder.
+
+* To build the libraries, do:
```
-nmake /f windows/Makefile.vc all
-nmake /f windows/Makefile.vc check
+nmake /f windows\Makefile.vc
```
-* Before rebuilding, run:
+* To build and run the tests, do:
+````
+nmake /f windows\Makefile.vc check
+````
+
+* After a successful build, you find the libraries and test executables in
+ `..\gdbuild`. You can change the build folder by setting the environment
+ variable `WITH_BUILD` to the desired path.
+
+* Before rebuilding, you may have to run:
```
-nmake /f windows/Makefile.vc clean
+nmake /f windows\Makefile.vc clean
```