cogl: Replace HAVE_TRACING with COGL_HAS_TRACING

The former was only used in the .c file, everything else uses the latter.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3313>
This commit is contained in:
Ivan Molodetskikh 2023-10-04 07:32:30 +04:00
parent a8aa7bae10
commit ad3c40cbd0
3 changed files with 2 additions and 6 deletions

View File

@ -4,9 +4,6 @@
/* Have GLES 2.0 for rendering */ /* Have GLES 2.0 for rendering */
#mesondefine HAVE_COGL_GLES2 #mesondefine HAVE_COGL_GLES2
/* Building with Sysprof profiling support */
#mesondefine HAVE_TRACING
/* Enable unit tests */ /* Enable unit tests */
#mesondefine ENABLE_UNIT_TESTS #mesondefine ENABLE_UNIT_TESTS

View File

@ -29,7 +29,7 @@
#include "cogl/cogl-trace.h" #include "cogl/cogl-trace.h"
#ifdef HAVE_TRACING #ifdef COGL_HAS_TRACING
#include <sysprof-capture.h> #include <sysprof-capture.h>
#include <sysprof-capture-writer.h> #include <sysprof-capture-writer.h>
@ -377,4 +377,4 @@ cogl_set_tracing_disabled_on_thread (void *data)
fprintf (stderr, "Tracing not enabled"); fprintf (stderr, "Tracing not enabled");
} }
#endif /* HAVE_TRACING */ #endif /* COGL_HAS_TRACING */

View File

@ -7,7 +7,6 @@ cogl_includepath = [mtk_includepath, include_directories('.', 'cogl')]
cdata = configuration_data() cdata = configuration_data()
cdata.set('HAVE_COGL_GL', have_gl) cdata.set('HAVE_COGL_GL', have_gl)
cdata.set('HAVE_COGL_GLES2', have_gles2) cdata.set('HAVE_COGL_GLES2', have_gles2)
cdata.set('HAVE_TRACING', have_profiler)
cdata.set('ENABLE_UNIT_TESTS', have_cogl_tests) cdata.set('ENABLE_UNIT_TESTS', have_cogl_tests)
cogl_config_h = configure_file( cogl_config_h = configure_file(