From: Tom Hromatka Date: Fri, 10 Jan 2020 22:46:26 +0000 (+0000) Subject: gtest: Cleanup gtest make targets X-Git-Tag: v0.42~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d82fd89413bc40ef30231c36e901a1beb8a59e8;p=thirdparty%2Flibcgroup.git gtest: Cleanup gtest make targets Prior to this commit the unit test map file was being included in the source directory. It has now been moved to the tests/gunit directory. This commit also properly connects the tests/gunit Makefile to the googletest *.la so that a recompile of googletest is not required. Signed-off-by: Tom Hromatka Reviewed-by: Dhaval Giani --- diff --git a/tests/gunit/Makefile.am b/tests/gunit/Makefile.am index 43526f07..e108d322 100644 --- a/tests/gunit/Makefile.am +++ b/tests/gunit/Makefile.am @@ -27,9 +27,15 @@ AM_CPPFLAGS = -I$(top_srcdir)/include \ -DSTATIC= \ -DUNIT_TEST LDADD = ../../src/.libs/libcgroupfortesting.la \ - libgtest.la + $(top_srcdir)/googletest/googletest/lib/libgtest.la \ + $(top_srcdir)/googletest/googletest/lib/libgtest_main.la -libgtest_la_SOURCES = ../../googletest/googletest/src/gtest-all.cc +EXTRA_DIST = $(top_srcdir)/googletest/googletest/lib/libgtest.la \ + $(top_srcdir)/googletest/googletest/lib/libgtest_main.la \ + $(top_srcdir)/googletest/googletest/lib/.libs \ + $(top_srcdir)/googletest/googletest/include + +libgtest_la_SOURCES = libcgroup_unittest.map libgtest_la_CPPFLAGS = -I$(top_builddir)/googletest/googletest/include \ -I$(top_builddir)/googletest/googletest libgtest_la_LDFLAGS = -lpthread