summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2020-03-09 15:10:03 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2020-03-09 15:10:03 +0100
commit6d1b3ed5370b133773b4ffe2d25c61bfbc36d06f (patch)
tree3e79a94586bb4ff9b7ae32ec1f5be1ed6f6a5432 /examples
parent16c3fac2db48f4019ed5ab75517b3f2239f1ec15 (diff)
downloadglibmm-6d1b3ed5370b133773b4ffe2d25c61bfbc36d06f.tar.gz
examples, tests: Disable deprecated API when building with Meson
Deprecated GLIBMM and GIOMM API are disabled when example programs and test programs are built with Autotools. Do the same when building with Meson.
Diffstat (limited to 'examples')
-rw-r--r--examples/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/meson.build b/examples/meson.build
index a6c6c613..18c0d832 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -62,6 +62,7 @@ foreach ex : examples
endforeach
executable(ex_name, ex_sources,
+ cpp_args: ['-DGLIBMM_DISABLE_DEPRECATED', '-DGIOMM_DISABLE_DEPRECATED'],
dependencies: ex[3] ? giomm_dep : glibmm_dep,
gui_app: false,
build_by_default: build_examples,