diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2020-03-09 15:10:03 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2020-03-09 15:10:03 +0100 |
commit | 6d1b3ed5370b133773b4ffe2d25c61bfbc36d06f (patch) | |
tree | 3e79a94586bb4ff9b7ae32ec1f5be1ed6f6a5432 | |
parent | 16c3fac2db48f4019ed5ab75517b3f2239f1ec15 (diff) | |
download | glibmm-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.
-rw-r--r-- | examples/meson.build | 1 | ||||
-rw-r--r-- | tests/meson.build | 1 |
2 files changed, 2 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, diff --git a/tests/meson.build b/tests/meson.build index 1f4f6bae..14d67e7a 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -53,6 +53,7 @@ foreach ex : test_programs endforeach exe_file = 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: true, |