cleanup: Stop allowing deprecated Cogl API usage

Allow only specific files to use those deprecated APIs making
it easier to find where deprecated APIs are still in use
and avoid introducing new usages without being noticed

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

View File

@ -112,6 +112,8 @@
#include "config.h"
#define COGL_DISABLE_DEPRECATION_WARNINGS
#include "cogl/cogl.h"
#include "clutter/clutter-shader-effect.h"

View File

@ -17,6 +17,8 @@
#include "config.h"
#define COGL_DISABLE_DEPRECATION_WARNINGS
#include "clutter/clutter-stage-view.h"
#include "clutter/clutter-stage-view-private.h"

View File

@ -303,7 +303,6 @@ if have_introspection
clutter_introspection_args = introspection_args + [
'-DCLUTTER_SYSCONFDIR="@0@"'.format(prefix / sysconfdir),
'-DCLUTTER_COMPILATION=1',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DG_LOG_DOMAIN="Clutter"'
]

View File

@ -7,7 +7,6 @@ clutter_includes = [clutter_includepath, cogl_includepath]
clutter_c_args = [
'-DCLUTTER_SYSCONFDIR="@0@"'.format(prefix / sysconfdir),
'-DCLUTTER_COMPILATION=1',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DCOGL_ENABLE_MUTTER_API',
'-DG_LOG_DOMAIN="Clutter"',
]

View File

@ -50,7 +50,6 @@ if have_introspection
mtk_introspection_args = introspection_args + [
'-DMTK_SYSCONFDIR="@0@"'.format(prefix / sysconfdir),
'-DMTK_COMPILATION=1',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DG_LOG_DOMAIN="Mtk"'
]

View File

@ -25,6 +25,8 @@
* Emmanuele Bassi
*/
#define COGL_DISABLE_DEPRECATION_WARNINGS
#include "config.h"
#include "backends/meta-stage-impl-private.h"

View File

@ -177,7 +177,6 @@ mutter_deps = [
mutter_c_args = [
'-DCOGL_ENABLE_MUTTER_API',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DSN_API_NOT_YET_FROZEN=1',
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
]

View File

@ -1,6 +1,5 @@
clutter_tests_conform_c_args = [
'-DG_LOG_DOMAIN="Clutter-Conform"',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
]
clutter_tests_conform_c_args += clutter_debug_c_args

View File

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

View File

@ -1,3 +1,5 @@
#define COGL_DISABLE_DEPRECATION_WARNINGS
#include <clutter/clutter.h>
#include <errno.h>

View File

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

View File

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

View File

@ -58,8 +58,6 @@ cogl_test_conformance_includes = [
cogl_test_c_args = [
cogl_debug_c_args,
'-DCOGL_DISABLE_DEPRECATED',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DTESTS_DATADIR="@0@/tests/data"'.format(cogl_srcdir),
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
]

View File

@ -1,3 +1,5 @@
#define COGL_DISABLE_DEPRECATION_WARNINGS
#include <cogl/cogl.h>
#include <string.h>

View File

@ -1,3 +1,5 @@
#define COGL_DISABLE_DEPRECATION_WARNINGS
#include <cogl/cogl.h>
#include <string.h>

View File

@ -28,8 +28,6 @@ foreach unit_test: cogl_unit_tests
c_args: [
'-D__COGL_H_INSIDE__',
'-DCOGL_ENABLE_MUTTER_API',
'-DCOGL_DISABLE_DEPRECATED',
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
],
include_directories: [
cogl_includepath,