[totem-pl-parser] build: honor 'includedir' meson parameter



commit a20a314473663df5c9cc0fd8ca8466e1c430d391
Author: Rasmus Thomsen <cogitri exherbo org>
Date:   Sun Aug 12 13:35:15 2018 +0100

    build: honor 'includedir' meson parameter

 plparse/meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plparse/meson.build b/plparse/meson.build
index 48b0556..bdfde9d 100644
--- a/plparse/meson.build
+++ b/plparse/meson.build
@@ -1,5 +1,7 @@
 gnome = import('gnome')
 
+includedir = join_paths(get_option('includedir'), 'totem-pl-parser/1/plparser')
+
 plparser_public_headers = [
   'totem-pl-parser.h',
   'totem-pl-playlist.h',
@@ -14,14 +16,14 @@ version_cdata.set('TOTEM_PL_PARSER_VERSION_MINOR', plparse_minor_version)
 version_cdata.set('TOTEM_PL_PARSER_VERSION_MICRO', plparse_micro_version)
 features_h = configure_file(input:  'totem-pl-parser-features.h.in',
                             output: 'totem-pl-parser-features.h',
-                            install_dir: 'include/totem-pl-parser/1/plparser',
+                            install_dir: includedir,
                             configuration: version_cdata)
 
 totem_pl_parser_builtins = gnome.mkenums('totem-pl-parser-builtins',
                                          sources: 'totem-pl-parser.h',
                                          c_template : 'totem-pl-parser-builtins.c.template',
                                          h_template : 'totem-pl-parser-builtins.h.template',
-                                         install_dir : 'include/totem-pl-parser/1/plparser',
+                                         install_dir : includedir,
                                          install_header : true)
 
 totem_pl_parser_builtins_h = totem_pl_parser_builtins[1]


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