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

Side by Side Diff: build/secondary/testing/gtest/BUILD.gn

Issue 1941053002: Allow excluding OS X and iOS specific Google Test extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | build_overrides/gtest.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 sources += [ 107 sources += [
108 "../multiprocess_func_list.cc", 108 "../multiprocess_func_list.cc",
109 "../multiprocess_func_list.h", 109 "../multiprocess_func_list.h",
110 ] 110 ]
111 } 111 }
112 112
113 if (gtest_include_platform_test) { 113 if (gtest_include_platform_test) {
114 sources += [ "../platform_test.h" ] 114 sources += [ "../platform_test.h" ]
115 } 115 }
116 116
117 if (is_mac || is_ios) { 117 if ((is_mac || is_ios) && gtest_include_objc_support) {
118 if (is_ios) { 118 if (is_ios) {
119 set_sources_assignment_filter([]) 119 set_sources_assignment_filter([])
120 } 120 }
121 sources += [ 121 sources += [
122 "../gtest_mac.h", 122 "../gtest_mac.h",
123 "../gtest_mac.mm", 123 "../gtest_mac.mm",
124 ] 124 ]
125 if (gtest_include_platform_test) { 125 if (gtest_include_platform_test) {
126 sources += [ "../platform_test_mac.mm" ] 126 sources += [ "../platform_test_mac.mm" ]
127 } 127 }
128 set_sources_assignment_filter(sources_assignment_filter) 128 set_sources_assignment_filter(sources_assignment_filter)
129 } 129 }
130 130
131 if (is_ios) { 131 if (is_ios && gtest_include_ios_coverage) {
132 sources += [ 132 sources += [
133 "../coverage_util_ios.cc", 133 "../coverage_util_ios.cc",
134 "../coverage_util_ios.h", 134 "../coverage_util_ios.h",
135 ] 135 ]
136 } 136 }
137 137
138 include_dirs = [ "." ] 138 include_dirs = [ "." ]
139 139
140 all_dependent_configs = [ ":gtest_config" ] 140 all_dependent_configs = [ ":gtest_config" ]
141 public_configs = [ ":gtest_direct_config" ] 141 public_configs = [ ":gtest_direct_config" ]
142 142
143 configs -= [ "//build/config/compiler:chromium_code" ] 143 configs -= [ "//build/config/compiler:chromium_code" ]
144 configs += [ 144 configs += [
145 "//build/config/compiler:no_chromium_code", 145 "//build/config/compiler:no_chromium_code",
146 146
147 # Must be after no_chromium_code for warning flags to be ordered correctly. 147 # Must be after no_chromium_code for warning flags to be ordered correctly.
148 ":gtest_warnings", 148 ":gtest_warnings",
149 ] 149 ]
150 } 150 }
151 151
152 source_set("gtest_main") { 152 source_set("gtest_main") {
153 testonly = true 153 testonly = true
154 sources = [ 154 sources = [
155 "src/gtest_main.cc", 155 "src/gtest_main.cc",
156 ] 156 ]
157 deps = [ 157 deps = [
158 ":gtest", 158 ":gtest",
159 ] 159 ]
160 } 160 }
OLDNEW
« no previous file with comments | « no previous file | build_overrides/gtest.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698