mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: add meson subproject with libdazzle.wrap
When building on older systems such as RHEL 7, it can be convenient to have access to libdazzle directly. This also has to work around a problem that RHEL 7 does not support the version of git that Meson requires for [wrap-git] by using a specific release.
This commit is contained in:
@ -57,7 +57,7 @@ gio_unix_dep = dependency('gio-unix-2.0', version: glib_req_version)
|
||||
|
||||
if get_option('enable_gtk')
|
||||
gtk_dep = dependency('gtk+-3.0', version: gtk_req_version)
|
||||
dazzle_dep = dependency('libdazzle-1.0', version: dazzle_req_version)
|
||||
dazzle_dep = dependency('libdazzle-1.0', version: dazzle_req_version, fallback: ['libdazzle', 'libdazzle_dep'])
|
||||
endif
|
||||
|
||||
polkit_dep = dependency('polkit-gobject-1', version: '>= 0.114', required: false)
|
||||
@ -108,7 +108,7 @@ if has_use_clockid and has_clockid
|
||||
config_h.set10('HAVE_PERF_CLOCKID', true)
|
||||
endif
|
||||
|
||||
add_global_arguments([
|
||||
add_project_arguments([
|
||||
'-I' + meson.build_root(), # config.h
|
||||
], language: 'c')
|
||||
|
||||
|
||||
5
subprojects/libdazzle.wrap
Normal file
5
subprojects/libdazzle.wrap
Normal file
@ -0,0 +1,5 @@
|
||||
[wrap-file]
|
||||
directory=libdazzle-3.35.3
|
||||
source_url=https://download.gnome.org/sources/libdazzle/3.35/libdazzle-3.35.3.tar.xz
|
||||
source_filename=libdazzle-3.35.3.tar.xz
|
||||
source_hash=df67f7a68096e4b33a70ee0bad14cd8a6778425deb087879b5cd8fef8f671304
|
||||
Reference in New Issue
Block a user