[dia/neduard/meson_fixes: 2/2] #31 Call windows.compile_resources() from meson to create icon.
- From: Eduard <neduard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/neduard/meson_fixes: 2/2] #31 Call windows.compile_resources() from meson to create icon.
- Date: Thu, 31 Jan 2019 23:12:25 +0000 (UTC)
commit a1b1d8e9d58fc039b6103d7197e6caa25c2dcf24
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]