Mojo: Fix perf tests.

test_support_perf has its own main() (i.e., in run_all_perftests.cc), which
obviously doesn't initialize Mojo. Oops.

[email protected], [email protected]

Review URL: https://codereview.chromium.org/89373002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237429 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/mojo/mojo.gyp b/mojo/mojo.gyp
index 8317167..bd5af60 100644
--- a/mojo/mojo.gyp
+++ b/mojo/mojo.gyp
@@ -58,6 +58,17 @@
       ],
     },
     {
+      'target_name': 'mojo_run_all_perftests',
+      'type': 'static_library',
+      'dependencies': [
+        '../base/base.gyp:test_support_base',
+        'mojo_system',
+      ],
+      'sources': [
+        'common/test/run_all_perftests.cc',
+      ],
+    },
+    {
       'target_name': 'mojo_common_lib',
       'type': '<(component)',
       'defines': [
@@ -135,10 +146,9 @@
       'type': 'executable',
       'dependencies': [
         '../base/base.gyp:base',
-        '../base/base.gyp:test_support_perf',
         '../testing/gtest.gyp:gtest',
         'mojo_public_test_support',
-        'mojo_run_all_unittests',
+        'mojo_run_all_perftests',
         'mojo_system',
       ],
       'sources': [