2017-07-25 22:28:38 +02:00
|
|
|
subdir('appdata')
|
|
|
|
subdir('completions')
|
|
|
|
|
|
|
|
service_conf = configuration_data()
|
|
|
|
service_conf.set('bindir', control_center_bindir)
|
2022-11-22 18:44:28 +01:00
|
|
|
service_conf.set('appid', application_id)
|
2017-07-25 22:28:38 +02:00
|
|
|
|
2022-01-20 00:02:02 -03:00
|
|
|
service = 'org.gnome.Settings.service'
|
2017-07-25 22:28:38 +02:00
|
|
|
|
|
|
|
configure_file(
|
2018-05-03 00:45:29 -03:00
|
|
|
input : service + '.in',
|
2022-11-22 18:44:28 +01:00
|
|
|
output : '@0@.service'.format(application_id),
|
2018-05-03 00:45:29 -03:00
|
|
|
install : true,
|
|
|
|
install_dir : join_paths(control_center_datadir, 'dbus-1', 'services'),
|
|
|
|
configuration : service_conf
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
2022-11-22 18:44:28 +01:00
|
|
|
desktop_conf = configuration_data()
|
|
|
|
desktop_conf.set('icon', application_id)
|
|
|
|
|
2022-01-20 00:02:02 -03:00
|
|
|
desktop = 'org.gnome.Settings.desktop'
|
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
|
|
|
type : 'desktop',
|
2022-11-22 18:44:28 +01:00
|
|
|
input : configure_file(
|
|
|
|
input: desktop + '.in',
|
|
|
|
output: 'org.gnome.Settings.desktop.in',
|
|
|
|
configuration: desktop_conf
|
|
|
|
),
|
|
|
|
output : '@0@.desktop'.format(application_id),
|
2018-05-03 00:45:29 -03:00
|
|
|
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)]
|
|
|
|
|
|
|
|
|
2018-11-07 22:16:21 -02:00
|
|
|
# Common sources between gnome-control-center and
|
|
|
|
# libtestshell.
|
|
|
|
common_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.c',
|
2018-11-07 22:16:21 -02:00
|
|
|
'cc-panel-list.c',
|
|
|
|
'cc-window.c',
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
2018-11-07 22:16:21 -02:00
|
|
|
|
|
|
|
###################
|
|
|
|
# Generated files #
|
|
|
|
###################
|
|
|
|
|
2019-07-24 14:58:39 +08:00
|
|
|
generated_sources = files()
|
|
|
|
|
2018-11-07 22:16:21 -02:00
|
|
|
#Resources
|
2019-07-24 14:58:39 +08:00
|
|
|
generated_sources += gnome.compile_resources(
|
2023-05-23 17:09:31 +02:00
|
|
|
'resources',
|
2017-07-25 22:28:38 +02:00
|
|
|
meson.project_name() + '.gresource.xml',
|
2023-05-23 17:09:31 +02:00
|
|
|
export : true
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
2019-07-24 14:58:39 +08:00
|
|
|
common_sources += generated_sources
|
2018-11-07 22:16:21 -02:00
|
|
|
|
|
|
|
############
|
|
|
|
# libshell #
|
|
|
|
############
|
|
|
|
|
|
|
|
libshell = static_library(
|
|
|
|
'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-11-07 22:16:21 -02:00
|
|
|
libshell_dep = declare_dependency(
|
2019-07-24 14:58:39 +08:00
|
|
|
sources : generated_sources,
|
2018-11-07 22:16:21 -02:00
|
|
|
include_directories : top_inc,
|
|
|
|
link_with : libshell
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
########################
|
|
|
|
# gnome-control-center #
|
|
|
|
########################
|
|
|
|
|
|
|
|
shell_sources = common_sources + files('main.c')
|
|
|
|
|
2017-07-25 22:28:38 +02:00
|
|
|
shell_deps = common_deps + [
|
|
|
|
libdevice_dep,
|
|
|
|
liblanguage_dep,
|
2018-04-06 13:38:40 +02:00
|
|
|
libwidgets_dep,
|
2018-11-07 22:16:21 -02:00
|
|
|
x11_dep,
|
|
|
|
libshell_dep,
|
2017-07-25 22:28:38 +02:00
|
|
|
]
|
|
|
|
|
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
|
|
|
|
|
|
|
|
executable(
|
|
|
|
meson.project_name(),
|
2018-11-07 22:16:21 -02:00
|
|
|
shell_sources,
|
2018-05-03 00:45:29 -03:00
|
|
|
include_directories : top_inc,
|
|
|
|
dependencies : shell_deps,
|
|
|
|
c_args : cflags,
|
2018-11-07 22:16:21 -02:00
|
|
|
link_with : panels_libs,
|
2018-05-03 00:45:29 -03:00
|
|
|
install : true
|
2017-07-25 22:28:38 +02:00
|
|
|
)
|
|
|
|
|
2018-11-07 22:16:21 -02:00
|
|
|
|
|
|
|
##################
|
|
|
|
# lipanel_loader #
|
|
|
|
##################
|
|
|
|
|
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-11-07 22:16:21 -02:00
|
|
|
|
|
|
|
################
|
|
|
|
# libtestshell #
|
|
|
|
################
|
|
|
|
|
2018-04-17 17:58:55 +02:00
|
|
|
libtestshell = static_library(
|
2018-05-03 00:45:29 -03:00
|
|
|
'testshell',
|
2018-11-07 22:16:21 -02:00
|
|
|
common_sources,
|
2018-05-03 00:45:29 -03:00
|
|
|
include_directories : top_inc,
|
2018-11-07 22:16:21 -02:00
|
|
|
dependencies : shell_deps,
|
2018-05-03 00:45:29 -03:00
|
|
|
c_args : cflags,
|
2018-11-07 22:16:21 -02:00
|
|
|
link_with : panels_libs,
|
2018-04-17 17:58:55 +02:00
|
|
|
)
|
|
|
|
libtestshell_dep = declare_dependency(
|
2019-07-24 14:58:39 +08:00
|
|
|
sources : generated_sources,
|
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 (
|
2022-01-20 00:02:02 -03:00
|
|
|
'org.gnome.Settings.gschema.xml',
|
2018-05-03 00:45:29 -03:00
|
|
|
install_dir : control_center_schemadir
|
|
|
|
)
|