build: only install some files when option is enabled

Fixes #16
This commit is contained in:
Christian Hergert
2019-10-15 14:49:57 -07:00
parent b7e2601a93
commit 189505be64
2 changed files with 36 additions and 27 deletions

View File

@ -25,11 +25,18 @@ ipc_legacy_src = gnome.gdbus_codegen('ipc-legacy',
namespace: 'IpcLegacy',
)
install_data(['org.gnome.Sysprof3.Profiler.xml',
'org.gnome.Sysprof3.Service.xml',
'org.gnome.Sysprof2.xml'],
install_dir: join_paths(datadir, 'dbus-1/interfaces'),
)
if get_option('with_sysprofd') == 'bundled'
install_data(['org.gnome.Sysprof3.Service.xml',
'org.gnome.Sysprof2.xml'],
install_dir: join_paths(datadir, 'dbus-1/interfaces'),
)
endif
if get_option('libsysprof')
install_data(['org.gnome.Sysprof3.Profiler.xml'],
install_dir: join_paths(datadir, 'dbus-1/interfaces'),
)
endif
ipc_include_dirs = include_directories('.')