configure.ac: enable subdir-objects
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 5 Jan 2017 23:48:48 +0000 (09:48 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 8 Jan 2017 23:40:28 +0000 (09:40 +1000)
commit24dafff9093bcec93037b9e8b65b29d37d6f4d2e
tree0c704cf9f6a9230459e6a8711524571f3099a075
parent1ee17e18accea9cecd9d20011f87a01fd85138b7
configure.ac: enable subdir-objects

The main thing holding us back here was our gcov hacks. We used to rebuild the
libevdev sources locally inside test/ with the gcov flags so that we could
leave the main libevdev sources untouched. This doesn't work well with
subdir-objects - we have to link to libevdev.la instead.

To enable gcov, we now have to apply the gcov flags to the main library
object. But this also means that when running, the notes files will be
somewhere within the libevdev/ directory, not the test/ directory. Working
around this in automake gets nasty quickly, so just add a script that knows
how to search for things.

No functional changes unless --enable-gcov is given at configure time - then
don't install the library.

The gcov reports are now in test/gcov-reports/

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
configure.ac
libevdev/Makefile.am
test/Makefile.am
test/generate-gcov-report.sh [new file with mode: 0755]