# SPDX-License-Identifier: LGPL-2.1-or-later

libnm_systemd_core = static_library(
  'nm-systemd-core',
  sources: files(
    'src/libsystemd-network/dhcp-identifier.c',
    'src/libsystemd-network/dhcp6-network.c',
    'src/libsystemd-network/dhcp6-option.c',
    'src/libsystemd-network/dhcp6-protocol.c',
    'src/libsystemd-network/network-common.c',
    'src/libsystemd-network/sd-dhcp6-client.c',
    'src/libsystemd-network/sd-dhcp6-lease.c',
    'src/libsystemd/sd-event/event-util.c',
    'src/libsystemd/sd-event/sd-event.c',
    'src/libsystemd/sd-id128/id128-util.c',
    'src/libsystemd/sd-id128/sd-id128.c',
    'nm-sd.c',
    'sd-adapt-core/nm-sd-adapt-core.c',
  ),
  include_directories: [
    include_directories(
      'sd-adapt-core',
      'src/libsystemd-network',
      'src/libsystemd/sd-device',
      'src/libsystemd/sd-event',
      'src/systemd',
    ),
    top_inc,
    src_inc,
  ],
  dependencies: [
    libnm_systemd_shared_dep_inc,
    glib_dep,
  ],
)

libnm_systemd_core_dep_inc = declare_dependency(
  include_directories: include_directories(
    'sd-adapt-core',
    'src/libsystemd-network',
    'src/libsystemd/sd-event',
    'src/systemd',
  ),
)
