mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Drop GLib dependency
None of the code uses it any more. This means that `libsysprof-capture.a` can now be used within `libglib-2.0.so` for collecting main loop statistics. Brought to you by Opeth’s Deliverance on repeat. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #40
This commit is contained in:
@ -20,7 +20,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
@ -37,9 +37,6 @@ configure_file(
|
||||
)
|
||||
|
||||
libsysprof_capture_deps = [
|
||||
glib_dep,
|
||||
gio_dep,
|
||||
gio_unix_dep,
|
||||
dependency('threads'),
|
||||
]
|
||||
|
||||
@ -70,7 +67,6 @@ pkgconfig.generate(
|
||||
filebase: 'sysprof-capture-@0@'.format(libsysprof_api_version),
|
||||
description: 'The static capture library for tools that generate profiling capture data',
|
||||
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
||||
requires: [ 'glib-2.0' ],
|
||||
variables: [
|
||||
'datadir=' + datadir_for_pc_file,
|
||||
],
|
||||
|
||||
@ -58,7 +58,6 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <endian.h>
|
||||
#include <glib.h>
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@ -56,8 +56,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __linux__
|
||||
# include <sys/sendfile.h>
|
||||
#endif
|
||||
|
||||
@ -58,7 +58,6 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <glib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
@ -58,7 +58,6 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -64,7 +64,6 @@
|
||||
#include <endian.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@ -56,8 +56,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#define SYSPROF_CAPTURE_INSIDE
|
||||
|
||||
# include "sysprof-address.h"
|
||||
|
||||
@ -56,7 +56,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
|
||||
|
||||
@ -56,8 +56,6 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@ -56,8 +56,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "sysprof-version.h"
|
||||
|
||||
#ifndef _SYSPROF_EXTERN
|
||||
|
||||
Reference in New Issue
Block a user