Commit 7fcf3390 authored by Thomas Haller's avatar Thomas Haller

build: define NM_BUILD_SRCDIR and NM_BUILD_BUILDDIR

parent d63cf1ef
......@@ -106,6 +106,11 @@ endif
###############################################################################
nm_build_cflags = \
-DNM_BUILD_SRCDIR=\"$(abs_srcdir)\" \
-DNM_BUILD_BUILDDIR=\"$(abs_builddir)\" \
$(NULL)
set_sanitizer_env = \
[ -n "$(SANITIZER_ENV)" ] && export $(SANITIZER_ENV) ; \
if echo $(SANITIZER_LIB_CFLAGS) $(SANITIZER_EXEC_CFLAGS) | grep -e -fsanitize=address > /dev/null; then \
......
......@@ -54,6 +54,11 @@ nm_pkgstatedir = join_paths(nm_localstatedir, nm_name)
nm_vpndir = join_paths(nm_libdir, nm_name)
nm_plugindir = join_paths(nm_libdir, nm_name, dist_version)
nm_build_cflags = [
'-DNM_BUILD_SRCDIR="@0@"'.format(meson.source_root()),
'-DNM_BUILD_BUILDDIR="@0@"'.format(meson.build_root()),
]
libnm_name = 'libnm'
current = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment