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 / 6.1.374 < prev    next >
Encoding:
Internet Message Format  |  2003-03-08  |  6.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.374 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.374 (extra)
  11. Problem:    MS-Windows: Cannot build GvimExt with MingW or Cygwin.
  12. Solution:   Add makefile and modified resource files. (Rene de Zwart)
  13.         Also support Cygwin. (Alejandro Lopez_Valencia)
  14. Files:        GvimExt/Make_cyg.mak, GvimExt/Make_ming.mak, GvimExt/Makefile,
  15.         GvimExt/gvimext_ming.def, GvimExt/gvimext_ming.rc
  16.  
  17.  
  18. *** ../vim61.373/GvimExt/Make_cyg.mak    Sun Mar  9 15:08:20 2003
  19. --- GvimExt/Make_cyg.mak    Sun Mar  9 14:57:41 2003
  20. ***************
  21. *** 0 ****
  22. --- 1,42 ----
  23. + # Project: gvimext
  24. + # Generates gvimext.dll with Cygwin's -mno-cygwin
  25. + #
  26. + CPP  := g++ -mno-cygwin -mwin32
  27. + CC   := gcc -mno-cygwin -mwin32
  28. + WINDRES := windres
  29. + RES  := gvimext.res
  30. + OBJ  := gvimext.o $(RES)
  31. + LIBS :=  -luuid
  32. + INCS :=
  33. + DLL  := gvimext.dll
  34. + .PHONY: all all-before all-after clean clean-custom
  35. + all: all-before $(DLL) all-after
  36. + clean: clean-custom
  37. +          ${RM}  $(OBJ) $(DLL) ${RES} ${EXPLIB} $(STATICLIB)
  38. + DLLWRAP = dllwrap.exe
  39. + DEFFILE = gvimext_ming.def
  40. + STATICLIB = gvimext.a
  41. + EXPLIB = gvimext.exp
  42. + $(DLL): $(OBJ)
  43. +          $(DLLWRAP)  --def $(DEFFILE) \
  44. +                  --output-exp ${EXPLIB} \
  45. +                  --image-base 0x1C000000 \
  46. +                  --driver-name c++ \
  47. +                  --implib $(STATICLIB) \
  48. +                  $(OBJ) $(LIBS) \
  49. +                  --target=i386-mingw32 -mno-cygwin \
  50. +                  -o $(DLL) -s
  51. + gvimext.o: gvimext.cpp
  52. +          $(CPP) -c $? -o $@ $(CXXFLAGS) -DFEAT_GETTEXT
  53. + ${RES}: gvimext_ming.rc
  54. +          $(WINDRES) $? -I rc -o $@ -O coff  -DMING
  55. *** ../vim61.373/GvimExt/Make_ming.mak    Sun Mar  9 15:08:20 2003
  56. --- GvimExt/Make_ming.mak    Sat Feb  1 23:39:24 2003
  57. ***************
  58. *** 0 ****
  59. --- 1,42 ----
  60. + # Project: gvimext
  61. + # Generates gvimext.dll with mingw
  62. + #
  63. + CPP  := g++.exe
  64. + CC   := gcc.exe
  65. + WINDRES := windres.exe
  66. + RES  := gvimext.res
  67. + OBJ  := gvimext.o $(RES)
  68. + LIBS :=  -luuid
  69. + INCS :=  
  70. + DLL  := gvimext.dll
  71. + .PHONY: all all-before all-after clean clean-custom
  72. + all: all-before $(DLL) all-after
  73. + clean: clean-custom
  74. +     ${RM}  $(OBJ) $(DLL) ${RES} ${EXPLIB} $(STATICLIB) 
  75. + DLLWRAP=dllwrap.exe
  76. + DEFFILE=gvimext_ming.def
  77. + STATICLIB=gvimext.a
  78. + EXPLIB=gvimext.exp
  79. + $(DLL): $(OBJ)
  80. +     $(DLLWRAP)  --def $(DEFFILE) \
  81. +         --output-exp ${EXPLIB} \
  82. +         --image-base 0x1C000000 \
  83. +         --driver-name c++ \
  84. +         --implib $(STATICLIB) \
  85. +         $(OBJ) $(LIBS) \
  86. +         --target=i386-mingw32 -mno-cygwin \
  87. +         -o $(DLL) -s
  88. + gvimext.o: gvimext.cpp
  89. +     $(CPP) -c $? -o $@ $(CXXFLAGS) -DFEAT_GETTEXT
  90. + ${RES}: gvimext_ming.rc 
  91. +     $(WINDRES) $? -I rc -o $@ -O coff  -DMING
  92. *** ../vim61.373/GvimExt/Makefile    Fri Aug 24 22:29:48 2001
  93. --- GvimExt/Makefile    Sun Feb  2 13:05:48 2003
  94. ***************
  95. *** 10,15 ****
  96. --- 10,17 ----
  97.     $(implib) -machine:$(CPU) -def:gvimext.def $** -out:gvimext.lib
  98.     $(link) $(dlllflags) -base:0x1C000000 -out:$*.dll $** $(olelibsdll) shell32.lib gvimext.lib comctl32.lib gvimext.exp
  99.   
  100. + gvimext.obj: gvimext.h
  101.   .cpp.obj:
  102.       $(cc) $(cflags) -DFEAT_GETTEXT $(cvarsdll) $*.cpp
  103.   
  104. *** ../vim61.373/GvimExt/gvimext_ming.def    Sun Mar  9 15:08:20 2003
  105. --- GvimExt/gvimext_ming.def    Tue Jan 28 22:24:16 2003
  106. ***************
  107. *** 0 ****
  108. --- 1,10 ----
  109. + ;gvimdef_ming.def : Declares the module parameters for the DLL.
  110. + ;The mingw environment doesn't know anything about private declarations
  111. + ;Hence this is the same file as gvimext.def with private removed
  112. + LIBRARY      gvimext
  113. + DESCRIPTION  'Vim Shell Extension build with MinGW'
  114. + EXPORTS
  115. +     DllCanUnloadNow = DllCanUnloadNow@0
  116. +     DllGetClassObject  = DllGetClassObject@12
  117. *** ../vim61.373/GvimExt/gvimext_ming.rc    Sun Mar  9 15:08:20 2003
  118. --- GvimExt/gvimext_ming.rc    Sun Feb  2 13:05:06 2003
  119. ***************
  120. *** 0 ****
  121. --- 1,45 ----
  122. + #include <windows.h>
  123. + #define xstr(x) str(x)
  124. + #define str(x) #x
  125. + VS_VERSION_INFO VERSIONINFO
  126. +  FILEVERSION 1,0,0,1
  127. +  PRODUCTVERSION 1,0,0,1
  128. +  FILEFLAGSMASK 0x3fL
  129. + #ifdef _DEBUG
  130. +  FILEFLAGS 0x3L
  131. + #else
  132. +  FILEFLAGS 0x2L
  133. + #endif
  134. +  FILEOS 0x4L
  135. +  FILETYPE VFT_DLL
  136. +  FILESUBTYPE 0x0L
  137. + {
  138. +     BLOCK "StringFileInfo"
  139. +     {
  140. +         BLOCK "040904b0"
  141. +         {
  142. +             VALUE "Comments", "Developed using COM architecture!\0"
  143. +             VALUE "CompanyName", "Tianmiao Hu's Developer Studio\0"
  144. +             VALUE "FileDescription", "A small project for the context menu of gvim!\0"
  145. +             VALUE "FileVersion", "1, 0, 0, 1\0"
  146. +             VALUE "InternalName", "gvim right-click menu extension\0"
  147. +             VALUE "LegalCopyright", "Copyright ⌐ 1999 Tianmiao Hu\0"
  148. +             VALUE "LegalTrademarks", "Tianmiao Hu's Gvim Context Menu Extension\0"
  149. +             VALUE "OriginalFilename", "gvimext.dll\0"
  150. +             VALUE "PrivateBuild", "\0"
  151. +             VALUE "ProductName", "Tianmiao Hu's  gvimext context menu extension\0"
  152. +             VALUE "ProductVersion", "1, 0, 0, 1\0"
  153. +             
  154. + #if defined(__GNUC__)
  155. +             VALUE "SpecialBuild", "Build With " "MingW " xstr(__GNUC__) "." xstr(__GNUC_MINOR__) "." xstr(__GNUC_PATCHLEVEL__)  " on " __DATE__ " " __TIME__ "\0"
  156. + #else
  157. +             VALUE "SpecialBuild", "Unknown compiler\0"
  158. + #endif
  159. +         }
  160. +     }
  161. +     BLOCK "VarFileInfo"
  162. +     {
  163. +         VALUE "Translation", 0x409, 1200
  164. +     }
  165. + }
  166. *** ../vim61.373/src/version.c    Sun Mar  9 15:05:10 2003
  167. --- src/version.c    Sun Mar  9 15:08:04 2003
  168. ***************
  169. *** 613,614 ****
  170. --- 613,616 ----
  171.   {   /* Add new patch number below this line */
  172. + /**/
  173. +     374,
  174.   /**/
  175.  
  176. -- 
  177. Never enter the boss's office unless it's absolutely necessary.  Every boss
  178. saves one corner of the desk for useless assignments that are doled out like
  179. Halloween candy to each visitor.
  180.                 (Scott Adams - The Dilbert principle)
  181.  
  182.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  183. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  184. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  185.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  186.