Correct blacklist entry message
[chromium-blink-merge.git] / tools / gn / secondary / testing / BUILD.gn
blob70910b3faa1f6313b071a882ea544be708a7953e
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
3 # found in the LICENSE file.
5 # TODO(brettw) move to testing/gtest/BUILD.gn
6 config("gtest_config") {
7   defines = [ "UNIT_TEST" ]
8   include_dirs = [ "gtest/include" ]  # Gtest headers need to be able to find themselves.
9   if (is_win) {
10     cflags = [ "/wd4800" ]  # Unused variable warning.
11   }
14 # TODO(brettw) move to testing/gtest/BUILD.gn
15 static_library("gtest") {
16   external = true
17   gyp_file = "gtest.gyp"
18   sources = [
19     "gtest/include/gtest/gtest-death-test.h",
20     "gtest/include/gtest/gtest-message.h",
21     "gtest/include/gtest/gtest-param-test.h",
22     "gtest/include/gtest/gtest-printers.h",
23     "gtest/include/gtest/gtest-spi.h",
24     "gtest/include/gtest/gtest-test-part.h",
25     "gtest/include/gtest/gtest-typed-test.h",
26     "gtest/include/gtest/gtest.h",
27     "gtest/include/gtest/gtest_pred_impl.h",
28     "gtest/include/gtest/internal/gtest-death-test-internal.h",
29     "gtest/include/gtest/internal/gtest-filepath.h",
30     "gtest/include/gtest/internal/gtest-internal.h",
31     "gtest/include/gtest/internal/gtest-linked_ptr.h",
32     "gtest/include/gtest/internal/gtest-param-util-generated.h",
33     "gtest/include/gtest/internal/gtest-param-util.h",
34     "gtest/include/gtest/internal/gtest-port.h",
35     "gtest/include/gtest/internal/gtest-string.h",
36     "gtest/include/gtest/internal/gtest-tuple.h",
37     "gtest/include/gtest/internal/gtest-type-util.h",
38     #"gtest/src/gtest-all.cc",  # Not needed by our build.
39     "gtest/src/gtest-death-test.cc",
40     "gtest/src/gtest-filepath.cc",
41     "gtest/src/gtest-internal-inl.h",
42     "gtest/src/gtest-port.cc",
43     "gtest/src/gtest-printers.cc",
44     "gtest/src/gtest-test-part.cc",
45     "gtest/src/gtest-typed-test.cc",
46     "gtest/src/gtest.cc",
47     "multiprocess_func_list.cc",
48     "multiprocess_func_list.h",
49     "platform_test.h",
50   ]
52     if (is_mac) {
53       sources += [
54         "gtest_mac.h",
55         "gtest_mac.mm",
56         "platform_test_mac.mm",
57       ]
58     }
60   include_dirs = [ "gtest" ]
61   direct_dependent_configs = [ ":gtest_config" ]
63   configs -= "//build/config/compiler:chromium_code"
64   configs += "//build/config/compiler:no_chromium_code"
67 # TODO(brettw) move to testing/gmock/BUILD.gn
68 config("gmock_config") {
69   # Gmock headers need to be able to find themselves.
70   include_dirs = [ "gmock/include" ]
73 # TODO(brettw) move to testing/gmock/BUILD.gn
74 static_library("gmock") {
75   gyp_file = "gmock.gyp"
76   external = true
77   sources = [
78     # Sources based on files in r173 of gmock.
79     "gmock/include/gmock/gmock-actions.h",
80     "gmock/include/gmock/gmock-cardinalities.h",
81     "gmock/include/gmock/gmock-generated-actions.h",
82     "gmock/include/gmock/gmock-generated-function-mockers.h",
83     "gmock/include/gmock/gmock-generated-matchers.h",
84     "gmock/include/gmock/gmock-generated-nice-strict.h",
85     "gmock/include/gmock/gmock-matchers.h",
86     "gmock/include/gmock/gmock-spec-builders.h",
87     "gmock/include/gmock/gmock.h",
88     "gmock/include/gmock/internal/gmock-generated-internal-utils.h",
89     "gmock/include/gmock/internal/gmock-internal-utils.h",
90     "gmock/include/gmock/internal/gmock-port.h",
91     #"gmock/src/gmock-all.cc",  # Not needed by our build.
92     "gmock/src/gmock-cardinalities.cc",
93     "gmock/src/gmock-internal-utils.cc",
94     "gmock/src/gmock-matchers.cc",
95     "gmock/src/gmock-spec-builders.cc",
96     "gmock/src/gmock.cc",
97     "gmock_mutant.h",  # gMock helpers
98   ]
100   # This project includes some stuff form gtest's guts.
101   include_dirs = [ "gtest/include" ]
103   direct_dependent_configs = [
104     ":gmock_config",
105     "//testing:gtest_config",
106   ]
109 # TODO(brettw) move to testing/gmock/BUILD.gn
110 static_library("gmock_main") {
111   external = true
112   gyp_file = "gmock.gyp"
113   sources = [ "src/gmock_main.cc" ]
114   deps = [ ":gmock" ]