meson: don't need config.h.meson any more
authorTim-Philipp Müller <tim@centricular.com>
Sun, 21 May 2017 13:26:01 +0000 (14:26 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 21 May 2017 13:31:56 +0000 (14:31 +0100)
Meson does the largefile support automatically nowadays, and
can generate a config.h from configuration_data() without a
template as input.

Makefile.am
gst/meson.build
meson.build

index 2120ad1..de057c4 100644 (file)
@@ -38,7 +38,7 @@ EXTRA_DIST = \
        $(shell find "$(top_srcdir)" -type f -name meson.build ! -path "$(top_srcdir)/gstreamer-*" ) \
        gst/gstenumtypes.c.template gst/gstenumtypes.h.template \
        libs/gst/controller/controller_mkenum.py \
-       meson_options.txt config.h.meson  \
+       meson_options.txt \
        gst/parse/gen_lex.py.in gst/parse/gen_grammar.py.in \
        $(win32)
 
index effb6cb..d57757e 100644 (file)
@@ -162,10 +162,17 @@ configure_file(input : 'gstconfig.h.in',
   output : 'gstconfig.h',
   install_dir : 'include/gstreamer-1.0/gst',
   configuration : gst_cdata)
+
+version_cdata = configuration_data()
+version_cdata.set('GST_VERSION_MAJOR', gst_version_major)
+version_cdata.set('GST_VERSION_MINOR', gst_version_minor)
+version_cdata.set('GST_VERSION_MICRO', gst_version_micro)
+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',
-  configuration : gst_cdata)
+  configuration : version_cdata)
 
 gst_enums = gnome.mkenums('gstenumtypes',
   sources : gst_headers,
index 83c34cc..fe8cee5 100644 (file)
@@ -49,10 +49,6 @@ elif cc.has_argument('-Wl,-Bsymbolic-functions')
 endif
 
 cdata = configuration_data()
-cdata.set('GST_VERSION_MAJOR', gst_version_major)
-cdata.set('GST_VERSION_MINOR', gst_version_minor)
-cdata.set('GST_VERSION_MICRO', gst_version_micro)
-cdata.set('GST_VERSION_NANO', gst_version_nano)
 cdata.set('GST_API_VERSION', '"@0@"'.format(apiversion))
 cdata.set('GST_DATADIR', '"@0@/@1@"'.format(prefix, get_option('datadir')))
 cdata.set('LOCALEDIR', '"@0@/@1@"'.format(prefix, get_option('localedir')))
@@ -430,9 +426,7 @@ subdir('tests')
 subdir('po')
 subdir('data')
 
-configure_file(input : 'config.h.meson',
-  output : 'config.h',
-  configuration : cdata)
+configure_file(output : 'config.h', configuration : cdata)
 
 if build_machine.system() == 'windows'
   message('Disabling gtk-doc while building on Windows')