mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-03-25 06:31:27 +00:00
tree: start on massive tree refactor
The big thing going on here is that we are going to split up the libraries a bit better, and remove GObject from the capture library. The libsysprof library will bring in the capture library statically, so we can export the symbols we want. Eventually, we will bump the version to sysprof-3, but not yet.
This commit is contained in:
@ -1,6 +1,3 @@
|
||||
datadir = get_option('datadir')
|
||||
podir = join_paths(meson.source_root(), 'po')
|
||||
|
||||
install_data('sysprof-mime.xml',
|
||||
install_dir: join_paths(datadir, 'mime/packages')
|
||||
)
|
||||
@ -10,53 +7,23 @@ install_data('org.gnome.sysprof2.gschema.xml',
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
input: 'org.gnome.Sysprof2.appdata.xml.in',
|
||||
output: 'org.gnome.Sysprof2.appdata.xml',
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
input: 'org.gnome.Sysprof2.appdata.xml.in',
|
||||
output: 'org.gnome.Sysprof2.appdata.xml',
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'metainfo')
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
input: 'org.gnome.Sysprof2.desktop.in',
|
||||
output: 'org.gnome.Sysprof2.desktop',
|
||||
type: 'desktop',
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
input: 'org.gnome.Sysprof2.desktop.in',
|
||||
output: 'org.gnome.Sysprof2.desktop',
|
||||
type: 'desktop',
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'applications')
|
||||
)
|
||||
|
||||
pkgconf = configuration_data()
|
||||
pkgconf.set('VERSION', meson.project_version())
|
||||
pkgconf.set('API_VERSION', libsysprof_api_version)
|
||||
pkgconf.set('prefix', get_option('prefix'))
|
||||
pkgconf.set('libdir', join_paths('${exec_prefix}', get_option('libdir')))
|
||||
pkgconf.set('includedir', join_paths('${prefix}', get_option('includedir')))
|
||||
|
||||
pkgconfigdir = join_paths(get_option('libdir'), 'pkgconfig')
|
||||
configure_file(
|
||||
input: 'sysprof.pc.in',
|
||||
output: 'sysprof-@0@.pc'.format(libsysprof_api_version),
|
||||
configuration: pkgconf,
|
||||
install: true,
|
||||
install_dir: pkgconfigdir,
|
||||
)
|
||||
configure_file(
|
||||
input: 'sysprof-capture.pc.in',
|
||||
output: 'sysprof-capture-@0@.pc'.format(libsysprof_api_version),
|
||||
configuration: pkgconf,
|
||||
install: true,
|
||||
install_dir: pkgconfigdir,
|
||||
)
|
||||
if get_option('enable_gtk')
|
||||
configure_file(
|
||||
input: 'sysprof-ui.pc.in',
|
||||
output: 'sysprof-ui-@0@.pc'.format(libsysprof_api_version),
|
||||
configuration: pkgconf,
|
||||
install: true,
|
||||
install_dir: pkgconfigdir,
|
||||
)
|
||||
|
||||
icon_sizes = ['scalable', 'symbolic']
|
||||
foreach size: icon_sizes
|
||||
install_subdir('icons/' + size,
|
||||
@ -64,45 +31,3 @@ if get_option('enable_gtk')
|
||||
)
|
||||
endforeach
|
||||
endif
|
||||
|
||||
if get_option('with_sysprofd') == 'bundled'
|
||||
|
||||
sysprofdconf = configuration_data()
|
||||
sysprofdconf.set('sysprofdprivdir', pkglibexecdir)
|
||||
|
||||
configure_file(
|
||||
input: 'org.gnome.Sysprof2.service.in',
|
||||
output: 'org.gnome.Sysprof2.service',
|
||||
configuration: sysprofdconf,
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'dbus-1/system-services'),
|
||||
)
|
||||
configure_file(
|
||||
input: 'org.gnome.Sysprof2.conf.in',
|
||||
output: 'org.gnome.Sysprof2.conf',
|
||||
configuration: sysprofdconf,
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'dbus-1/system.d'),
|
||||
)
|
||||
|
||||
systemdunitdir = get_option('systemdunitdir')
|
||||
if systemdunitdir == ''
|
||||
systemdunitdir = dependency('systemd').get_pkgconfig_variable('systemdsystemunitdir')
|
||||
endif
|
||||
configure_file(
|
||||
input: 'sysprof2.service.in',
|
||||
output: 'sysprof2.service',
|
||||
configuration: sysprofdconf,
|
||||
install: true,
|
||||
install_dir: systemdunitdir,
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
input: 'org.gnome.sysprof2.policy.in',
|
||||
output: 'org.gnome.sysprof2.policy',
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'polkit-1/actions'),
|
||||
)
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user