mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-22 15:00:07 +01:00
Qt dependencies have been moved to the main build file where the rest of dependencies are located. This makes it easier to find them. The included directories has also reviewed and removed the unnecessary ones.
39 lines
742 B
Meson
39 lines
742 B
Meson
examples = [
|
|
['add-connection-wired', []],
|
|
['list-connections', []],
|
|
['change-ipv4-addresses', []],
|
|
]
|
|
|
|
deps = [
|
|
dbus_dep,
|
|
qt_core_dep,
|
|
qt_dbus_dep,
|
|
qt_network_dep,
|
|
]
|
|
|
|
moc = find_program('moc-qt4', required: false)
|
|
if not moc.found()
|
|
moc = qt_core_dep.get_pkgconfig_variable('moc_location')
|
|
endif
|
|
|
|
example = 'monitor-nm-running'
|
|
output = example + '.moc'
|
|
|
|
example_moc = custom_target(
|
|
output,
|
|
input: example + '.cpp',
|
|
output: output,
|
|
command: [moc, '-i', '@INPUT@', '-o', '@OUTPUT@'],
|
|
)
|
|
|
|
examples += [[example, [example_moc]]]
|
|
|
|
foreach example: examples
|
|
executable(
|
|
example[0],
|
|
example[0] + '.cpp',
|
|
include_directories: libnm_core_inc,
|
|
dependencies: deps,
|
|
link_depends: example[1],
|
|
)
|
|
endforeach
|