Files
NetworkManager/examples/C/qt/meson.build
Thomas Haller 977ea352a0 all: update deprecated SPDX license identifiers
These SPDX license identifiers are deprecated ([1]). Update them.

[1] https://spdx.org/licenses/

  sed \
     -e '1 s%^/\* SPDX-License-Identifier: \(GPL-2.0\|LGPL-2.1\)+ \*/$%/* SPDX-License-Identifier: \1-or-later */%' \
     -e '1,2 s%^\(--\|#\|//\) SPDX-License-Identifier: \(GPL-2.0\|LGPL-2.1\)+$%\1 SPDX-License-Identifier: \2-or-later%' \
     -i \
     $(git grep -l SPDX-License-Identifier -- \
         ':(exclude)shared/c-*/' \
         ':(exclude)shared/n-*/' \
         ':(exclude)shared/systemd/src' \
         ':(exclude)src/systemd/src')
2021-01-05 09:46:21 +01:00

42 lines
788 B
Meson

# SPDX-License-Identifier: LGPL-2.1-or-later
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