libsysprof: fix flags get type generation

This commit is contained in:
Christian Hergert
2023-07-20 11:24:04 -07:00
parent c3918bc261
commit 5afb315be5
3 changed files with 16 additions and 3 deletions

View File

@ -143,6 +143,19 @@ if host_machine.system() == 'linux'
libsysprof_private_sources += ['sysprof-linux-instrument.c']
endif
libsysprof_enum_headers = [
'sysprof-callgraph.h',
]
libsysprof_enums = gnome.mkenums_simple('sysprof-enums',
body_prefix: '#include "config.h"',
header_prefix: '#include "sysprof-version-macros.h"',
decorator: '_SYSPROF_EXTERN',
sources: libsysprof_enum_headers,
install_header: true,
install_dir: sysprof_header_dir,
)
libsysprof_deps = [
dependency('gio-2.0', version: glib_req_version),
dependency('gio-unix-2.0',
@ -163,7 +176,8 @@ libsysprof_deps = [
libsysprof_static = static_library(
'sysprof-analyze-@0@'.format(soname_major_version),
libsysprof_public_sources +
libsysprof_private_sources,
libsysprof_private_sources +
libsysprof_enums[0],
include_directories: [include_directories('.'),
libsysprof_capture_include_dirs],

View File

@ -70,8 +70,6 @@ typedef enum _SysprofCallgraphFlags
SYSPROF_CALLGRAPH_FLAGS_BOTTOM_UP = 1 << 3,
} SysprofCallgraphFlags;
SYSPROF_AVAILABLE_IN_ALL
GType sysprof_callgraph_flags_get_type (void) G_GNUC_CONST;
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_callgraph_list_symbols (SysprofCallgraph *self);
SYSPROF_AVAILABLE_IN_ALL

View File

@ -1,4 +1,5 @@
sysprof_header_subdir = 'sysprof-@0@'.format(libsysprof_api_version)
sysprof_header_dir = join_paths(get_option('includedir'), sysprof_header_subdir)
sysprof_version_conf = configuration_data()
sysprof_version = meson.project_version().split('.')