compiler for KDE on Windows
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Thu May 7 09:15:11 CEST 2009
> Von: Ralf Habacker
> Ralf Habacker schrieb:
> > Christian Ehrlicher schrieb:
> >
> >>> Von: Bernhard Reiter
> >>> On Tuesday 05 May 2009, Christian Ehrlicher wrote:
> >>>
> >>>
> >>>> I'm thinking about dropping msvc2005 for kde4.4. Don't know what to
> do
> >>>> about mingw though...
> >>>>
> >>>>
> >>> I have an interest of keeping mingw.
> >>>
> >>> The reason is that it can be controlled better as
> >>> it is Free Software and that it enables cross-compilation.
> >>> Cross compilation is important as it makes it easier to automate
> >>> a test and build process, including the necessary steps to compile the
> >>> matching source code for each distributable binary.
> >>>
> >>>
> >>>
> >> The problem with mingw (3.4.x and 4.x) is that they don't support the
> crappy manifest things and we need to build something around this. Maybe
> with a custom PRE_BUILD command or something. But someone has to figure it
> out...
> >>
> >> So we need a small tool which
> >> - reads the current manifest resource (so we could also use it for
> msvc2005 which already adds a small manifest but which is not enough)
> >> - modifies it to accomplish with Vista and up
> >> - writes it back to the executable/library
> >> I tested this already (manually) and vista accepted my modified
> manifest and executed update_mime_database without asking the user :)
> >>
> >> If someone knows how to read resources from executables (and maybe has
> a working example) let me know...
> >>
> >>
> > http://www.codeproject.com/KB/cpp/dynares.aspx may help.
> >
> In the kdewin32 package there is an initial version of a manifest
> extractor/update tool like msvc's mt see kdesupport/kdewin32/tools/mt.
>
> Another approach is by using windres from the mingw tool chain. It is
> possible out of the box to compile a rc file containing a manifest
> definition into a res file which could be linked into a target. See the
> following example:
>
I don't like this idea because it's hard to add this for msvc2005 when a manifest already exists and we only have to modify it.
>
> @Christian: Which informations are exactly required in the manifest -
> are the trustInfo/security stuff enough ? It is only required to provide
> executables with a manifest resource or is it also required to add a
> manifest to dll's ?
>
I'll take a look into your tool this evening (hopefully) and add the appropriate functions/strings.
Christian
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
More information about the Kde-windows
mailing list