gstreamer: fix install dir for configure files
authorBastian Köcher <git@kchr.de>
Sun, 1 Apr 2018 14:06:26 +0000 (16:06 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 7 Jul 2018 10:42:17 +0000 (12:42 +0200)
Nixos installs into a non-standard includedir.

https://bugzilla.gnome.org/show_bug.cgi?id=794856

gst/meson.build
libs/gst/check/meson.build
libs/gst/controller/meson.build

index fda4f7f..33a985a 100644 (file)
@@ -182,7 +182,7 @@ gst_cdata.set('GST_DISABLE_PLUGIN_DEFINE', '#undef GST_DISABLE_PLUGIN')
 
 configure_file(input : 'gstconfig.h.in',
   output : 'gstconfig.h',
-  install_dir : 'include/gstreamer-1.0/gst',
+  install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst'),
   configuration : gst_cdata)
 
 version_cdata = configuration_data()
@@ -193,7 +193,7 @@ version_cdata.set('GST_VERSION_NANO', gst_version_nano)
 
 gst_version_h = configure_file(input : 'gstversion.h.in',
   output : 'gstversion.h',
-  install_dir : 'include/gstreamer-1.0/gst',
+  install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst'),
   configuration : version_cdata)
 
 gst_enums = gnome.mkenums_simple('gstenumtypes',
index d6e8d21..13109f8 100644 (file)
@@ -34,7 +34,7 @@ subdir('libcheck')
 configure_file(input : 'libcheck/check.h.in',
   output : 'internal-check.h',
   install : true,
-  install_dir : 'include/gstreamer-1.0/gst/check/',
+  install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/check'),
   configuration : check_cdata)
 
 gst_check = shared_library('gstcheck-@0@'.format(apiversion),
index 4c0c924..6ef2769 100644 (file)
@@ -31,7 +31,7 @@ controller_enums = gnome.mkenums_simple('controller-enumtypes',
   header_prefix : '#include <gst/controller/controller-prelude.h>',
   decorator : 'GST_CONTROLLER_API',
   install_header : true,
-  install_dir : 'include/gstreamer-1.0/gst/controller/')
+  install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/controller'))
 gstcontroller_c = controller_enums[0]
 gstcontroller_h = controller_enums[1]