In a recent commit[0], bluetooth, network and wacom panels were made mandatory on every linux except on S390 systems. However, the network panel should also be mandatory on S390 systems running linux. This changes the conditions to build bluetooh, network and wacom panels. https://bugzilla.gnome.org/show_bug.cgi?id=792641 [0] https://git.gnome.org/browse/gnome-control-center/commit/?id=a2b20a65c
55 lines
1 KiB
Meson
55 lines
1 KiB
Meson
panels_list += cappletname
|
|
desktop = 'gnome-@0@-panel.desktop'.format(cappletname)
|
|
|
|
desktop_in = configure_file(
|
|
input: desktop + '.in.in',
|
|
output: desktop + '.in',
|
|
configuration: desktop_conf
|
|
)
|
|
|
|
i18n.merge_file(
|
|
desktop,
|
|
type: 'desktop',
|
|
input: desktop_in,
|
|
output: desktop,
|
|
po_dir: po_dir,
|
|
install: true,
|
|
install_dir: control_center_desktopdir
|
|
)
|
|
|
|
sources = files('cc-power-panel.c')
|
|
|
|
resource_data = files('power.ui')
|
|
|
|
sources += gnome.compile_resources(
|
|
'cc-' + cappletname + '-resources',
|
|
cappletname + '.gresource.xml',
|
|
c_name: 'cc_' + cappletname,
|
|
dependencies: resource_data,
|
|
export: true
|
|
)
|
|
|
|
deps = common_deps + [
|
|
gnome_settings_dep,
|
|
upower_glib_dep
|
|
]
|
|
|
|
cflags += '-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)
|
|
|
|
if host_is_linux
|
|
deps += network_manager_deps
|
|
endif
|
|
|
|
if host_is_linux_not_s390
|
|
deps += gnome_bluetooth_dep
|
|
endif
|
|
|
|
panels_libs += static_library(
|
|
cappletname,
|
|
sources: sources,
|
|
include_directories: top_inc,
|
|
dependencies: deps,
|
|
c_args: cflags
|
|
)
|
|
|
|
subdir('icons')
|