diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2016-09-01 12:59:36 -0700 |
---|---|---|
committer | Sean V Kelley <seanvk@posteo.de> | 2016-09-07 10:18:01 -0700 |
commit | b6906974929e778400c2a84dba8ebf2a2a3f68f4 (patch) | |
tree | 886ba2980714b9abf26ffa17f22d9b8c9c895f72 /test | |
parent | 1746adbb9adabd9fbee417ae3db67da599cc84e9 (diff) | |
download | libva-intel-driver-b6906974929e778400c2a84dba8ebf2a2a3f68f4.tar.gz |
toolchain: build gtest convenience library
Define autoconf/automake rules to build libgtest.la
as a convenience library.
Add --enable-tests configure option (default:no).
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am new file mode 100644 index 00000000..aa797032 --- /dev/null +++ b/test/Makefile.am @@ -0,0 +1,38 @@ +AUTOMAKE_OPTIONS = subdir-objects + +AM_CXXFLAGS = \ + -I$(top_srcdir)/test/gtest/include \ + $(NULL) + +AM_CPPFLAGS = \ + -DGTEST_HAS_PTHREAD=1 \ + -DGTEST_USE_OWN_TR1_TUPLE=0 \ + -DGTEST_LANG_CXX11=1 \ + -DGTEST_HAS_TR1_TUPLE=1 \ + -std=c++11 \ + $(NULL) + +AM_LDFLAGS = \ + -pthread \ + $(NULL) + +noinst_LTLIBRARIES = libgtest.la + +libgtest_la_SOURCES = \ + gtest/src/gtest-all.cc \ + gtest/src/gtest_main.cc \ + $(NULL) + +libgtest_la_CXXFLAGS = \ + -I$(top_srcdir)/test/gtest \ + $(AM_CXXFLAGS) \ + $(NULL) + +EXTRA_DIST = \ + gtest/docs \ + gtest/include \ + gtest/src/*.cc \ + gtest/src/*.h \ + gtest/README.md \ + gtest/LICENSE \ + $(NULL) |