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
35 lines
695 B
Meson
35 lines
695 B
Meson
name = 'connection-editor'
|
|
|
|
sources = files(
|
|
'ce-ip-address-entry.c',
|
|
'ce-netmask-entry.c',
|
|
'ce-page-8021x-security.c',
|
|
'ce-page-details.c',
|
|
'ce-page-ethernet.c',
|
|
'ce-page-ip4.c',
|
|
'ce-page-ip6.c',
|
|
'ce-page-security.c',
|
|
'ce-page-vpn.c',
|
|
'ce-page-wireguard.c',
|
|
'ce-page-wifi.c',
|
|
'ce-page.c',
|
|
'net-connection-editor.c',
|
|
'vpn-helpers.c'
|
|
)
|
|
|
|
c_name = 'net-' + name
|
|
|
|
sources += gnome.compile_resources(
|
|
c_name + '-resources',
|
|
name + '.gresource.xml',
|
|
c_name: c_name.underscorify(),
|
|
export: true
|
|
)
|
|
|
|
libconnection_editor = static_library(
|
|
name,
|
|
sources: sources,
|
|
include_directories: [top_inc, common_inc, network_inc],
|
|
dependencies: deps,
|
|
c_args: cflags,
|
|
)
|