2017-07-25 22:28:38 +02:00
|
|
|
service_conf = configuration_data()
|
|
|
|
service_conf.set('libexecdir', control_center_libexecdir)
|
|
|
|
|
|
|
|
service = 'org.gnome.ControlCenter.SearchProvider.service'
|
|
|
|
|
|
|
|
configure_file(
|
2018-05-03 00:45:29 -03:00
|
|
|
input : service + '.in',
|
|
|
|
output : service,
|
|
|
|
install : true,
|
|
|
|
install_dir : join_paths(control_center_datadir, 'dbus-1', 'services'),
|
|
|
|
configuration : service_conf
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
install_data(
|
|
|
|
'gnome-control-center-search-provider.ini',
|
|
|
|
install_dir: join_paths(control_center_datadir, 'gnome-shell', 'search-providers')
|
|
|
|
)
|
|
|
|
|
|
|
|
sources = files(
|
|
|
|
'cc-search-provider.c',
|
|
|
|
'control-center-search-provider.c'
|
|
|
|
)
|
|
|
|
|
|
|
|
# The upstream for the DBus interface definition is
|
|
|
|
# at http://git.gnome.org/browse/gnome-shell/plain/data/org.gnome.ShellSearchProvider2.xml
|
|
|
|
sources += gnome.gdbus_codegen(
|
|
|
|
'cc-shell-search-provider-generated',
|
|
|
|
'org.gnome.ShellSearchProvider2.xml',
|
2018-05-03 00:45:29 -03:00
|
|
|
interface_prefix : 'org.gnome.',
|
|
|
|
namespace : 'Cc'
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
cflags = '-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)
|
|
|
|
|
|
|
|
libs = [
|
|
|
|
libpanel_loader,
|
|
|
|
libshell
|
|
|
|
]
|
|
|
|
|
|
|
|
executable(
|
2018-05-03 00:45:29 -03:00
|
|
|
'gnome-control-center-search-provider',
|
|
|
|
sources,
|
|
|
|
include_directories : top_inc,
|
|
|
|
dependencies : shell_deps,
|
|
|
|
c_args : cflags,
|
|
|
|
link_with : libs,
|
|
|
|
install : true,
|
|
|
|
install_dir : control_center_libexecdir
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|