bind9/lib/ns/meson.build
Alessio Podda 6e7aec2cb7
Use unique names for probes.d files
Enabling LTO in the subsequent commit requires the file names to be
unique and having same probes.d in each of the libraries breaks this
requirement.  Rename probes.d to probes-{isc,dns,ns}.d files and adjust
the includes.
2025-09-24 13:18:13 +02:00

58 lines
1.5 KiB
Meson

# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# SPDX-License-Identifier: MPL-2.0
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
probe_hdr = dtrace_header.process('probes-ns.d')
probe_src = [probe_hdr, files('query.c')]
if config.get('HAVE_DTRACE')
ns_probe_objects += static_library(
'ns-probe-target',
probe_src,
sources: dns_gen_headers,
build_by_default: false,
dependencies: [uv_dep, urcu_dep],
implicit_include_directories: false,
include_directories: [isc_inc, dns_inc, ns_inc],
).extract_all_objects(recursive: false)
endif
ns_srcset.add(
when: 'HAVE_DTRACE',
if_true: [
custom_target(
'ns-probe',
input: [files('probes-ns.d'), ns_probe_objects],
output: 'ns-probes.o',
command: [
dtrace,
'-G',
'-o', '@OUTPUT@',
'-s', '@INPUT@',
],
),
probe_hdr,
],
if_false: probe_src,
)
ns_srcset.add(
files(
'client.c',
'hooks.c',
'interfacemgr.c',
'listenlist.c',
'notify.c',
'server.c',
'stats.c',
'update.c',
'xfrout.c',
),
)