1
0
Fork 0

tests/cleanup: Stop allowing deprecated GLib API usage

We only use one deprecated API, so allow only that file to contain
deprecated APIs

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3400>
This commit is contained in:
Bilal Elmoussaoui 2023-11-15 12:16:01 +01:00
parent 7de0707dfa
commit da2771e293
5 changed files with 2 additions and 4 deletions

View file

@ -18,6 +18,8 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
/* For `g_module_build_path` usage */
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#include <gmodule.h> #include <gmodule.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -5,7 +5,6 @@ clutter_test_accessibility_common_sources = [
clutter_test_accessibility_c_args = [ clutter_test_accessibility_c_args = [
'-DPREFIXDIR="@0@"'.format(libdir), '-DPREFIXDIR="@0@"'.format(libdir),
'-DGLIB_DISABLE_DEPRECATION_WARNINGS',
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
] ]

View file

@ -4,7 +4,6 @@ clutter_tests_interactive_includepath = include_directories('.')
clutter_tests_interactive_c_args = [ clutter_tests_interactive_c_args = [
'-DTESTS_DATADIR="@0@"'.format(clutter_tests_interactive_srcdir), '-DTESTS_DATADIR="@0@"'.format(clutter_tests_interactive_srcdir),
'-DG_DISABLE_SINGLE_INCLUDES', '-DG_DISABLE_SINGLE_INCLUDES',
'-DGLIB_DISABLE_DEPRECATION_WARNINGS',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS', '-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
] ]

View file

@ -1,6 +1,5 @@
clutter_tests_micro_bench_c_args = [ clutter_tests_micro_bench_c_args = [
'-DG_DISABLE_SINGLE_INCLUDES', '-DG_DISABLE_SINGLE_INCLUDES',
'-DGLIB_DISABLE_DEPRECATION_WARNINGS',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS', '-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
] ]

View file

@ -1,7 +1,6 @@
clutter_tests_performance_c_args = [ clutter_tests_performance_c_args = [
'-DTESTS_DATA_DIR="@0@"'.format(clutter_tests_interactive_srcdir), '-DTESTS_DATA_DIR="@0@"'.format(clutter_tests_interactive_srcdir),
'-DG_DISABLE_SINGLE_INCLUDES', '-DG_DISABLE_SINGLE_INCLUDES',
'-DGLIB_DISABLE_DEPRECATION_WARNINGS',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS', '-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
] ]