meson: define G_DISABLE_DEPRECATED for development versions
authorTim-Philipp Müller <tim@centricular.com>
Fri, 10 Aug 2018 08:22:51 +0000 (09:22 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 10 Aug 2018 08:22:51 +0000 (09:22 +0100)
Like in autotools.

meson.build

index 84a07b3..9cd433e 100644 (file)
@@ -57,6 +57,11 @@ if cc.has_argument('-fno-strict-aliasing')
   add_project_arguments('-fno-strict-aliasing', language: 'c')
 endif
 
+# Define G_DISABLE_DEPRECATED for development versions
+if gst_version_minor % 2 == 1 and gst_version_micro < 90
+  add_project_arguments('-DG_DISABLE_DEPRECATED', language: 'c')
+endif
+
 cdata = configuration_data()
 cdata.set_quoted('GST_API_VERSION', apiversion)
 cdata.set_quoted('GST_DATADIR', join_paths(prefix, get_option('datadir')))