mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
build: define NM_BUILD_SRCDIR and NM_BUILD_BUILDDIR
This commit is contained in:
parent
d63cf1ef2f
commit
7fcf33908b
|
@ -106,6 +106,11 @@ endif
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
nm_build_cflags = \
|
||||||
|
-DNM_BUILD_SRCDIR=\"$(abs_srcdir)\" \
|
||||||
|
-DNM_BUILD_BUILDDIR=\"$(abs_builddir)\" \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
set_sanitizer_env = \
|
set_sanitizer_env = \
|
||||||
[ -n "$(SANITIZER_ENV)" ] && export $(SANITIZER_ENV) ; \
|
[ -n "$(SANITIZER_ENV)" ] && export $(SANITIZER_ENV) ; \
|
||||||
if echo $(SANITIZER_LIB_CFLAGS) $(SANITIZER_EXEC_CFLAGS) | grep -e -fsanitize=address > /dev/null; then \
|
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_vpndir = join_paths(nm_libdir, nm_name)
|
||||||
nm_plugindir = join_paths(nm_libdir, nm_name, dist_version)
|
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'
|
libnm_name = 'libnm'
|
||||||
|
|
||||||
current = 1
|
current = 1
|
||||||
|
|
Loading…
Reference in a new issue