[gtk+/wip/meson: 127/181] meson: gtk: use array for installed tools definition
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/meson: 127/181] meson: gtk: use array for installed tools definition
- Date: Wed, 26 Apr 2017 16:38:17 +0000 (UTC)
commit 2d1d088466f4d5596c98c024f3199b56ec598864
Author: Tim-Philipp Müller <tim centricular com>
Date: Mon Mar 20 16:25:14 2017 +0000
meson: gtk: use array for installed tools definition
gtk/meson.build | 62 ++++++++++++++++--------------------------------------
1 files changed, 19 insertions(+), 43 deletions(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index 70c7440..3fb7d72 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -810,48 +810,24 @@ libgtk_dep = declare_dependency(
include_directories: [confinc, gtkinc]
)
+# Installed tools
+
+gtk_tools = [
+ ['gtk4-query-settings', ['gtk-query-settings.c']],
+ ['gtk4-builder-tool', ['gtk-builder-tool.c']],
+ ['gtk4-update-icon-cache', ['updateiconcache.c']],
+ ['gtk4-encode-symbolic-svg', ['encodesymbolic.c']],
+ ['gtk4-launch', ['gtk-launch.c']],
+ ['gtk4-query-immodules', ['queryimmodules.c', 'gtkutils.c']],
+]
+foreach tool : gtk_tools
+ tool_name = tool.get(0)
+ tool_srcs = tool.get(1)
-####### Utils ######
-gtk_query_settings = executable(
- 'gtk4-query-settings',
- 'gtk-query-settings.c',
- dependencies: libgtk_dep,
- install: true
-)
-
-gtk_builder_tool = executable(
- 'gtk4-builder-tool',
- 'gtk-builder-tool.c',
- dependencies: libgtk_dep,
- install: true
-)
-
-gtk_update_icon_cache = executable(
- 'gtk4-update-icon-cache',
- 'updateiconcache.c',
- dependencies: libgtk_dep,
- install: true
-)
-
-# gtk_query_immodules = executable(
- # 'gtk-query-immodules-3.0',
- # 'queryimmodules.c',
- # 'gtkutils.c',
- # dependencies: libgtk_dep,
- # install: true
-# )
-
-gtk_encode_symbolic_svg = executable(
- 'gtk4-encode-symbolic-svg',
- 'encodesymbolic.c',
- dependencies: libgtk_dep,
- install: true
-)
-
-gtk_launch = executable(
- 'gtk4-launch',
- 'gtk-launch.c',
- dependencies: libgtk_dep,
- install: true
-)
+ executable(tool_name, tool_srcs,
+ include_directories: [confinc],
+ c_args: gtk_cargs,
+ dependencies: libgtk_dep,
+ install: true)
+endforeach
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]