[glibmm] examples, tests: Disable deprecated API when building with Meson
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] examples, tests: Disable deprecated API when building with Meson
- Date: Mon, 9 Mar 2020 14:12:21 +0000 (UTC)
commit 6d1b3ed5370b133773b4ffe2d25c61bfbc36d06f
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Mon Mar 9 15:10:03 2020 +0100
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.
examples/meson.build | 1 +
tests/meson.build | 1 +
2 files changed, 2 insertions(+)
---
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]