Files
NetworkManager/examples/C/qt/meson.build
Iñigo Martínez 03637ad8b5 build: add initial support for meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.

[thaller@redhat.com: rebased patch and adjusted for iwd support]

https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00022.html
2017-12-13 15:48:50 +01:00

48 lines
856 B
Meson

examples = [
['add-connection-wired', []],
['list-connections', []],
['change-ipv4-addresses', []]
]
incs = [
top_inc,
libnm_core_inc
]
qt_core_dep = dependency('QtCore', version: '>= 4')
deps = [
dbus_dep,
dbus_glib_dep,
qt_core_dep,
dependency('QtDBus'),
dependency('QtNetwork')
]
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: incs,
dependencies: deps,
link_depends: example[1]
)
endforeach