build: add libdex-1 requirement for libsysprof-profile

Being able to manage asynchronous operations with libdex will drastically
simplify how we implement the profiler and instruments. We may eventually
do the same with libsysprof-analyze to parallelize some operations.
This commit is contained in:
Christian Hergert
2023-05-26 12:20:55 -07:00
parent 11aa39f151
commit d1bcf93922
3 changed files with 22 additions and 0 deletions

View File

@ -46,10 +46,12 @@ need_libsysprof_capture = true
need_libsysprof_profile = get_option('libsysprof') or get_option('agent')
need_libsysprof_analyze = get_option('libsysprof') or get_option('agent')
dex_req = '0.2'
glib_req = '2.76.0'
gtk_req = '4.10'
polkit_req = '0.105'
dex_req_version = '>= @0@'.format(dex_req)
glib_req_version = '>= @0@'.format(glib_req)
gtk_req_version = '>= @0@'.format(gtk_req)
polkit_req_version = '>= @0@'.format(polkit_req)

View File

@ -98,6 +98,25 @@
}
]
},
{
"name" : "libdex",
"buildsystem" : "meson",
"config-opts" : [
"--buildtype=debugoptimized",
"-Ddocs=false",
"-Dintrospection=enabled",
"-Dexamples=false",
"-Dtests=false",
"-Dsysprof=false"
],
"sources" : [
{
"type" : "git",
"url" : "https://gitlab.gnome.org/chergert/libdex.git",
"branch" : "main"
}
]
},
{
"name" : "sysprof",
"config-opts" : [

View File

@ -18,6 +18,7 @@ libsysprof_profile_public_headers = [
libsysprof_profile_deps = [
dependency('gio-2.0', version: glib_req_version),
dependency('libdex-1', version: dex_req_version),
libsysprof_capture_dep,
]