Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: tools/gn/secondary/testing/BUILD.gn

Issue 25698002: (mostly) working wtf / wtf_unittests gn targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # TODO(brettw) move to testing/gtest/BUILD.gn 5 # TODO(brettw) move to testing/gtest/BUILD.gn
6 config("gtest_config") { 6 config("gtest_config") {
7 defines = [ "UNIT_TEST" ] 7 defines = [ "UNIT_TEST" ]
8 include_dirs = [ "gtest/include" ] # Gtest headers need to be able to find th emselves. 8 include_dirs = [ "gtest/include" ] # Gtest headers need to be able to find th emselves.
9 if (is_win) { 9 if (is_win) {
10 cflags = [ "/wd4800" ] # Unused variable warning. 10 cflags = [ "/wd4800" ] # Unused variable warning.
(...skipping 30 matching lines...) Expand all
41 "gtest/src/gtest-port.cc", 41 "gtest/src/gtest-port.cc",
42 "gtest/src/gtest-printers.cc", 42 "gtest/src/gtest-printers.cc",
43 "gtest/src/gtest-test-part.cc", 43 "gtest/src/gtest-test-part.cc",
44 "gtest/src/gtest-typed-test.cc", 44 "gtest/src/gtest-typed-test.cc",
45 "gtest/src/gtest.cc", 45 "gtest/src/gtest.cc",
46 "multiprocess_func_list.cc", 46 "multiprocess_func_list.cc",
47 "multiprocess_func_list.h", 47 "multiprocess_func_list.h",
48 "platform_test.h", 48 "platform_test.h",
49 ] 49 ]
50 50
51 if (is_mac) {
52 sources += [
53 "gtest_mac.h",
54 "gtest_mac.mm",
55 "platform_test_mac.mm",
56 ]
57 }
58
51 include_dirs = [ "gtest" ] 59 include_dirs = [ "gtest" ]
52 direct_dependent_configs = [ ":gtest_config" ] 60 direct_dependent_configs = [ ":gtest_config" ]
61
62 configs -= "//build/config/compiler:chromium_code"
63 configs += "//build/config/compiler:no_chromium_code"
53 } 64 }
54 65
55 # TODO(brettw) move to testing/gmock/BUILD.gn 66 # TODO(brettw) move to testing/gmock/BUILD.gn
56 config("gmock_config") { 67 config("gmock_config") {
57 # Gmock headers need to be able to find themselves. 68 # Gmock headers need to be able to find themselves.
58 include_dirs = [ "gmock/include" ] 69 include_dirs = [ "gmock/include" ]
59 } 70 }
60 71
61 # TODO(brettw) move to testing/gmock/BUILD.gn 72 # TODO(brettw) move to testing/gmock/BUILD.gn
62 static_library("gmock") { 73 static_library("gmock") {
(...skipping 29 matching lines...) Expand all
92 "//testing:gtest_config", 103 "//testing:gtest_config",
93 ] 104 ]
94 } 105 }
95 106
96 # TODO(brettw) move to testing/gmock/BUILD.gn 107 # TODO(brettw) move to testing/gmock/BUILD.gn
97 static_library("gmock_main") { 108 static_library("gmock_main") {
98 external = true 109 external = true
99 sources = [ "src/gmock_main.cc" ] 110 sources = [ "src/gmock_main.cc" ]
100 deps = [ ":gmock" ] 111 deps = [ ":gmock" ]
101 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698