OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build_overrides/gtest.gni") | 5 import("//build_overrides/gtest.gni") |
6 | 6 |
7 config("gtest_config") { | 7 config("gtest_config") { |
8 visibility = [ | 8 visibility = [ |
9 ":*", | 9 ":*", |
10 "//testing/gmock:*", # gmock also shares this config. | 10 "//testing/gmock:*", # gmock also shares this config. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 sources += [ | 91 sources += [ |
92 "../gtest_mac.h", | 92 "../gtest_mac.h", |
93 "../gtest_mac.mm", | 93 "../gtest_mac.mm", |
94 ] | 94 ] |
95 if (gtest_include_platform_test) { | 95 if (gtest_include_platform_test) { |
96 sources += [ "../platform_test_mac.mm" ] | 96 sources += [ "../platform_test_mac.mm" ] |
97 } | 97 } |
98 set_sources_assignment_filter(sources_assignment_filter) | 98 set_sources_assignment_filter(sources_assignment_filter) |
99 } | 99 } |
100 | 100 |
101 if (is_ios && gtest_include_ios_coverage) { | 101 if (is_ios && gtest_include_ios_coverage) { |
lpromero
2017/03/31 11:22:06
"gtest_include_ios_coverage" is mentioned here, fo
| |
102 sources += [ | 102 sources += [ |
103 "../coverage_util_ios.cc", | |
104 "../coverage_util_ios.h", | 103 "../coverage_util_ios.h", |
104 "../coverage_util_ios.mm", | |
105 ] | 105 ] |
106 } | 106 } |
107 | 107 |
108 include_dirs = [ "." ] | 108 include_dirs = [ "." ] |
109 | 109 |
110 all_dependent_configs = [ ":gtest_config" ] | 110 all_dependent_configs = [ ":gtest_config" ] |
111 public_configs = [ ":gtest_direct_config" ] | 111 public_configs = [ ":gtest_direct_config" ] |
112 | 112 |
113 configs -= [ "//build/config/compiler:chromium_code" ] | 113 configs -= [ "//build/config/compiler:chromium_code" ] |
114 configs += [ | 114 configs += [ |
115 "//build/config/compiler:no_chromium_code", | 115 "//build/config/compiler:no_chromium_code", |
116 | 116 |
117 # Must be after no_chromium_code for warning flags to be ordered correctly. | 117 # Must be after no_chromium_code for warning flags to be ordered correctly. |
118 ":gtest_warnings", | 118 ":gtest_warnings", |
119 ] | 119 ] |
120 } | 120 } |
121 | 121 |
122 source_set("gtest_main") { | 122 source_set("gtest_main") { |
123 testonly = true | 123 testonly = true |
124 sources = [ | 124 sources = [ |
125 "src/gtest_main.cc", | 125 "src/gtest_main.cc", |
126 ] | 126 ] |
127 deps = [ | 127 deps = [ |
128 ":gtest", | 128 ":gtest", |
129 ] | 129 ] |
130 } | 130 } |
OLD | NEW |