home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.653 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  7.8 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.653
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.653
  11. Problem:    MingW needs build rule for included XPM files.  Object directory
  12.         for 32 and 64 builds is the same, also for MSVC.
  13. Solution:   Add MingW build rule to use included XPM files.  Add the CPU or
  14.         architecture to the object directory name. (Sergey Khorev)
  15. Files:        src/Make_ming.mak, src/Make_mvc.mak, src/xpm/README.txt
  16.  
  17.  
  18. *** ../vim-7.3.652/src/Make_ming.mak    2012-08-02 21:21:43.000000000 +0200
  19. --- src/Make_ming.mak    2012-09-05 17:43:11.000000000 +0200
  20. ***************
  21. *** 1,14 ****
  22. ! # Makefile for VIM on Win32, using 'EGCS/mingw32 1.1.2'.
  23.   # Info at http://www.mingw.org
  24. ! # Also requires 'GNU make 3.77', which you can get through a link
  25. ! # to 'JanJaap's page from the above page.
  26.   # Get missing libraries from http://gnuwin32.sf.net.
  27.   #
  28.   # Tested on Win32 NT 4 and Win95.
  29.   #
  30. ! # To make everything, just 'make -f Make_ming.mak'
  31. ! # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'
  32. ! # After a run, you can 'make -f Make_ming.mak clean' to clean up
  33.   #
  34.   # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
  35.   # it's just run out of memory or something.  Run again, and it will continue
  36. --- 1,15 ----
  37. ! # Makefile for VIM on Win32
  38. ! #
  39.   # Info at http://www.mingw.org
  40. ! # Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net
  41. ! # Also requires GNU make, which you can download from the same sites.
  42.   # Get missing libraries from http://gnuwin32.sf.net.
  43.   #
  44.   # Tested on Win32 NT 4 and Win95.
  45.   #
  46. ! # To make everything, just 'make -f Make_ming.mak'.
  47. ! # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'.
  48. ! # After a run, you can 'make -f Make_ming.mak clean' to clean up.
  49.   #
  50.   # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
  51.   # it's just run out of memory or something.  Run again, and it will continue
  52. ***************
  53. *** 20,27 ****
  54.   # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs:
  55.   #     http://www.matcode.com/mpress.htm
  56.   #
  57. ! # Maintained by Ron Aaron <ronaharon@yahoo.com>
  58. ! # updated 2003 Jan 20
  59.   
  60.   #>>>>> choose options:
  61.   # set to yes for a debug build
  62. --- 21,28 ----
  63.   # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs:
  64.   #     http://www.matcode.com/mpress.htm
  65.   #
  66. ! # Maintained by Ron Aaron <ronaharon@yahoo.com> et al.
  67. ! # Updated 2012 Sep 5.
  68.   
  69.   #>>>>> choose options:
  70.   # set to yes for a debug build
  71. ***************
  72. *** 31,62 ****
  73.   # set to yes to make gvim, no for vim
  74.   GUI=yes
  75.   # FEATURES=[TINY | SMALL  | NORMAL | BIG | HUGE]
  76. ! # set to TINY to make minimal version (few features)
  77.   FEATURES=BIG
  78. ! # set to one of i386, i486, i586, i686 as the minimum target processor
  79.   ARCH=i386
  80. ! # set to yes to cross-compile from unix; no=native Windows
  81.   CROSS=no
  82. ! # set to path to iconv.h and libiconv.a to enable using 'iconv.dll'
  83.   #ICONV="."
  84.   ICONV=yes
  85.   GETTEXT=yes
  86. ! # set to yes to include multibyte support
  87.   MBYTE=yes
  88. ! # set to yes to include IME support
  89.   IME=yes
  90.   DYNAMIC_IME=yes
  91. ! # set to yes to enable writing a postscript file with :hardcopy
  92.   POSTSCRIPT=no
  93. ! # set to yes to enable OLE support
  94.   OLE=no
  95. ! # Set the default $(WINVER) to make it work with pre-Win2k
  96.   ifndef WINVER
  97.   WINVER = 0x0500
  98.   endif
  99. ! # Set to yes to enable Cscope support
  100.   CSCOPE=yes
  101. ! # Set to yes to enable Netbeans support
  102.   NETBEANS=$(GUI)
  103.   
  104.   
  105. --- 32,64 ----
  106.   # set to yes to make gvim, no for vim
  107.   GUI=yes
  108.   # FEATURES=[TINY | SMALL  | NORMAL | BIG | HUGE]
  109. ! # Set to TINY to make minimal version (few features).
  110.   FEATURES=BIG
  111. ! # Set to one of i386, i486, i586, i686 as the minimum target processor.
  112. ! # For amd64/x64 architecture set ARCH=x86-64 .
  113.   ARCH=i386
  114. ! # Set to yes to cross-compile from unix; no=native Windows.
  115.   CROSS=no
  116. ! # Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'.
  117.   #ICONV="."
  118.   ICONV=yes
  119.   GETTEXT=yes
  120. ! # Set to yes to include multibyte support.
  121.   MBYTE=yes
  122. ! # Set to yes to include IME support.
  123.   IME=yes
  124.   DYNAMIC_IME=yes
  125. ! # Set to yes to enable writing a postscript file with :hardcopy.
  126.   POSTSCRIPT=no
  127. ! # Set to yes to enable OLE support.
  128.   OLE=no
  129. ! # Set the default $(WINVER) to make it work with pre-Win2k.
  130.   ifndef WINVER
  131.   WINVER = 0x0500
  132.   endif
  133. ! # Set to yes to enable Cscope support.
  134.   CSCOPE=yes
  135. ! # Set to yes to enable Netbeans support.
  136.   NETBEANS=$(GUI)
  137.   
  138.   
  139. ***************
  140. *** 431,441 ****
  141.   endif
  142.   endif
  143.   
  144. - ifdef XPM
  145.   # Only allow XPM for a GUI build.
  146.   ifeq (yes, $(GUI))
  147. ! CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include
  148.   endif
  149.   endif
  150.   
  151.   ifeq ($(DEBUG),yes)
  152. --- 433,464 ----
  153.   endif
  154.   endif
  155.   
  156.   # Only allow XPM for a GUI build.
  157.   ifeq (yes, $(GUI))
  158. ! ifndef XPM
  159. ! ifeq ($(ARCH),i386)
  160. ! XPM = xpm/x86
  161. ! endif
  162. ! ifeq ($(ARCH),i486)
  163. ! XPM = xpm/x86
  164. ! endif
  165. ! ifeq ($(ARCH),i586)
  166. ! XPM = xpm/x86
  167. ! endif
  168. ! ifeq ($(ARCH),i686)
  169. ! XPM = xpm/x86
  170.   endif
  171. + ifeq ($(ARCH),x86-64)
  172. + XPM = xpm/x64
  173. + endif
  174. + endif
  175. + ifdef XPM
  176. + ifneq ($(XPM),no)
  177. + CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include
  178. + endif
  179. + endif
  180.   endif
  181.   
  182.   ifeq ($(DEBUG),yes)
  183. ***************
  184. *** 565,574 ****
  185.   DEFINES += $(DEF_GUI)
  186.   OBJ += $(GUIOBJ)
  187.   LFLAGS += -mwindows
  188. ! OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)
  189.   else
  190.   TARGET := vim$(DEBUG_SUFFIX).exe
  191. ! OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)
  192.   endif
  193.   
  194.   ifdef GETTEXT
  195. --- 588,597 ----
  196.   DEFINES += $(DEF_GUI)
  197.   OBJ += $(GUIOBJ)
  198.   LFLAGS += -mwindows
  199. ! OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
  200.   else
  201.   TARGET := vim$(DEBUG_SUFFIX).exe
  202. ! OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
  203.   endif
  204.   
  205.   ifdef GETTEXT
  206. *** ../vim-7.3.652/src/Make_mvc.mak    2012-08-29 14:18:26.000000000 +0200
  207. --- src/Make_mvc.mak    2012-09-05 17:33:56.000000000 +0200
  208. ***************
  209. *** 213,218 ****
  210. --- 213,219 ----
  211.   # We're on Windows 95
  212.   CPU = i386
  213.   !endif # !PROCESSOR_ARCHITECTURE
  214. + OBJDIR = $(OBJDIR)$(CPU)
  215.   
  216.   # Build a retail version by default
  217.   
  218. ***************
  219. *** 283,292 ****
  220.   
  221.   !ifndef XPM
  222.   # XPM is not set, use the included xpm files, depending on the architecture.
  223. ! !if ("$(CPU)" == "AMD64") || ("$(CPU)" == "IA64")
  224.   XPM = xpm\x64
  225. ! !else
  226.   XPM = xpm\x86
  227.   !endif
  228.   !endif
  229.   !if "$(XPM)" != "no"
  230. --- 284,295 ----
  231.   
  232.   !ifndef XPM
  233.   # XPM is not set, use the included xpm files, depending on the architecture.
  234. ! !if "$(CPU)" == "AMD64"
  235.   XPM = xpm\x64
  236. ! !elseif "$(CPU)" == "i386"
  237.   XPM = xpm\x86
  238. + !else
  239. + XPM = no
  240.   !endif
  241.   !endif
  242.   !if "$(XPM)" != "no"
  243. *** ../vim-7.3.652/src/xpm/README.txt    2012-08-29 14:18:26.000000000 +0200
  244. --- src/xpm/README.txt    2012-09-05 17:35:34.000000000 +0200
  245. ***************
  246. *** 10,15 ****
  247. --- 10,18 ----
  248.   MinGW:
  249.   mingw32-make -f Make_ming.mak GUI=yes CSCOPE=yes XPM=e:/hg/xpm/x86
  250.   
  251. + MinGW 64 for x64:
  252. + mingw32-make -f Make_ming.mak GUI=yes ARCH=x86-64 XPM=E:\HG\xpm\x64
  253.   Microsoft Visual C++ on x64 (tested with versions 2008 and 2010):
  254.   nmake -f Make_mvc.mak GUI=yes CSCOPE=yes XPM=E:\HG\xpm\x64
  255.   
  256. *** ../vim-7.3.652/src/version.c    2012-09-05 17:28:08.000000000 +0200
  257. --- src/version.c    2012-09-05 17:53:15.000000000 +0200
  258. ***************
  259. *** 721,722 ****
  260. --- 721,724 ----
  261.   {   /* Add new patch number below this line */
  262. + /**/
  263. +     653,
  264.   /**/
  265.  
  266. -- 
  267. GUARD #2:  Wait a minute -- supposing two swallows carried it together?
  268. GUARD #1:  No, they'd have to have it on a line.
  269. GUARD #2:  Well, simple!  They'd just use a standard creeper!
  270. GUARD #1:  What, held under the dorsal guiding feathers?
  271. GUARD #2:  Well, why not?
  272.                                   The Quest for the Holy Grail (Monty Python)
  273.  
  274.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  275. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  276. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  277.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  278.