mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
Merge branch 'datadir-in-pc' into 'master'
build: add datadir to pkgconfig files See merge request GNOME/sysprof!19
This commit is contained in:
@ -15,6 +15,7 @@ i18n = import('i18n')
|
|||||||
libsysprof_api_version = 3
|
libsysprof_api_version = 3
|
||||||
version_split = meson.project_version().split('.')
|
version_split = meson.project_version().split('.')
|
||||||
datadir = get_option('datadir')
|
datadir = get_option('datadir')
|
||||||
|
datadir_for_pc_file = join_paths('${prefix}', datadir)
|
||||||
podir = join_paths(meson.source_root(), 'po')
|
podir = join_paths(meson.source_root(), 'po')
|
||||||
|
|
||||||
glib_req_version = '>= 2.61.3'
|
glib_req_version = '>= 2.61.3'
|
||||||
|
|||||||
@ -64,4 +64,7 @@ pkgconfig.generate(
|
|||||||
description: 'The static capture library for tools that generate profiling capture data',
|
description: 'The static capture library for tools that generate profiling capture data',
|
||||||
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
||||||
requires: [ 'glib-2.0' ],
|
requires: [ 'glib-2.0' ],
|
||||||
|
variables: [
|
||||||
|
'datadir=' + datadir_for_pc_file,
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@ -114,6 +114,9 @@ pkgconfig.generate(
|
|||||||
description: 'The UI library for GTK applications embedding sysprof',
|
description: 'The UI library for GTK applications embedding sysprof',
|
||||||
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
||||||
requires: [ 'gio-2.0', 'gtk+-3.0' ],
|
requires: [ 'gio-2.0', 'gtk+-3.0' ],
|
||||||
|
variables: [
|
||||||
|
'datadir=' + datadir_for_pc_file,
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
install_headers(libsysprof_ui_public_headers, subdir: sysprof_header_subdir)
|
install_headers(libsysprof_ui_public_headers, subdir: sysprof_header_subdir)
|
||||||
|
|||||||
@ -138,6 +138,9 @@ pkgconfig.generate(
|
|||||||
description: 'The library for console applications embedding sysprof',
|
description: 'The library for console applications embedding sysprof',
|
||||||
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
||||||
requires: [ 'gio-2.0' ],
|
requires: [ 'gio-2.0' ],
|
||||||
|
variables: [
|
||||||
|
'datadir=' + datadir_for_pc_file,
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
install_headers(libsysprof_public_headers, subdir: sysprof_header_subdir)
|
install_headers(libsysprof_public_headers, subdir: sysprof_header_subdir)
|
||||||
|
|||||||
Reference in New Issue
Block a user