mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 02:10:40 +01:00
test: add test for minimal linker flags
The most basic program using libinput should only need to link against -linput and get the rest resolved automatically. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
fab5cc3439
commit
86a50bccea
1 changed files with 6 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ if BUILD_TESTS
|
|||
AM_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
run_tests =
|
||||
build_tests = test-build-pedantic-c99 test-build-std-gnuc90
|
||||
build_tests = test-build-linker test-build-pedantic-c99 test-build-std-gnuc90
|
||||
|
||||
noinst_PROGRAMS = $(build_tests) $(run_tests)
|
||||
TESTS = $(run_tests)
|
||||
|
|
@ -14,4 +14,9 @@ test_build_pedantic_c99_CFLAGS = $(AM_CPPFLAGS) -std=c99 -pedantic -Werror
|
|||
test_build_std_gnuc90_SOURCES = build-pedantic.c
|
||||
test_build_std_gnuc90_CFLAGS = $(AM_CPPFLAGS) -std=gnu90 -Werror
|
||||
|
||||
# test for linking with the minimal linker flags
|
||||
test_build_linker_SOURCES = build-pedantic.c
|
||||
test_build_linker_CFLAGS = -I$(top_srcdir)/src
|
||||
test_build_linker_LDADD = $(top_builddir)/src/libinput.la
|
||||
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue