Meson extracts them by itself and add them as dependencies for the target. It means one less location to keep track of files, and a lot less boilerplate around the meson files
44 lines
1 KiB
Meson
44 lines
1 KiB
Meson
|
|
deps = common_deps + network_manager_deps + [gcr_dep, polkit_gobject_dep]
|
|
panels_list += cappletname
|
|
desktop = 'gnome-@0@-panel.desktop'.format(cappletname)
|
|
|
|
i18n.merge_file(
|
|
type : 'desktop',
|
|
input : desktop + '.in',
|
|
output : desktop,
|
|
po_dir : po_dir,
|
|
install : true,
|
|
install_dir : control_center_desktopdir
|
|
)
|
|
|
|
sources = files(
|
|
'cc-wwan-panel.c',
|
|
'cc-wwan-device.c',
|
|
'cc-wwan-data.c',
|
|
'cc-wwan-device-page.c',
|
|
'cc-wwan-mode-dialog.c',
|
|
'cc-wwan-network-dialog.c',
|
|
'cc-wwan-details-dialog.c',
|
|
'cc-wwan-sim-lock-dialog.c',
|
|
'cc-wwan-apn-dialog.c',
|
|
)
|
|
|
|
sources += gnome.compile_resources(
|
|
'cc-' + cappletname + '-resources',
|
|
cappletname + '.gresource.xml',
|
|
c_name : 'cc_' + cappletname,
|
|
export : true,
|
|
)
|
|
|
|
cflags += '-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)
|
|
|
|
panels_libs += static_library(
|
|
cappletname,
|
|
sources : sources,
|
|
include_directories : [ top_inc, common_inc ],
|
|
dependencies : deps,
|
|
c_args : cflags
|
|
)
|
|
|
|
subdir('icons')
|