diff options
author | Christian Hergert <chergert@redhat.com> | 2019-06-06 16:19:36 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2019-06-06 17:17:20 -0700 |
commit | ef67eb0b3cc76f54c328bcf6dceafc9a4571a212 (patch) | |
tree | 6d0f697326dbf6c473e7c6f680576a20f958b486 /configure.ac | |
parent | 3db1681c7670709f4257e43c204830eb5399b48d (diff) | |
download | gtk+-ef67eb0b3cc76f54c328bcf6dceafc9a4571a212.tar.gz |
gdk: backport GdkProfiler
This is a backport of the GdkProfiler from master. It does not include
the pixel bandwidth numbers that come from gdkdrawcontext.c since there
does not seem to be an analog in 3.x.
Additionally, this implements the recent changes for SYsprof's D-Bus
profiler API which adds a Capabilities property and an options hash-table
to the D-Bus interface for forward portability.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index afb02faea6..323ca92125 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,7 @@ m4_define([mirclient_required_version], [0.22.0]) m4_define([mircookie_required_version], [0.17.0]) m4_define([epoxy_required_version], [1.4]) m4_define([cloudproviders_required_version], [0.2.5]) +m4_define([sysprof_required_version], [3.33.2]) GLIB_REQUIRED_VERSION=glib_required_version PANGO_REQUIRED_VERSION=pango_required_version ATK_REQUIRED_VERSION=atk_required_version @@ -353,6 +354,11 @@ AC_ARG_ENABLE(cloudproviders, [enable libcloudproviders integration])], [cloudproviders_set=yes]) +AC_ARG_ENABLE(profiler, + [AS_HELP_STRING([--enable-profiler], + [enable profiler integration])], + [profiler_set=yes]) + if test -z "$backend_set"; then if test "$platform_win32" = yes; then enable_win32_backend=yes @@ -1334,11 +1340,26 @@ if test "x$cloudproviders_set" = "xyes"; then fi fi +# Check for profiler support + +PROFILER_PACKAGES="" +if test "x$profiler_set" = "xyes"; then + PROFILER_PACKAGES="sysprof-capture-3 >= sysprof_required_version" + if $PKG_CONFIG --exists $PROFILER_PACKAGES; then + AC_DEFINE(HAVE_SYSPROF_CAPTURE, [1], + [Define if sysprof-capture-3 is available] + ) + else + AC_MSG_ERROR([ +*** sysprof-capture-3 not found.]) + fi +fi + CFLAGS="$saved_cflags" LDFLAGS="$saved_ldflags" GDK_PACKAGES="$PANGO_PACKAGES gdk-pixbuf-2.0 >= gdk_pixbuf_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version" -GDK_PRIVATE_PACKAGES="$GDK_GIO_PACKAGE $X_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES $cairo_backends epoxy >= epoxy_required_version $CLOUDPROVIDER_PACKAGES fribidi >= fribidi_required_version" +GDK_PRIVATE_PACKAGES="$GDK_GIO_PACKAGE $X_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES $cairo_backends epoxy >= epoxy_required_version $CLOUDPROVIDER_PACKAGES $PROFILER_PACKAGES fribidi >= fribidi_required_version" PKG_CHECK_MODULES(GDK_DEP, $GDK_PACKAGES $GDK_PRIVATE_PACKAGES) GDK_DEP_LIBS="$GDK_EXTRA_LIBS $GDK_DEP_LIBS $MATH_LIB" @@ -2012,3 +2033,4 @@ echo " colord support: $have_colord" echo " Introspection: $found_introspection" echo " Debugging: $enable_debug" echo " Documentation: $enable_gtk_doc" +echo " Profiler: $enable_profiler" |