diff options
author | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2011-04-21 21:56:01 +0000 |
---|---|---|
committer | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2011-04-21 21:56:01 +0000 |
commit | 7283dde30087a0df1f7cacf0054c7a3a0524a8d8 (patch) | |
tree | 1f095291f82c55d55f042199b6265a707b6a22c7 | |
parent | c8c04e9b65f43dc0f6cabfc0c99ea00fe347bdd3 (diff) | |
download | googlemock-7283dde30087a0df1f7cacf0054c7a3a0524a8d8.tar.gz |
Makes generation of fused sources contingent on availability of Python and pulls in gtest r580.
git-svn-id: http://googlemock.googlecode.com/svn/trunk@388 8415998a-534a-0410-bf83-d39667b30386
-rw-r--r-- | Makefile.am | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am index adc21d7..3e11b32 100644 --- a/Makefile.am +++ b/Makefile.am @@ -73,16 +73,18 @@ test_gmock_link_test_SOURCES = \ test/gmock_link_test.h test_gmock_link_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la lib/libgmock.la -# Tests that fused gmock files compile and work. -TESTS += test/gmock_fused_test -check_PROGRAMS += test/gmock_fused_test -test_gmock_fused_test_SOURCES = \ - fused-src/gmock-gtest-all.cc \ - fused-src/gmock/gmock.h \ - fused-src/gmock_main.cc \ - fused-src/gtest/gtest.h \ - test/gmock_test.cc -test_gmock_fused_test_CPPFLAGS = -I"$(srcdir)/fused-src" +if HAVE_PYTHON + # Tests that fused gmock files compile and work. + TESTS += test/gmock_fused_test + check_PROGRAMS += test/gmock_fused_test + test_gmock_fused_test_SOURCES = \ + fused-src/gmock-gtest-all.cc \ + fused-src/gmock/gmock.h \ + fused-src/gmock_main.cc \ + fused-src/gtest/gtest.h \ + test/gmock_test.cc + test_gmock_fused_test_CPPFLAGS = -I"$(srcdir)/fused-src" +endif # Google Mock source files that we don't compile directly. GMOCK_SOURCE_INGLUDES = \ @@ -169,6 +171,7 @@ EXTRA_DIST += \ msvc/2010/gmock_main.vcxproj \ msvc/2010/gmock_test.vcxproj +if HAVE_PYTHON # gmock_test.cc does not really depend on files generated by the # fused-gmock-internal rule. However, gmock_test.o does, and it is # important to include test/gmock_test.cc as part of this rule in order to @@ -191,6 +194,7 @@ fused-gmock-internal: $(pkginclude_HEADERS) $(pkginclude_internal_HEADERS) \ maintainer-clean-local: rm -rf "$(srcdir)/fused-src" +endif # Death tests may produce core dumps in the build directory. In case # this happens, clean them to keep distcleancheck happy. |