From 0c8745ab0e0a81fd627d6fcbf4569928724ff8c2 Mon Sep 17 00:00:00 2001 From: Brett Wilson Date: Mon, 8 Sep 2014 15:59:49 -0700 Subject: Mark gtest and gmock as testonly in GN. This updates the targets that depend on these to also be test-only. BUG=http://crbug.com/412064 R=jamesr@chromium.org, tfarina@chromium.org Review URL: https://codereview.chromium.org/551933002 Cr-Commit-Position: refs/heads/master@{#293808} --- breakpad/BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'breakpad/BUILD.gn') diff --git a/breakpad/BUILD.gn b/breakpad/BUILD.gn index 9747212..899cfef 100644 --- a/breakpad/BUILD.gn +++ b/breakpad/BUILD.gn @@ -480,7 +480,7 @@ if (is_linux) { ] } - executable("breakpad_unittests") { + test("breakpad_unittests") { sources = [ "linux/breakpad_googletest_includes.h", "src/client/linux/handler/exception_handler_unittest.cc", @@ -542,6 +542,7 @@ if (is_linux) { } executable("linux_dumper_unittest_helper") { + testonly = true sources = [ "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", ] @@ -560,6 +561,7 @@ if (is_linux) { executable("generate_test_dump") { + testonly = true sources = [ "linux/generate-test-dump.cc", ] -- cgit v1.1