summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifupdown/meson.build
blob: 1dc875a645b43f32cffc05f7fed3cde52f768e0b (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
sources = files(
  'nms-ifupdown-interface-parser.c',
  'nms-ifupdown-parser.c'
)

deps = [
  libudev_dep,
  nm_dep
]

cflags = '-DSYSCONFDIR="@0@"'.format(nm_sysconfdir)

libnms_ifupdown_core = static_library(
  'nms-ifupdown-core',
  sources: sources,
  dependencies: deps,
  c_args: cflags
)

sources = files(
  'nms-ifupdown-connection.c',
  'nms-ifupdown-plugin.c'
)

ldflags = [
  '-Wl,--version-script,@0@'.format(linker_script_settings),
]

libnm_settings_plugin_ifupdown = shared_module(
  'nm-settings-plugin-ifupdown',
  sources: sources,
  dependencies: deps,
  c_args: cflags,
  link_with: libnms_ifupdown_core,
  link_args: ldflags,
  link_depends: linker_script_settings,
  install: true,
  install_dir: nm_pkglibdir
)

core_plugins += libnm_settings_plugin_ifupdown

# FIXME: check_so_symbols replacement
'''
run_target(
  'check-local-symbols-settings-ifupdown',
  command: [check_so_symbols, libnm_settings_plugin_ifupdown.full_path()],
  depends: libnm_settings_plugin_ifupdown
)

check-local-symbols-settings-ifupdown: src/settings/plugins/ifupdown/libnm-settings-plugin-ifupdown.la
  $(call check_so_symbols,$(builddir)/src/settings/plugins/ifupdown/.libs/libnm-settings-plugin-ifupdown.so)
'''

if enable_tests
  subdir('tests')
endif