mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 11:40:08 +01:00
For internal compilation we want to be able to use deprecated API without warnings. Define the version min/max macros to effectively disable deprecation warnings. However, don't do it via CFLAGS option in the makefiles, instead hack it to "nm-default.h". After all, *every* source file that is for internal compilation needs to include this header as first.
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
if ENABLE_TESTS
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/shared \
|
|
-I$(top_builddir)/shared \
|
|
-I$(top_srcdir)/libnm \
|
|
-I$(top_builddir)/libnm \
|
|
-I$(top_srcdir)/libnm-core \
|
|
-I$(top_builddir)/libnm-core \
|
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
|
|
-DTEST_NM_SERVICE=\"$(abs_top_srcdir)/tools/test-networkmanager-service.py\" \
|
|
$(GLIB_CFLAGS)
|
|
|
|
LDADD = \
|
|
$(top_builddir)/libnm/libnm.la \
|
|
$(GLIB_LIBS)
|
|
|
|
noinst_PROGRAMS = $(TESTS)
|
|
|
|
if WITH_VALGRIND
|
|
@VALGRIND_RULES@ --launch-dbus
|
|
else
|
|
LOG_COMPILER = $(top_srcdir)/tools/run-test-dbus-session.sh
|
|
endif
|
|
TESTS = test-nm-client test-remote-settings-client test-secret-agent
|
|
|
|
test_nm_client_SOURCES = \
|
|
$(top_builddir)/shared/nm-test-utils-impl.c \
|
|
$(top_builddir)/shared/nm-test-libnm-utils.h \
|
|
test-nm-client.c
|
|
|
|
test_remote_settings_client_SOURCES = \
|
|
$(top_builddir)/shared/nm-test-utils-impl.c \
|
|
$(top_builddir)/shared/nm-test-libnm-utils.h \
|
|
test-remote-settings-client.c
|
|
|
|
test_secret_agent_SOURCES = \
|
|
$(top_builddir)/shared/nm-test-utils-impl.c \
|
|
$(top_builddir)/shared/nm-test-libnm-utils.h \
|
|
test-secret-agent.c
|
|
endif
|