Actually apply deprecation flags. meson

Thu, 22 Jun 2017 21:56:44 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Thu, 22 Jun 2017 21:56:44 -0400
branch
meson
changeset 38524
4b665cbc6aa7
parent 38523
2457e9c0f5de
child 38525
ad2a76edf6af

Actually apply deprecation flags.

meson.build file | annotate | diff | comparison | revisions
--- a/meson.build	Thu Jun 22 21:55:07 2017 -0400
+++ b/meson.build	Thu Jun 22 21:56:44 2017 -0400
@@ -1010,7 +1010,12 @@
     compiler.has_function('uname'))
 
 
-DEBUG_CFLAGS = '-DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED'
+add_project_arguments(
+    '-DPURPLE_DISABLE_DEPRECATED',
+    '-DPIDGIN_DISABLE_DEPRECATED',
+    '-DFINCH_DISABLE_DEPRECATED',
+    '-DGNT_DISABLE_DEPRECATED',
+    language : 'c')
 if compiler.get_id() == 'gcc'
 	# We enable -Wall later.
 	# If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.

mercurial