Lines 719-729
Link Here
|
719 |
protobuf-lite-test test_plugin protobuf-lite-arena-test \ |
719 |
protobuf-lite-test test_plugin protobuf-lite-arena-test \ |
720 |
$(GZCHECKPROGRAMS) |
720 |
$(GZCHECKPROGRAMS) |
721 |
protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \ |
721 |
protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \ |
722 |
$(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \ |
722 |
-lgtest -lgmock -lgmock_main |
723 |
$(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \ |
|
|
724 |
$(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la |
725 |
protobuf_test_CPPFLAGS = -I$(GOOGLETEST_SRC_DIR)/include \ |
726 |
-I$(GOOGLEMOCK_SRC_DIR)/include |
727 |
# Disable optimization for tests unless the user explicitly asked for it, |
723 |
# Disable optimization for tests unless the user explicitly asked for it, |
728 |
# since test_util.cc takes forever to compile with optimization (with GCC). |
724 |
# since test_util.cc takes forever to compile with optimization (with GCC). |
729 |
# See configure.ac for more info. |
725 |
# See configure.ac for more info. |
Lines 811-822
Link Here
|
811 |
# Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined. |
807 |
# Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined. |
812 |
protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \ |
808 |
protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \ |
813 |
libprotoc.la \ |
809 |
libprotoc.la \ |
814 |
$(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \ |
810 |
-lgtest -lgmock -lgmock_main |
815 |
$(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \ |
811 |
protobuf_lazy_descriptor_test_CPPFLAGS = -DPROTOBUF_TEST_NO_DESCRIPTORS |
816 |
$(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la |
|
|
817 |
protobuf_lazy_descriptor_test_CPPFLAGS = -I$(GOOGLEMOCK_SRC_DIR)/include \ |
818 |
-I$(GOOGLETEST_SRC_DIR)/include \ |
819 |
-DPROTOBUF_TEST_NO_DESCRIPTORS |
820 |
protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
812 |
protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
821 |
protobuf_lazy_descriptor_test_SOURCES = \ |
813 |
protobuf_lazy_descriptor_test_SOURCES = \ |
822 |
google/protobuf/compiler/cpp/cpp_unittest.cc \ |
814 |
google/protobuf/compiler/cpp/cpp_unittest.cc \ |
Lines 837-847
Link Here
|
837 |
# full runtime and we want to make sure this test builds without full |
829 |
# full runtime and we want to make sure this test builds without full |
838 |
# runtime. |
830 |
# runtime. |
839 |
protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \ |
831 |
protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \ |
840 |
$(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \ |
832 |
-lgtest -lgmock -lgmock_main |
841 |
$(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \ |
|
|
842 |
$(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la |
843 |
protobuf_lite_test_CPPFLAGS= -I$(GOOGLEMOCK_SRC_DIR)/include \ |
844 |
-I$(GOOGLETEST_SRC_DIR)/include |
845 |
protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
833 |
protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
846 |
protobuf_lite_test_SOURCES = \ |
834 |
protobuf_lite_test_SOURCES = \ |
847 |
google/protobuf/lite_unittest.cc \ |
835 |
google/protobuf/lite_unittest.cc \ |
Lines 853-863
Link Here
|
853 |
# gtest when building the test internally our memory sanitizer doesn't detect |
841 |
# gtest when building the test internally our memory sanitizer doesn't detect |
854 |
# memory leaks (don't know why). |
842 |
# memory leaks (don't know why). |
855 |
protobuf_lite_arena_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \ |
843 |
protobuf_lite_arena_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \ |
856 |
$(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \ |
844 |
-lgtest -lgmock -lgmock_main |
857 |
$(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \ |
|
|
858 |
$(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la |
859 |
protobuf_lite_arena_test_CPPFLAGS = -I$(GOOGLEMOCK_SRC_DIR)/include \ |
860 |
-I$(GOOGLETEST_SRC_DIR)/include |
861 |
protobuf_lite_arena_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
845 |
protobuf_lite_arena_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
862 |
protobuf_lite_arena_test_SOURCES = \ |
846 |
protobuf_lite_arena_test_SOURCES = \ |
863 |
google/protobuf/lite_arena_unittest.cc \ |
847 |
google/protobuf/lite_arena_unittest.cc \ |
Lines 867-874
Link Here
|
867 |
|
851 |
|
868 |
# Test plugin binary. |
852 |
# Test plugin binary. |
869 |
test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \ |
853 |
test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \ |
870 |
$(GOOGLETEST_BUILD_DIR)/lib/libgtest.la |
854 |
-lgtest |
871 |
test_plugin_CPPFLAGS = -I$(GOOGLETEST_SRC_DIR)/include |
|
|
872 |
test_plugin_SOURCES = \ |
855 |
test_plugin_SOURCES = \ |
873 |
google/protobuf/compiler/mock_code_generator.cc \ |
856 |
google/protobuf/compiler/mock_code_generator.cc \ |
874 |
google/protobuf/testing/file.cc \ |
857 |
google/protobuf/testing/file.cc \ |