diff --git a/src/libsysprof/meson.build b/src/libsysprof/meson.build index 7908c562..c0e0f78f 100644 --- a/src/libsysprof/meson.build +++ b/src/libsysprof/meson.build @@ -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], diff --git a/src/libsysprof/sysprof-callgraph.h b/src/libsysprof/sysprof-callgraph.h index 04dc44bf..1833d005 100644 --- a/src/libsysprof/sysprof-callgraph.h +++ b/src/libsysprof/sysprof-callgraph.h @@ -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 diff --git a/src/meson.build b/src/meson.build index 01849e8f..c5afe9d4 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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('.')