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

Side by Side Diff: trunk/src/testing/gtest/BUILD.gn

Issue 218493017: Revert 260949 "Move gtest/gmock BUILD.gn files to main tree." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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
« no previous file with comments | « trunk/src/testing/gmock/BUILD.gn ('k') | trunk/src/tools/gn/secondary/testing/gmock/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 config("gtest_config") {
6 defines = [
7 "UNIT_TEST",
8
9 # In order to allow regex matches in gtest to be shared between Windows
10 # and other systems, we tell gtest to always use it's internal engine.
11 "GTEST_HAS_POSIX_RE=0",
12 ]
13
14 # Gtest headers need to be able to find themselves.
15 include_dirs = [ "include" ]
16
17 if (is_posix) {
18 defines += [
19 # gtest isn't able to figure out when RTTI is disabled for gcc
20 # versions older than 4.3.2, and assumes it's enabled. Our Mac
21 # and Linux builds disable RTTI, and cannot guarantee that the
22 # compiler will be 4.3.2. or newer. The Mac, for example, uses
23 # 4.2.1 as that is the latest available on that platform. gtest
24 # must be instructed that RTTI is disabled here, and for any
25 # direct dependents that might include gtest headers.
26 "GTEST_HAS_RTTI=0",
27 ]
28 }
29 }
30
31 static_library("gtest") {
32 sources = [
33 "include/gtest/gtest-death-test.h",
34 "include/gtest/gtest-message.h",
35 "include/gtest/gtest-param-test.h",
36 "include/gtest/gtest-printers.h",
37 "include/gtest/gtest-spi.h",
38 "include/gtest/gtest-test-part.h",
39 "include/gtest/gtest-typed-test.h",
40 "include/gtest/gtest.h",
41 "include/gtest/gtest_pred_impl.h",
42 "include/gtest/internal/gtest-death-test-internal.h",
43 "include/gtest/internal/gtest-filepath.h",
44 "include/gtest/internal/gtest-internal.h",
45 "include/gtest/internal/gtest-linked_ptr.h",
46 "include/gtest/internal/gtest-param-util-generated.h",
47 "include/gtest/internal/gtest-param-util.h",
48 "include/gtest/internal/gtest-port.h",
49 "include/gtest/internal/gtest-string.h",
50 "include/gtest/internal/gtest-tuple.h",
51 "include/gtest/internal/gtest-type-util.h",
52 #"gtest/src/gtest-all.cc", # Not needed by our build.
53 "src/gtest-death-test.cc",
54 "src/gtest-filepath.cc",
55 "src/gtest-internal-inl.h",
56 "src/gtest-port.cc",
57 "src/gtest-printers.cc",
58 "src/gtest-test-part.cc",
59 "src/gtest-typed-test.cc",
60 "src/gtest.cc",
61 "../multiprocess_func_list.cc",
62 "../multiprocess_func_list.h",
63 "../platform_test.h",
64 ]
65
66 if (is_mac) {
67 sources += [
68 "../gtest_mac.h",
69 "../gtest_mac.mm",
70 "../platform_test_mac.mm",
71 ]
72 }
73
74 include_dirs = [ "." ]
75
76 all_dependent_configs = [ ":gtest_config" ]
77 if (is_win) {
78 all_dependent_configs += [
79 "//build/config/win:disable_unused_variable_warning",
80 ]
81 }
82
83 configs -= [ "//build/config/compiler:chromium_code" ]
84 configs += [ "//build/config/compiler:no_chromium_code" ]
85 }
OLDNEW
« no previous file with comments | « trunk/src/testing/gmock/BUILD.gn ('k') | trunk/src/tools/gn/secondary/testing/gmock/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698