[dia/neduard/meson_fixes: 2/2] #31 Call windows.compile_resources() from meson to create icon.



commit e81e5687cd18b9b3ce0519f8fffd9bd476f3052c
Author: Eduard <eddnicodei gmail com>
Date:   Thu Jan 31 22:46:35 2019 +0000

    #31 Call windows.compile_resources() from meson to create icon.

 app/meson.build | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/app/meson.build b/app/meson.build
index a4449fcc..d95c7cc8 100644
--- a/app/meson.build
+++ b/app/meson.build
@@ -76,8 +76,24 @@ endif
 
 diaapp_inc = include_directories('.')
 
+win = import('windows')
+dia_icon = win.compile_resources(
+    'dia.rc',
+    args: ['-r'],
+    depend_files: [
+        'dia.ico',
+        'dia2.ico',
+        'dia-app.ico',
+        'dia-diagram.ico'
+    ]
+)
+
 diaapp = executable('dia',
-    dia_sources + [dia_app_icons_h, diamarshal_h, config_h],
+    [
+        dia_sources,
+        dia_app_icons_h, diamarshal_h, config_h,
+        dia_icon,
+    ],
     dependencies: [libgtk_dep, libxml_dep, libm_dep],
     link_with: [libdia],
     link_args: dia_link_args,
@@ -90,7 +106,7 @@ diaapp = executable('dia',
 if build_machine.system() == 'windows'
     dia_win_remote = executable(
         'dia-win-remote',
-        ['dia-win-remote.c'],
+        ['dia-win-remote.c', dia_icon],
         dependencies: [libgtk_dep],
         link_args: ['-lshlwapi'],
         gui_app: true,


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