diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-08-29 14:18:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-08-29 14:18:33 +0200 |
commit | c6c1d8b80236305f7e7b053be8dea63688fa648e (patch) | |
tree | 7cbb9d297d35e735090487a7332c34744fa1bebc /src/Make_mvc.mak | |
parent | 1c75a03501698b8cd1dcb4fd892bc329302d9533 (diff) |
updated for version 7.3.639v7.3.639
Problem: It's not easy to build Vim on Windows with XPM support.
Solution: Include the required files, they are quite small. Update the
MSVC makefile to use them. Binary files are in the next patch.
(Sergey Khorev)
Diffstat (limited to 'src/Make_mvc.mak')
-rw-r--r-- | src/Make_mvc.mak | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak index 4dcbd90af2..283f0d43c4 100644 --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -89,6 +89,8 @@ # Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes) # # XPM Image Support: XPM=[path to XPM directory] +# Default is "xpm", using the files included in the distribution. +# Use "no" to disable this feature. # # Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED) # @@ -279,17 +281,21 @@ NBDEBUG_SRC = nbdebug.c NETBEANS_LIB = WSock32.lib !endif -!ifdef XPM +!ifndef XPM +# XPM is not set, use the included xpm files, depending on the architecture. +!if ("$(CPU)" == "AMD64") || ("$(CPU)" == "IA64") +XPM = xpm\x64 +!else +XPM = xpm\x86 +!endif +!endif +!if "$(XPM)" != "no" # XPM - Include support for XPM signs -# You need to download or build xpm.lib somehow. -# You can get the most recent version of libXpm-*.zip from -# http://cgit.freedesktop.org/xorg/lib/libXpm -# from which you must build xpm.lib yourself -# OR get and unpack: ftp://ftp.vim.org/pub/vim/pcextra/xpm.zip +# See the xpm directory for more information. XPM_OBJ = $(OBJDIR)/xpm_w32.obj XPM_DEFS = -DFEAT_XPM_W32 XPM_LIB = $(XPM)\lib\libXpm.lib -XPM_INC = -I $(XPM)\include +XPM_INC = -I $(XPM)\include -I $(XPM)\..\include !endif !endif |