autotools: Only build libmesa-st-tests-common.a for tests.
authorBas Nieuwenhuizen <basni@chromium.org>
Fri, 2 Feb 2018 15:59:23 +0000 (16:59 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Feb 2018 13:04:04 +0000 (14:04 +0100)
commit5d754872b5721647dda17dd350bbe85d7a4dcec7
tree56874ee6acc0deafb27eaf29b52615e8ef818060
parent9d322fde9781f9fc53c3baac6995ab1cbd8d6135
autotools: Only build libmesa-st-tests-common.a for tests.

We don't need the library if we don't build tests, and building
it adds a dependency on gtest which adds a dependency on cxxabi.h.

Fixes: 6569b33b6e "mesa/st/tests: unify MockCodeLine* classes"
Reviewed-By: Gert Wollny <gw.fossdev@gmail.com>
src/mesa/state_tracker/tests/Makefile.am