MantisBT - CMake
View Issue Details
0000369CMakeCMakepublic2003-11-12 09:262010-12-28 11:03
Mathieu Malaterre 
Bill Hoffman 
lowminoralways
closedsuspended 
 
CMake 2.8.4 
0000369: rc (ressource) file and CYGWIN
rc file should be used under CYGINW using the 'windres' executable.

Typical Makefile (from wxWindows) are:

RESCOMP = windres
RESFLAGS = --include-dir $(top_srcdir)/include --include-dir
$(top_srcdir)/$(program_dir) --define __WIN32__ --define __WIN95__
--define __GNUWIN32__

.rc_resources.o:
$(RESCOMP) -i $< -o $@ $(RESFLAGS)

e.g.
windres -i project.rc -o project_resources.o
--include-dir myinclude --include-dir .
--define __WIN32__ --define __WIN95__ --define __GNUWIN32__

http://www.cmake.org/pipermail/cmake/2003-November/004467.html [^]
No tags attached.
related to 0004068closed Bill Hoffman rc-File support for MinGW 
Issue History
2007-08-03 18:10Berk GeveciAssigned ToChris Brislawn =>
2007-08-03 18:10Berk GeveciResolutionreopened => suspended
2007-08-03 18:10Berk GeveciSummaryGoodsite => rc (ressource) file and CYGWIN
2007-08-03 18:10Berk GeveciDescription Updated
2007-08-03 18:10Berk GeveciNote Deleted: 0008292
2007-08-03 18:10Berk GeveciProjectParaQ-Administrative => CMake
2007-08-03 18:10Berk GeveciStatusnew => assigned
2007-08-03 18:10Berk GeveciAssigned To => Bill Hoffman
2007-08-03 18:11Berk GeveciPrioritynormal => low
2007-08-24 09:33Alex NeundorfCategoryCPack => CMake
2010-11-10 14:52David ColeTarget Version => CMake 2.8.4
2010-11-10 14:52David ColeDescription Updated
2010-12-07 17:12David ColeRelationship addedrelated to 0004068
2010-12-28 11:03Bill HoffmanNote Added: 0024331
2010-12-28 11:03Bill HoffmanStatusassigned => closed

Notes
(0000939)
Bill Hoffman   
2004-04-22 13:49   
windres really is not mature enough to use. For example, I tried the zlib.rc file, and it could not parse it at all. I fear adding this "feature" will cause more trouble than it is worth.

I will lower the priority, and perhaps in the future when windres is better....
(0006506)
Mathieu Malaterre   
2007-02-21 11:17   
Using the latest zlib distribution, there seems to be a new zlib.rc file (*)

The following seems to be working:
$ windres -DGCC_WINDRES -i zlib1.rc -o zlib1.res

Using:
$ windres --version
GNU windres 2.17.50 20060817
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.



(*)
#include <windows.h>

#ifdef GCC_WINDRES
VS_VERSION_INFO VERSIONINFO
#else
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
#endif
  FILEVERSION 1,2,2,0
  PRODUCTVERSION 1,2,2,0
  FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
  FILEFLAGS 1
#else
  FILEFLAGS 0
#endif
  FILEOS VOS_DOS_WINDOWS32
  FILETYPE VFT_DLL
  FILESUBTYPE 0 // not used
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "040904E4"
    //language ID = U.S. English, char set = Windows, Multilingual
    BEGIN
      VALUE "FileDescription", "zlib data compression library\0"
      VALUE "FileVersion", "1.2.3\0"
      VALUE "InternalName", "zlib1.dll\0"
      VALUE "LegalCopyright", "(C) 1995-2004 Jean-loup Gailly & Mark Adler\0"
      VALUE "OriginalFilename", "zlib1.dll\0"
      VALUE "ProductName", "zlib\0"
      VALUE "ProductVersion", "1.2.3\0"
      VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
    END
  END
  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x0409, 1252
  END
END
(0024331)
Bill Hoffman   
2010-12-28 11:03   
This is fixed in next.