[gitg] win32: Add ico resource to the final binary
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] win32: Add ico resource to the final binary
- Date: Tue, 22 Dec 2015 17:52:30 +0000 (UTC)
commit ac634e88a4735f690525f3cf60a9da0a3095ee73
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Dec 22 18:51:37 2015 +0100
win32: Add ico resource to the final binary
configure.ac | 1 +
gitg/Makefile.am | 9 ++++++++-
gitg/gitg.rc | 1 +
gitg/resources/pixmaps/gitg.ico | Bin 0 -> 293950 bytes
4 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 98c7571..22cee24 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,6 +126,7 @@ AC_MSG_CHECKING([for native Win32])
case "$host" in
*-*-mingw*)
os_win32=yes
+ AC_CHECK_TOOL(WINDRES, windres)
;;
*)
os_win32=no
diff --git a/gitg/Makefile.am b/gitg/Makefile.am
index 00aedbc..a3720ed 100644
--- a/gitg/Makefile.am
+++ b/gitg/Makefile.am
@@ -49,6 +49,11 @@ gitg_gitg_LDFLAGS = \
if OS_WIN32
gitg_gitg_LDFLAGS += -mwindows
+
+gitg/gitg-res.o: gitg/gitg.rc
+ $(WINDRES) -i $(top_srcdir)/gitg/gitg.rc --input-format=rc -o gitg/gitg-res.o -O coff
+
+gitg_gitg_LDADD += gitg/gitg-res.o
endif
gitg_gitg_VALASOURCES = \
@@ -117,6 +122,8 @@ EXTRA_DIST += \
gitg/resources/gitg-resources.xml.in \
gitg/resources/ui/style-osx.css \
gitg/resources/ui/style-win32.css \
- gitg/resources/ui/style-unix.css
+ gitg/resources/ui/style-unix.css \
+ gitg/resources/pixmaps/gitg.ico \
+ gitg/gitg.rc
# vi:ts=8:noet
diff --git a/gitg/gitg.rc b/gitg/gitg.rc
new file mode 100644
index 0000000..d91d0f1
--- /dev/null
+++ b/gitg/gitg.rc
@@ -0,0 +1 @@
+A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "resources/pixmaps/gitg.ico"
diff --git a/gitg/resources/pixmaps/gitg.ico b/gitg/resources/pixmaps/gitg.ico
new file mode 100644
index 0000000..9ef7d23
Binary files /dev/null and b/gitg/resources/pixmaps/gitg.ico differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]