From 5e8c6691bace726b64c76ba4fdc68c3ea0a1a325 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Tue, 28 Apr 2009 19:12:28 +0000 Subject: Revert "gtest shouldn't link in gtest_main.cc, as that provides its own main()." This reverts commit r14755. Ugh, Windows build uses some gyp and some not. :( git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14759 0039d316-1c4b-4281-b951-d872f2087c98 --- build/temp_gyp/googleurl.gyp | 1 - printing/printing.gyp | 1 - testing/gtest.gyp | 13 +------------ 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/build/temp_gyp/googleurl.gyp b/build/temp_gyp/googleurl.gyp index d5d0ea7..b518e4c 100644 --- a/build/temp_gyp/googleurl.gyp +++ b/build/temp_gyp/googleurl.gyp @@ -62,7 +62,6 @@ 'dependencies': [ 'googleurl', '../../testing/gtest.gyp:gtest', - '../../testing/gtest.gyp:main', '../../third_party/icu38/icu38.gyp:icuuc', ], 'sources': [ diff --git a/printing/printing.gyp b/printing/printing.gyp index baa6341..51768fd 100644 --- a/printing/printing.gyp +++ b/printing/printing.gyp @@ -46,7 +46,6 @@ 'dependencies': [ 'printing', '../testing/gtest.gyp:gtest', - '../testing/gtest.gyp:main', ], 'sources': [ 'units_unittest.cc', diff --git a/testing/gtest.gyp b/testing/gtest.gyp index 88866a6..078ca3c 100644 --- a/testing/gtest.gyp +++ b/testing/gtest.gyp @@ -40,6 +40,7 @@ 'gtest/src/gtest-internal-inl.h', 'gtest/src/gtest-port.cc', 'gtest/src/gtest.cc', + 'gtest/src/gtest_main.cc', 'multiprocess_func_list.cc', 'multiprocess_func_list.h', 'platform_test.h', @@ -64,17 +65,5 @@ ], }, }, - { - # Note that calling this "gtest_main" confuses the scons build, - # which uses "_main" on files to produce special behavior. - 'target_name': 'main', - 'type': '<(library)', - 'dependencies': [ - 'gtest', - ], - 'sources': [ - 'gtest/src/gtest_main.cc', - ], - }, ], } -- cgit v1.1