File: meson.build

package info (click to toggle)
network-manager 1.52.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 71,048 kB
  • sloc: ansic: 480,022; python: 11,394; xml: 8,504; sh: 5,535; perl: 596; cpp: 178; javascript: 130; ruby: 107; makefile: 57; lisp: 22
file content (39 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# SPDX-License-Identifier: LGPL-2.1-or-later

examples = [
  ['add-connection-wired', []],
  ['list-connections', []],
  ['change-ipv4-addresses', []],
]

moc = find_program('moc-qt4', required: false)
if not moc.found()
  moc = qt_core_dep.get_variable(pkgconfig: '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_public_inc,
    dependencies: [
      dbus_dep,
      qt_core_dep,
      qt_dbus_dep,
      qt_network_dep,
    ],
    link_depends: example[1],
  )
endforeach