OLD | NEW |
1 # Automake file | 1 # Automake file |
2 | 2 |
3 # Nonstandard package files for distribution. | 3 # Nonstandard package files for distribution. |
4 EXTRA_DIST = | 4 EXTRA_DIST = |
5 | 5 |
6 # We may need to build our internally packaged gtest. If so, it will be | 6 # We may need to build our internally packaged gtest. If so, it will be |
7 # included in the 'subdirs' variable. | 7 # included in the 'subdirs' variable. |
8 SUBDIRS = $(subdirs) | 8 SUBDIRS = $(subdirs) |
9 | 9 |
10 # Scripts and utilities to be installed by 'make install'. | 10 # Scripts and utilities to be installed by 'make install'. |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 pkginclude_HEADERS = include/gmock/gmock.h \ | 32 pkginclude_HEADERS = include/gmock/gmock.h \ |
33 include/gmock/gmock-actions.h \ | 33 include/gmock/gmock-actions.h \ |
34 include/gmock/gmock-cardinalities.h \ | 34 include/gmock/gmock-cardinalities.h \ |
35 include/gmock/gmock-generated-actions.h \ | 35 include/gmock/gmock-generated-actions.h \ |
36 include/gmock/gmock-generated-function-mockers.h \ | 36 include/gmock/gmock-generated-function-mockers.h \ |
37 include/gmock/gmock-generated-matchers.h \ | 37 include/gmock/gmock-generated-matchers.h \ |
38 include/gmock/gmock-generated-nice-strict.h \ | 38 include/gmock/gmock-generated-nice-strict.h \ |
39 include/gmock/gmock-matchers.h \ | 39 include/gmock/gmock-matchers.h \ |
40 include/gmock/gmock-more-actions.h \ | 40 include/gmock/gmock-more-actions.h \ |
41 include/gmock/gmock-printers.h \ | |
42 include/gmock/gmock-spec-builders.h | 41 include/gmock/gmock-spec-builders.h |
43 | 42 |
44 pkginclude_internaldir = $(pkgincludedir)/internal | 43 pkginclude_internaldir = $(pkgincludedir)/internal |
45 pkginclude_internal_HEADERS = \ | 44 pkginclude_internal_HEADERS = \ |
46 include/gmock/internal/gmock-generated-internal-utils.h \ | 45 include/gmock/internal/gmock-generated-internal-utils.h \ |
47 include/gmock/internal/gmock-internal-utils.h \ | 46 include/gmock/internal/gmock-internal-utils.h \ |
48 include/gmock/internal/gmock-port.h | 47 include/gmock/internal/gmock-port.h |
49 | 48 |
50 lib_libgmock_main_la_SOURCES = src/gmock_main.cc | 49 lib_libgmock_main_la_SOURCES = src/gmock_main.cc |
51 lib_libgmock_main_la_LIBADD = lib/libgmock.la | 50 lib_libgmock_main_la_LIBADD = lib/libgmock.la |
(...skipping 17 matching lines...) Expand all Loading... |
69 | 68 |
70 # This tests using Google Mock in multiple translation units. It also | 69 # This tests using Google Mock in multiple translation units. It also |
71 # verifies that libgmock_main works. | 70 # verifies that libgmock_main works. |
72 TESTS += test/gmock_link_test | 71 TESTS += test/gmock_link_test |
73 check_PROGRAMS += test/gmock_link_test | 72 check_PROGRAMS += test/gmock_link_test |
74 test_gmock_link_test_SOURCES = test/gmock_link_test.cc \ | 73 test_gmock_link_test_SOURCES = test/gmock_link_test.cc \ |
75 test/gmock_link2_test.cc \ | 74 test/gmock_link2_test.cc \ |
76 test/gmock_link_test.h | 75 test/gmock_link_test.h |
77 test_gmock_link_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la | 76 test_gmock_link_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la |
78 | 77 |
| 78 # Tests that fused gmock files compile and work. |
| 79 TESTS += test/gmock_fused_test |
| 80 check_PROGRAMS += test/gmock_fused_test |
| 81 test_gmock_fused_test_SOURCES = fused-src/gmock-gtest-all.cc \ |
| 82 fused-src/gmock_main.cc \ |
| 83 fused-src/gmock/gmock.h \ |
| 84 fused-src/gtest/gtest.h \ |
| 85 test/gmock_test.cc |
| 86 test_gmock_fused_test_CPPFLAGS = -I"$(srcdir)/fused-src" |
| 87 |
79 # Google Mock source files that we don't compile directly. | 88 # Google Mock source files that we don't compile directly. |
80 EXTRA_DIST += \ | 89 GMOCK_SOURCE_INGLUDES = \ |
81 src/gmock.cc \ | 90 src/gmock.cc \ |
82 src/gmock-cardinalities.cc \ | 91 src/gmock-cardinalities.cc \ |
83 src/gmock-internal-utils.cc \ | 92 src/gmock-internal-utils.cc \ |
84 src/gmock-matchers.cc \ | 93 src/gmock-matchers.cc \ |
85 src/gmock-printers.cc \ | |
86 src/gmock-spec-builders.cc | 94 src/gmock-spec-builders.cc |
87 | 95 |
| 96 EXTRA_DIST += $(GMOCK_SOURCE_INGLUDES) |
| 97 |
88 # C++ tests that we don't compile using autotools. | 98 # C++ tests that we don't compile using autotools. |
89 EXTRA_DIST += \ | 99 EXTRA_DIST += \ |
90 test/gmock_all_test.cc \ | 100 test/gmock_all_test.cc \ |
91 test/gmock-actions_test.cc \ | 101 test/gmock-actions_test.cc \ |
92 test/gmock-cardinalities_test.cc \ | 102 test/gmock-cardinalities_test.cc \ |
93 test/gmock-generated-actions_test.cc \ | 103 test/gmock-generated-actions_test.cc \ |
94 test/gmock-generated-function-mockers_test.cc \ | 104 test/gmock-generated-function-mockers_test.cc \ |
95 test/gmock-generated-internal-utils_test.cc \ | 105 test/gmock-generated-internal-utils_test.cc \ |
96 test/gmock-generated-matchers_test.cc \ | 106 test/gmock-generated-matchers_test.cc \ |
97 test/gmock-internal-utils_test.cc \ | 107 test/gmock-internal-utils_test.cc \ |
98 test/gmock-matchers_test.cc \ | 108 test/gmock-matchers_test.cc \ |
99 test/gmock-more-actions_test.cc \ | 109 test/gmock-more-actions_test.cc \ |
100 test/gmock-nice-strict_test.cc \ | 110 test/gmock-nice-strict_test.cc \ |
101 test/gmock-port_test.cc \ | 111 test/gmock-port_test.cc |
102 test/gmock-printers_test.cc \ | |
103 test/gmock_test.cc | |
104 | 112 |
105 # Python tests, which we don't run using autotools. | 113 # Python tests, which we don't run using autotools. |
106 EXTRA_DIST += \ | 114 EXTRA_DIST += \ |
107 test/gmock_test_utils.py \ | 115 test/gmock_test_utils.py \ |
108 test/gmock_leak_test_.cc \ | 116 test/gmock_leak_test_.cc \ |
109 test/gmock_leak_test.py \ | 117 test/gmock_leak_test.py \ |
110 test/gmock_output_test_.cc \ | 118 test/gmock_output_test_.cc \ |
111 test/gmock_output_test.py \ | 119 test/gmock_output_test.py \ |
112 test/gmock_output_test_golden.txt | 120 test/gmock_output_test_golden.txt |
113 | 121 |
114 # Nonstandard package files for distribution. | 122 # Nonstandard package files for distribution. |
115 EXTRA_DIST += \ | 123 EXTRA_DIST += \ |
116 CHANGES \ | 124 CHANGES \ |
117 CONTRIBUTORS \ | 125 CONTRIBUTORS \ |
118 make/Makefile | 126 make/Makefile |
119 | 127 |
120 # Pump scripts for generating Google Mock headers. | 128 # Pump scripts for generating Google Mock headers. |
121 # TODO(chandlerc@google.com): automate the generation of *.h from *.h.pump. | 129 # TODO(chandlerc@google.com): automate the generation of *.h from *.h.pump. |
122 EXTRA_DIST += include/gmock/gmock-generated-actions.h.pump \ | 130 EXTRA_DIST += include/gmock/gmock-generated-actions.h.pump \ |
123 include/gmock/gmock-generated-function-mockers.h.pump \ | 131 include/gmock/gmock-generated-function-mockers.h.pump \ |
124 include/gmock/gmock-generated-matchers.h.pump \ | 132 include/gmock/gmock-generated-matchers.h.pump \ |
125 include/gmock/gmock-generated-nice-strict.h.pump \ | 133 include/gmock/gmock-generated-nice-strict.h.pump \ |
126 include/gmock/internal/gmock-generated-internal-utils.h.pump | 134 include/gmock/internal/gmock-generated-internal-utils.h.pump |
127 | 135 |
128 # Script for fusing Google Mock and Google Test source files. | 136 # Script for fusing Google Mock and Google Test source files. |
129 EXTRA_DIST += \ | 137 EXTRA_DIST += scripts/fuse_gmock_files.py |
130 scripts/fuse_gmock_files.py \ | |
131 scripts/test/Makefile | |
132 | 138 |
133 # The Google Mock Generator tool from the cppclean project. | 139 # The Google Mock Generator tool from the cppclean project. |
134 EXTRA_DIST += \ | 140 EXTRA_DIST += \ |
135 scripts/generator/COPYING \ | 141 scripts/generator/COPYING \ |
136 scripts/generator/README \ | 142 scripts/generator/README \ |
137 scripts/generator/README.cppclean \ | 143 scripts/generator/README.cppclean \ |
138 scripts/generator/cpp/__init__.py \ | 144 scripts/generator/cpp/__init__.py \ |
139 scripts/generator/cpp/ast.py \ | 145 scripts/generator/cpp/ast.py \ |
140 scripts/generator/cpp/gmock_class.py \ | 146 scripts/generator/cpp/gmock_class.py \ |
141 scripts/generator/cpp/keywords.py \ | 147 scripts/generator/cpp/keywords.py \ |
142 scripts/generator/cpp/tokenize.py \ | 148 scripts/generator/cpp/tokenize.py \ |
143 scripts/generator/cpp/utils.py \ | 149 scripts/generator/cpp/utils.py \ |
144 scripts/generator/gmock_gen.py | 150 scripts/generator/gmock_gen.py |
145 | 151 |
146 # Microsoft Visual Studio 2005 projects. | 152 # Microsoft Visual Studio 2005 projects. |
147 EXTRA_DIST += \ | 153 EXTRA_DIST += \ |
148 msvc/gmock.sln \ | 154 msvc/gmock.sln \ |
149 msvc/gmock.vcproj \ | 155 msvc/gmock.vcproj \ |
150 msvc/gmock_config.vsprops \ | 156 msvc/gmock_config.vsprops \ |
151 msvc/gmock_link_test.vcproj \ | 157 msvc/gmock_link_test.vcproj \ |
152 msvc/gmock_main.vcproj \ | 158 msvc/gmock_main.vcproj \ |
153 msvc/gmock-spec-builders_test.vcproj \ | 159 msvc/gmock-spec-builders_test.vcproj \ |
154 msvc/gmock_test.vcproj | 160 msvc/gmock_test.vcproj |
| 161 |
| 162 # gmock_test.cc does not really depend on files generated by the |
| 163 # fused-gmock-internal rule. However, gmock_test.o does, and it is |
| 164 # important to include test/gmock_test.cc as part of this rule in order to |
| 165 # prevent compiling gmock_test.o until all dependent files have been |
| 166 # generated. |
| 167 $(test_gmock_fused_test_SOURCES): fused-gmock-internal |
| 168 |
| 169 # TODO(vladl@google.com): Find a way to add Google Tests's sources here. |
| 170 fused-gmock-internal: $(pkginclude_HEADERS) $(pkginclude_internal_HEADERS) \ |
| 171 $(lib_libgmock_la_SOURCES) $(GMOCK_SOURCE_INGLUDES) \ |
| 172 $(lib_libgmock_main_la_SOURCES) \ |
| 173 scripts/fuse_gmock_files.py |
| 174 mkdir -p "$(srcdir)/fused-src" |
| 175 chmod -R u+w "$(srcdir)/fused-src" |
| 176 rm -f "$(srcdir)/fused-src/gtest/gtest.h" |
| 177 rm -f "$(srcdir)/fused-src/gmock/gmock.h" |
| 178 rm -f "$(srcdir)/fused-src/gmock-gtest-all.cc" |
| 179 "$(srcdir)/scripts/fuse_gmock_files.py" "$(srcdir)/fused-src" |
| 180 cp -f "$(srcdir)/src/gmock_main.cc" "$(srcdir)/fused-src" |
| 181 |
| 182 maintainer-clean-local: |
| 183 rm -rf "$(srcdir)/fused-src" |
| 184 |
| 185 # Death tests may produce core dumps in the build directory. In case |
| 186 # this happens, clean them to keep distcleancheck happy. |
| 187 CLEANFILES = core |
OLD | NEW |