Unreviewed. Fix make distcheck.
[WebKit-https.git] / Source / ThirdParty / gtest / GNUmakefile.am
1
2 noinst_LTLIBRARIES += \
3         Libraries/libgtest.la
4
5 Libraries_libgtest_la_SOURCES = \
6         Source/ThirdParty/gtest/include/gtest/gtest.h \
7         Source/ThirdParty/gtest/include/gtest/gtest-death-test.h \
8         Source/ThirdParty/gtest/include/gtest/gtest-message.h \
9         Source/ThirdParty/gtest/include/gtest/gtest-param-test.h \
10         Source/ThirdParty/gtest/include/gtest/gtest_pred_impl.h \
11         Source/ThirdParty/gtest/include/gtest/gtest_prod.h \
12         Source/ThirdParty/gtest/include/gtest/gtest-spi.h \
13         Source/ThirdParty/gtest/include/gtest/gtest-test-part.h \
14         Source/ThirdParty/gtest/include/gtest/gtest-typed-test.h \
15         Source/ThirdParty/gtest/include/gtest/internal/gtest-death-test-internal.h \
16         Source/ThirdParty/gtest/include/gtest/internal/gtest-filepath.h \
17         Source/ThirdParty/gtest/include/gtest/internal/gtest-internal.h \
18         Source/ThirdParty/gtest/include/gtest/internal/gtest-linked_ptr.h \
19         Source/ThirdParty/gtest/include/gtest/internal/gtest-param-util-generated.h \
20         Source/ThirdParty/gtest/include/gtest/internal/gtest-param-util.h \
21         Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h \
22         Source/ThirdParty/gtest/include/gtest/internal/gtest-string.h \
23         Source/ThirdParty/gtest/include/gtest/internal/gtest-tuple.h \
24         Source/ThirdParty/gtest/include/gtest/internal/gtest-type-util.h \
25         Source/ThirdParty/gtest/src/gtest-all.cc
26
27 # Use -isystem gcc flag so that gcc considers gtest headers as system headers.
28 # We need this to avoid a lot of compile warnings due to -Wundef.
29 # See http://code.google.com/p/googletest/issues/detail?id=258
30 Libraries_libgtest_la_CPPFLAGS = \
31         $(global_cppflags) \
32         $(javascriptcore_cppflags) \
33         -isystem $(srcdir)/Source/ThirdParty/gtest \
34         -isystem $(srcdir)/Source/ThirdParty/gtest/include \
35         -I$(srcdir)/Source/WTF \
36         -I$(srcdir)/Source/ThirdParty/gtest \
37         -I$(srcdir)/Source/ThirdParty/gtest/include
38
39 Libraries_libgtest_la_CXXFLAGS = -DGTEST_HAS_PTHREAD=1
40 Libraries_libgtest_la_LIBADD = \
41         -lpthread
42
43 # gtest source files that we don't compile directly.  They are
44 # #included by gtest-all.cc.
45 EXTRA_DIST += \
46         Source/ThirdParty/gtest/src/gtest.cc \
47         Source/ThirdParty/gtest/src/gtest-death-test.cc \
48         Source/ThirdParty/gtest/src/gtest-filepath.cc \
49         Source/ThirdParty/gtest/src/gtest-internal-inl.h \
50         Source/ThirdParty/gtest/src/gtest-port.cc \
51         Source/ThirdParty/gtest/src/gtest-test-part.cc \
52         Source/ThirdParty/gtest/src/gtest-typed-test.cc
53