[gitg/windows-icon] windows: Add icon to executable



commit 5214bcc3e21e4a15f35139bd1492df4fff5357ca
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Thu Oct 25 14:45:13 2018 +0200

    windows: Add icon to executable

 gitg/meson.build | 4 ++++
 meson.build      | 3 +++
 2 files changed, 7 insertions(+)
---
diff --git a/gitg/meson.build b/gitg/meson.build
index 89582978..fe699cb2 100644
--- a/gitg/meson.build
+++ b/gitg/meson.build
@@ -122,6 +122,10 @@ if gtk_shortcuts_window
   vala_flags += '--define=GTK_SHORTCUTS_WINDOW'
 endif
 
+if host_system == 'windows'
+  sources += windows.compile_resources('gitg.rc')
+endif
+
 executable(
   gitg_name,
   sources: sources,
diff --git a/meson.build b/meson.build
index 238306bc..e98a6249 100644
--- a/meson.build
+++ b/meson.build
@@ -16,6 +16,9 @@ gitg_micro_version = version_array[2].to_int()
 
 gitg_api_version = '1.0'
 
+windows = import('windows')
+host_system = host_machine.system()
+
 gitg_gettext = gitg_name
 
 gitg_prefix = get_option('prefix')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]