| 1 |
# Automake file |
| 2 |
|
| 3 |
ACLOCAL_AMFLAGS = -I m4 |
| 4 |
|
| 5 |
# Nonstandard package files for distribution |
| 6 |
EXTRA_DIST = \ |
| 7 |
include/gtest/gtest-param-test.h.pump \ |
| 8 |
include/gtest/internal/gtest-param-util-generated.h.pump \ |
| 9 |
include/gtest/internal/gtest-tuple.h.pump \ |
| 10 |
include/gtest/internal/gtest-type-util.h.pump \ |
| 11 |
make/Makefile \ |
| 12 |
scripts/fuse_gtest_files.py \ |
| 13 |
scripts/gen_gtest_pred_impl.py \ |
| 14 |
scripts/pump.py \ |
| 15 |
scripts/test/Makefile |
| 16 |
|
| 17 |
# gtest source files that we don't compile directly. They are |
| 18 |
# #included by gtest-all.cc. |
| 19 |
GTEST_SRC = \ |
| 20 |
src/gtest-death-test.cc \ |
| 21 |
src/gtest-filepath.cc \ |
| 22 |
src/gtest-internal-inl.h \ |
| 23 |
src/gtest-port.cc \ |
| 24 |
src/gtest-printers.cc \ |
| 25 |
src/gtest-test-part.cc \ |
| 26 |
src/gtest-typed-test.cc \ |
| 27 |
src/gtest.cc |
| 28 |
|
| 29 |
EXTRA_DIST += $(GTEST_SRC) |
| 30 |
|
| 31 |
# Sample files that we don't compile. |
| 32 |
EXTRA_DIST += \ |
| 33 |
samples/prime_tables.h \ |
| 34 |
samples/sample2_unittest.cc \ |
| 35 |
samples/sample3_unittest.cc \ |
| 36 |
samples/sample4_unittest.cc \ |
| 37 |
samples/sample5_unittest.cc \ |
| 38 |
samples/sample6_unittest.cc \ |
| 39 |
samples/sample7_unittest.cc \ |
| 40 |
samples/sample8_unittest.cc \ |
| 41 |
samples/sample9_unittest.cc |
| 42 |
|
| 43 |
# C++ test files that we don't compile directly. |
| 44 |
EXTRA_DIST += \ |
| 45 |
test/gtest-death-test_ex_test.cc \ |
| 46 |
test/gtest-death-test_test.cc \ |
| 47 |
test/gtest-filepath_test.cc \ |
| 48 |
test/gtest-linked_ptr_test.cc \ |
| 49 |
test/gtest-listener_test.cc \ |
| 50 |
test/gtest-message_test.cc \ |
| 51 |
test/gtest-options_test.cc \ |
| 52 |
test/gtest-param-test2_test.cc \ |
| 53 |
test/gtest-param-test2_test.cc \ |
| 54 |
test/gtest-param-test_test.cc \ |
| 55 |
test/gtest-param-test_test.cc \ |
| 56 |
test/gtest-param-test_test.h \ |
| 57 |
test/gtest-port_test.cc \ |
| 58 |
test/gtest_premature_exit_test.cc \ |
| 59 |
test/gtest-printers_test.cc \ |
| 60 |
test/gtest-test-part_test.cc \ |
| 61 |
test/gtest-tuple_test.cc \ |
| 62 |
test/gtest-typed-test2_test.cc \ |
| 63 |
test/gtest-typed-test_test.cc \ |
| 64 |
test/gtest-typed-test_test.h \ |
| 65 |
test/gtest-unittest-api_test.cc \ |
| 66 |
test/gtest_break_on_failure_unittest_.cc \ |
| 67 |
test/gtest_catch_exceptions_test_.cc \ |
| 68 |
test/gtest_color_test_.cc \ |
| 69 |
test/gtest_env_var_test_.cc \ |
| 70 |
test/gtest_environment_test.cc \ |
| 71 |
test/gtest_filter_unittest_.cc \ |
| 72 |
test/gtest_help_test_.cc \ |
| 73 |
test/gtest_list_tests_unittest_.cc \ |
| 74 |
test/gtest_main_unittest.cc \ |
| 75 |
test/gtest_no_test_unittest.cc \ |
| 76 |
test/gtest_output_test_.cc \ |
| 77 |
test/gtest_pred_impl_unittest.cc \ |
| 78 |
test/gtest_prod_test.cc \ |
| 79 |
test/gtest_repeat_test.cc \ |
| 80 |
test/gtest_shuffle_test_.cc \ |
| 81 |
test/gtest_sole_header_test.cc \ |
| 82 |
test/gtest_stress_test.cc \ |
| 83 |
test/gtest_throw_on_failure_ex_test.cc \ |
| 84 |
test/gtest_throw_on_failure_test_.cc \ |
| 85 |
test/gtest_uninitialized_test_.cc \ |
| 86 |
test/gtest_unittest.cc \ |
| 87 |
test/gtest_unittest.cc \ |
| 88 |
test/gtest_xml_outfile1_test_.cc \ |
| 89 |
test/gtest_xml_outfile2_test_.cc \ |
| 90 |
test/gtest_xml_output_unittest_.cc \ |
| 91 |
test/production.cc \ |
| 92 |
test/production.h |
| 93 |
|
| 94 |
|
| 95 |
# CMake script |
| 96 |
EXTRA_DIST += \ |
| 97 |
CMakeLists.txt \ |
| 98 |
cmake/internal_utils.cmake |
| 99 |
|
| 100 |
# xcode project files |
| 101 |
EXTRA_DIST += \ |
| 102 |
xcode/Config/DebugProject.xcconfig \ |
| 103 |
xcode/Config/FrameworkTarget.xcconfig \ |
| 104 |
xcode/Config/General.xcconfig \ |
| 105 |
xcode/Config/ReleaseProject.xcconfig \ |
| 106 |
xcode/Config/StaticLibraryTarget.xcconfig \ |
| 107 |
xcode/Config/TestTarget.xcconfig \ |
| 108 |
xcode/Resources/Info.plist \ |
| 109 |
xcode/Scripts/runtests.sh \ |
| 110 |
xcode/Scripts/versiongenerate.py \ |
| 111 |
xcode/gtest.xcodeproj/project.pbxproj |
| 112 |
|
| 113 |
# xcode sample files |
| 114 |
EXTRA_DIST += \ |
| 115 |
xcode/Samples/FrameworkSample/Info.plist \ |
| 116 |
xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj \ |
| 117 |
xcode/Samples/FrameworkSample/runtests.sh \ |
| 118 |
xcode/Samples/FrameworkSample/widget.cc \ |
| 119 |
xcode/Samples/FrameworkSample/widget.h \ |
| 120 |
xcode/Samples/FrameworkSample/widget_test.cc |
| 121 |
|
| 122 |
# C++Builder project files |
| 123 |
EXTRA_DIST += \ |
| 124 |
codegear/gtest.cbproj \ |
| 125 |
codegear/gtest.groupproj \ |
| 126 |
codegear/gtest_all.cc \ |
| 127 |
codegear/gtest_link.cc \ |
| 128 |
codegear/gtest_main.cbproj \ |
| 129 |
codegear/gtest_unittest.cbproj |
| 130 |
|
| 131 |
# Distribute and install M4 macro |
| 132 |
m4datadir = $(datadir)/aclocal |
| 133 |
m4data_DATA = m4/gtest.m4 |
| 134 |
EXTRA_DIST += $(m4data_DATA) |
| 135 |
|
| 136 |
# We define the global AM_CPPFLAGS as everything we compile includes from these |
| 137 |
# directories. |
| 138 |
AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/include |
| 139 |
|
| 140 |
# Modifies compiler and linker flags for pthreads compatibility. |
| 141 |
if HAVE_PTHREADS |
| 142 |
AM_CXXFLAGS = @PTHREAD_CFLAGS@ -DGTEST_HAS_PTHREAD=1 |
| 143 |
AM_LIBS = @PTHREAD_LIBS@ |
| 144 |
else |
| 145 |
AM_CXXFLAGS = -DGTEST_HAS_PTHREAD=0 |
| 146 |
endif |
| 147 |
|
| 148 |
# Build rules for libraries. |
| 149 |
lib_LTLIBRARIES = lib/libgtest.la lib/libgtest_main.la |
| 150 |
|
| 151 |
lib_libgtest_la_SOURCES = src/gtest-all.cc |
| 152 |
|
| 153 |
pkginclude_HEADERS = \ |
| 154 |
/usr/include/gtest/gtest-death-test.h \ |
| 155 |
/usr/include/gtest/gtest-message.h \ |
| 156 |
/usr/include/gtest/gtest-param-test.h \ |
| 157 |
/usr/include/gtest/gtest-printers.h \ |
| 158 |
/usr/include/gtest/gtest-spi.h \ |
| 159 |
/usr/include/gtest/gtest-test-part.h \ |
| 160 |
/usr/include/gtest/gtest-typed-test.h \ |
| 161 |
/usr/include/gtest/gtest.h \ |
| 162 |
/usr/include/gtest/gtest_pred_impl.h \ |
| 163 |
/usr/include/gtest/gtest_prod.h |
| 164 |
|
| 165 |
pkginclude_internaldir = $(pkgincludedir)/internal |
| 166 |
pkginclude_internal_HEADERS = \ |
| 167 |
/usr/include/gtest/internal/gtest-death-test-internal.h \ |
| 168 |
/usr/include/gtest/internal/gtest-filepath.h \ |
| 169 |
/usr/include/gtest/internal/gtest-internal.h \ |
| 170 |
/usr/include/gtest/internal/gtest-linked_ptr.h \ |
| 171 |
/usr/include/gtest/internal/gtest-param-util-generated.h \ |
| 172 |
/usr/include/gtest/internal/gtest-param-util.h \ |
| 173 |
/usr/include/gtest/internal/gtest-port.h \ |
| 174 |
/usr/include/gtest/internal/gtest-string.h \ |
| 175 |
/usr/include/gtest/internal/gtest-tuple.h \ |
| 176 |
/usr/include/gtest/internal/gtest-type-util.h |
| 177 |
|
| 178 |
lib_libgtest_main_la_SOURCES = src/gtest_main.cc |
| 179 |
lib_libgtest_main_la_LIBADD = lib/libgtest.la |
| 180 |
|
| 181 |
# Bulid rules for samples and tests. Automake's naming for some of |
| 182 |
# these variables isn't terribly obvious, so this is a brief |
| 183 |
# reference: |
| 184 |
# |
| 185 |
# TESTS -- Programs run automatically by "make check" |
| 186 |
# check_PROGRAMS -- Programs built by "make check" but not necessarily run |
| 187 |
|
| 188 |
noinst_LTLIBRARIES = samples/libsamples.la |
| 189 |
|
| 190 |
samples_libsamples_la_SOURCES = \ |
| 191 |
samples/sample1.cc \ |
| 192 |
samples/sample1.h \ |
| 193 |
samples/sample2.cc \ |
| 194 |
samples/sample2.h \ |
| 195 |
samples/sample3-inl.h \ |
| 196 |
samples/sample4.cc \ |
| 197 |
samples/sample4.h |
| 198 |
|
| 199 |
TESTS= |
| 200 |
TESTS_ENVIRONMENT = GTEST_SOURCE_DIR="$(srcdir)/test" \ |
| 201 |
GTEST_BUILD_DIR="$(top_builddir)/test" |
| 202 |
check_PROGRAMS= |
| 203 |
|
| 204 |
# A simple sample on using gtest. |
| 205 |
TESTS += samples/sample1_unittest |
| 206 |
check_PROGRAMS += samples/sample1_unittest |
| 207 |
samples_sample1_unittest_SOURCES = samples/sample1_unittest.cc |
| 208 |
samples_sample1_unittest_LDADD = lib/libgtest_main.la \ |
| 209 |
lib/libgtest.la \ |
| 210 |
samples/libsamples.la |
| 211 |
|
| 212 |
# Another sample. It also verifies that libgtest works. |
| 213 |
TESTS += samples/sample10_unittest |
| 214 |
check_PROGRAMS += samples/sample10_unittest |
| 215 |
samples_sample10_unittest_SOURCES = samples/sample10_unittest.cc |
| 216 |
samples_sample10_unittest_LDADD = lib/libgtest.la |
| 217 |
|
| 218 |
# This tests most constructs of gtest and verifies that libgtest_main |
| 219 |
# and libgtest work. |
| 220 |
TESTS += test/gtest_all_test |
| 221 |
check_PROGRAMS += test/gtest_all_test |
| 222 |
test_gtest_all_test_SOURCES = test/gtest_all_test.cc |
| 223 |
test_gtest_all_test_LDADD = lib/libgtest_main.la \ |
| 224 |
lib/libgtest.la |
| 225 |
|
| 226 |
# Tests that fused gtest files compile and work. |
| 227 |
FUSED_GTEST_SRC = \ |
| 228 |
fused-src/gtest/gtest-all.cc \ |
| 229 |
fused-src/gtest/gtest.h \ |
| 230 |
fused-src/gtest/gtest_main.cc |
| 231 |
|
| 232 |
# Death tests may produce core dumps in the build directory. In case |
| 233 |
# this happens, clean them to keep distcleancheck happy. |
| 234 |
CLEANFILES = core |
| 235 |
|
| 236 |
# Disables 'make install' as installing a compiled version of Google |
| 237 |
# Test can lead to undefined behavior due to violation of the |
| 238 |
# One-Definition Rule. |
| 239 |
|
| 240 |
install-exec-local: |
| 241 |
echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Test into your build system." |
| 242 |
false |
| 243 |
|
| 244 |
install-data-local: |
| 245 |
echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Test into your build system." |
| 246 |
false |