2017-07-25 22:28:38 +02:00
|
|
|
subdir('appdata')
|
|
|
|
subdir('completions')
|
|
|
|
|
|
|
|
service_conf = configuration_data()
|
|
|
|
service_conf.set('bindir', control_center_bindir)
|
|
|
|
|
|
|
|
service = 'org.gnome.ControlCenter.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
|
|
|
)
|
|
|
|
|
|
|
|
desktop = 'gnome-control-center.desktop'
|
|
|
|
|
|
|
|
desktop_in = configure_file(
|
2018-05-03 00:45:29 -03:00
|
|
|
input : desktop + '.in.in',
|
|
|
|
output : desktop + '.in',
|
|
|
|
configuration : desktop_conf
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
2017-09-11 22:05:40 +02:00
|
|
|
i18n.merge_file(
|
2018-05-03 00:45:29 -03:00
|
|
|
desktop,
|
|
|
|
type : 'desktop',
|
|
|
|
input : desktop_in,
|
|
|
|
output : desktop,
|
|
|
|
po_dir : po_dir,
|
|
|
|
install : true,
|
|
|
|
install_dir : control_center_desktopdir
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
cflags = ['-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)]
|
|
|
|
|
|
|
|
libshell = static_library(
|
2018-05-03 00:45:29 -03:00
|
|
|
'shell',
|
|
|
|
sources : 'cc-shell-model.c',
|
|
|
|
include_directories : [top_inc, common_inc],
|
|
|
|
dependencies : common_deps,
|
|
|
|
c_args : cflags
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
2018-04-06 13:38:40 +02:00
|
|
|
sources = files(
|
2017-07-25 22:28:38 +02:00
|
|
|
'cc-application.c',
|
2018-04-06 23:18:26 -03:00
|
|
|
'cc-log.c',
|
2018-03-27 17:48:08 -03:00
|
|
|
'cc-object-storage.c',
|
2017-07-25 22:28:38 +02:00
|
|
|
'cc-panel-loader.c',
|
|
|
|
'cc-panel.c',
|
|
|
|
'cc-shell-category-view.c',
|
|
|
|
'cc-shell-item-view.c',
|
|
|
|
'cc-shell.c',
|
|
|
|
'main.c'
|
|
|
|
)
|
|
|
|
|
|
|
|
resource_data = files(
|
|
|
|
'help-overlay.ui',
|
|
|
|
'panel-list.ui',
|
|
|
|
'window.ui'
|
|
|
|
)
|
|
|
|
|
2018-04-06 13:38:40 +02:00
|
|
|
sources += gnome.compile_resources(
|
2017-07-25 22:28:38 +02:00
|
|
|
'resources',
|
|
|
|
meson.project_name() + '.gresource.xml',
|
|
|
|
dependencies: resource_data,
|
|
|
|
export: true
|
|
|
|
)
|
|
|
|
|
2018-04-06 13:38:40 +02:00
|
|
|
sources += files(
|
2017-07-25 22:28:38 +02:00
|
|
|
'cc-panel-list.c',
|
|
|
|
'cc-window.c'
|
|
|
|
)
|
|
|
|
|
|
|
|
shell_deps = common_deps + [
|
|
|
|
libdevice_dep,
|
|
|
|
liblanguage_dep,
|
2018-04-06 13:38:40 +02:00
|
|
|
libwidgets_dep,
|
2017-07-25 22:28:38 +02:00
|
|
|
x11_dep
|
|
|
|
]
|
|
|
|
|
|
|
|
if enable_cheese
|
|
|
|
shell_deps += cheese_deps
|
|
|
|
endif
|
|
|
|
|
2018-01-23 12:21:21 +01:00
|
|
|
if host_is_linux_not_s390
|
2017-07-25 22:28:38 +02:00
|
|
|
shell_deps += wacom_deps
|
|
|
|
endif
|
|
|
|
|
2018-04-06 23:18:26 -03:00
|
|
|
# Debug
|
|
|
|
debug_conf = configuration_data()
|
|
|
|
debug_conf.set('BUGREPORT_URL', 'http://bugzilla.gnome.org/enter_bug.cgi?product=' + meson.project_name())
|
|
|
|
debug_conf.set10('ENABLE_TRACING', enable_tracing)
|
|
|
|
|
|
|
|
sources += configure_file(
|
2018-05-03 00:45:29 -03:00
|
|
|
input : 'cc-debug.h.in',
|
|
|
|
output : 'cc-debug.h',
|
|
|
|
configuration : debug_conf
|
2018-04-06 23:18:26 -03:00
|
|
|
)
|
|
|
|
|
2017-07-25 22:28:38 +02:00
|
|
|
executable(
|
|
|
|
meson.project_name(),
|
2018-05-03 00:45:29 -03:00
|
|
|
sources,
|
|
|
|
include_directories : top_inc,
|
|
|
|
dependencies : shell_deps,
|
|
|
|
c_args : cflags,
|
|
|
|
link_with : panels_libs + [libshell],
|
|
|
|
install : true
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# Because it is confusing and somewhat problematic to directly add and compile
|
|
|
|
# cc-panel-loader.o by another directory (i.e. the shell search provider), we
|
|
|
|
# have to create a library and link it there, just like libshell.la.
|
|
|
|
libpanel_loader = static_library(
|
2018-05-03 00:45:29 -03:00
|
|
|
'panel_loader',
|
|
|
|
sources : 'cc-panel-loader.c',
|
|
|
|
include_directories : top_inc,
|
|
|
|
dependencies : common_deps,
|
|
|
|
c_args : cflags + ['-DCC_PANEL_LOADER_NO_GTYPES']
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
2018-04-17 17:58:55 +02:00
|
|
|
# libshell_test
|
|
|
|
sources = files(
|
|
|
|
'cc-panel.c',
|
|
|
|
'cc-shell.c',
|
|
|
|
'cc-log.c',
|
|
|
|
'cc-object-storage.c',
|
|
|
|
)
|
|
|
|
libtestshell = static_library(
|
2018-05-03 00:45:29 -03:00
|
|
|
'testshell',
|
|
|
|
sources,
|
|
|
|
include_directories : top_inc,
|
|
|
|
dependencies : common_deps + [ libwidgets_dep ],
|
|
|
|
c_args : cflags,
|
|
|
|
link_with : panels_libs
|
2018-04-17 17:58:55 +02:00
|
|
|
)
|
|
|
|
libtestshell_dep = declare_dependency(
|
2018-05-03 00:45:29 -03:00
|
|
|
include_directories : top_inc,
|
|
|
|
link_with : libtestshell
|
2018-04-17 17:58:55 +02:00
|
|
|
)
|
|
|
|
libtestshell_deps = common_deps + [ libwidgets_dep, libtestshell_dep ]
|
|
|
|
|
|
|
|
|
2018-05-03 00:45:29 -03:00
|
|
|
install_data (
|
|
|
|
'org.gnome.ControlCenter.gschema.xml',
|
|
|
|
install_dir : control_center_schemadir
|
|
|
|
)
|