summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 19:13:06 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 19:13:06 +0000
commit4b0f9635f09dd8db54d6e4e699c7bc20c4aaebee (patch)
treea695250495947ef597c3bae0e33a9aa26f89cf7b /testing
parentfb5e7d01b21d5fdc1aacc6d96240a1ae22b3374d (diff)
downloadchromium_src-4b0f9635f09dd8db54d6e4e699c7bc20c4aaebee.zip
chromium_src-4b0f9635f09dd8db54d6e4e699c7bc20c4aaebee.tar.gz
chromium_src-4b0f9635f09dd8db54d6e4e699c7bc20c4aaebee.tar.bz2
gtest shouldn't link in gtest_main.cc, as that provides its own main().
Split gtest into two libraries, where the latter provides main(). This is consistent with the way gtest works within Google and with its automake files. Fix binaries that require gtest's main() to depend on gtest.gyp:main. Review URL: http://codereview.chromium.org/99132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing')
-rw-r--r--testing/gtest.gyp13
1 files changed, 12 insertions, 1 deletions
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
index 078ca3c..c7d5c62 100644
--- a/testing/gtest.gyp
+++ b/testing/gtest.gyp
@@ -40,7 +40,6 @@
'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',
@@ -65,5 +64,17 @@
],
},
},
+ {
+ # Note that calling this "gtest_main" confuses the scons build,
+ # which uses "_main" on scons files to produce special behavior.
+ 'target_name': 'gtestmain',
+ 'type': '<(library)',
+ 'dependencies': [
+ 'gtest',
+ ],
+ 'sources': [
+ 'gtest/src/gtest_main.cc',
+ ],
+ },
],
}