[tracker/wip/sam/meson] meson: tracker-needle now works



commit 9207eaf7a13ec9ff370be15f18de384cb6539b6e
Author: Sam Thursfield <sam afuera me uk>
Date:   Sun Mar 12 00:05:15 2017 +0000

    meson: tracker-needle now works

 src/libtracker-data/meson.build |    4 ++--
 src/tracker-needle/meson.build  |   28 +++++++++++++++++++++++++++-
 2 files changed, 29 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/meson.build b/src/libtracker-data/meson.build
index 11016a0..c787023 100644
--- a/src/libtracker-data/meson.build
+++ b/src/libtracker-data/meson.build
@@ -20,8 +20,6 @@ libtracker_data_vala = static_library('tracker-sparql-query',
         # doesn't seem to work here.
         '--target-glib', glib_required,
     ],
-    install: true,
-    install_dir: tracker_internal_libs_dir,
     # This doesn't depend on tracker_common_dep because of
     # https://github.com/mesonbuild/meson/issues/671
     dependencies: [glib, gio, tracker_sparql_intermediate_dep],
@@ -59,6 +57,8 @@ libtracker_data = library('tracker-data',
     c_args: [
         '-DTRACKER_COMPILATION',
     ],
+    install: true,
+    install_dir: tracker_internal_libs_dir,
     # This doesn't depend on tracker_common_dep because of
     # https://github.com/mesonbuild/meson/issues/671
     link_with: [libtracker_data_vala],
diff --git a/src/tracker-needle/meson.build b/src/tracker-needle/meson.build
index b5479b9..2119406 100644
--- a/src/tracker-needle/meson.build
+++ b/src/tracker-needle/meson.build
@@ -16,5 +16,31 @@ executable(
         '-D_XOPEN_SOURCE_EXTENDED',
         '-include', 'config.h'
     ],
-    install: true
+    install: true,
+    install_rpath: tracker_internal_libs_dir
 )
+
+custom_target('tracker-needle-settings-schema',
+    input: 'org.freedesktop.Tracker.Needle.gschema.xml.in',
+    output: 'org.freedesktop.Tracker.Needle.gschema.xml',
+    command: ['intltool-merge', '--quiet', '--xml-style', '--utf8', join_paths(meson.source_root(), 'po'), 
'@INPUT@', '@OUTPUT@'],
+    install: true,
+    install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
+
+install_data('tracker-needle.ui',
+    install_dir: join_paths(get_option('datadir'), 'tracker'))
+
+desktop_file_untranslated = configure_file(
+    input: 'tracker-needle.desktop.in.in',
+    output: 'tracker-needle.desktop.in',
+    configuration: conf)
+
+desktop_file = custom_target('tracker-needle-desktop-file',
+    input: desktop_file_untranslated,
+    output: 'tracker-needle.desktop',
+    command: ['intltool-merge', '--quiet', '--desktop-style', '--utf8', join_paths(meson.source_root(), 
'po'), '@INPUT@', '@OUTPUT@'],
+    install: true,
+    install_dir: join_paths(get_option('datadir'), 'applications'))
+
+install_data('tracker-needle.appdata.xml',
+    install_dir: join_paths(get_option('datadir'), 'tracker-needle.appdata.xml'))


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