summaryrefslogtreecommitdiff
path: root/gtk/gtk-win32.rc.body.in
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Fix version resource on for Windows 11 SDKChun-wei Fan2021-10-131-2/+2
| | | | | | | The rc.exe that comes with the Windows 11 SDK does not allow one to include winuser.h directly in the .rc scripts, so make sure that it is not included by gtk-win32.rc.body.in, but instead include windows.h with WIN32_LEAN_AND_MEAN defined.
* meson: Build .rc files for WindowsChun-wei Fan2018-12-061-3/+6
| | | | | | | | | | | Build the .rc files for Windows so that one can track the version info more easily for Windows, as well as giving GTK+ apps a default icon. Also, move back the manifest embedding for the themed Windows print dialog back into gtk-win32.rc.body.in, so that we just have one way of embedding this manifest file, making things easier for ourselves, as this is supported in the later Visual Studio compilers as well, which is 2013 and later.
* Windows: Update code for monolithic GTK DLLChun-wei Fan2016-11-031-0/+2
| | | | | | | | | | | | | | | | | | Now that the autotools build folded the GDK/GSK bits into the main GTK+ DLL, there are some updates that need to be done for this. We need to: -Fold the DllMain() of GDK-Win32 into the main GTK+ DllMain(), as we need the HINSTANCE to register the window. We can't have two DllMain()'s in a single DLL. -Remove the GDK rc(.in) files, as that is not used anymore. Make the GTK+ .rc(.in) file load the gtk.ico GTK+ logo file instead so that we still get the GTK+ logo for the application icon by default. Update the autotools build files as well. -Revert commit b9f9980 as LRN pointed out in comment 25 in bug 773299, as GTK+ is now a monolithic DLL, and we ought not to export this private function. https://bugzilla.gnome.org/show_bug.cgi?id=773299
* Windows: Update how gtk-win32.rc is generatedChun-wei Fan2016-02-221-0/+30
On Visual Studio, unlike MinGW, manifest files are embedded via including the manifest file as a resource file in the projects, not via the .rc file. This means that the line in the .rc file that specifies the manifest file would cause trouble, so that line gets removed when the full gtk3-win32.rc is generated on Visual Studio builds, otherwise 2010+ Visual Studio will complain when compiling the .rc file. Also, the inclusion of winuser.h will cause warnings during the compilation of the .rc file. Fix this by isolating the Win32 resource portions of gtk-win32.rc.in to gtk-win32.rc.body.in and: -On MinGW, construct the full gtk-win32.rc by doing the winver.h and winuser.h inclusion first, then append the contents of gtk-win32.rc.body, and then appending the line to embed the manifest file. -On Visual Studio, simply copy the gtk-win32.rc.body to gtk-win32.rc, and generate the full libgtk3.manifest file. https://bugzilla.gnome.org/show_bug.cgi?id=762311