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

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

Issue 1250913002: patch from chinmaygarde@ to make progress on mac, ios. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: status Created 5 years, 4 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
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 config("gtest_config") { 5 config("gtest_config") {
6 visibility = [ 6 visibility = [
7 ":*", 7 ":*",
8 "//testing/gmock:*", # gmock also shares this config. 8 "//testing/gmock:*", # gmock also shares this config.
9 ] 9 ]
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 "src/gtest-death-test.cc", 89 "src/gtest-death-test.cc",
90 "src/gtest-filepath.cc", 90 "src/gtest-filepath.cc",
91 "src/gtest-internal-inl.h", 91 "src/gtest-internal-inl.h",
92 "src/gtest-port.cc", 92 "src/gtest-port.cc",
93 "src/gtest-printers.cc", 93 "src/gtest-printers.cc",
94 "src/gtest-test-part.cc", 94 "src/gtest-test-part.cc",
95 "src/gtest-typed-test.cc", 95 "src/gtest-typed-test.cc",
96 "src/gtest.cc", 96 "src/gtest.cc",
97 ] 97 ]
98 98
99 if (is_mac) { 99 if (is_mac || is_ios) {
100 if (is_ios) {
101 set_sources_assignment_filter([])
102 }
100 sources += [ 103 sources += [
101 "../gtest_mac.h", 104 "../gtest_mac.h",
102 "../gtest_mac.mm", 105 "../gtest_mac.mm",
103 "../platform_test_mac.mm", 106 "../platform_test_mac.mm",
104 ] 107 ]
108 set_sources_assignment_filter(sources_assignment_filter)
109 }
110
111 if (is_ios) {
112 sources += [
113 "../coverage_util_ios.cc",
114 "../coverage_util_ios.h",
115 ]
105 } 116 }
106 117
107 include_dirs = [ "." ] 118 include_dirs = [ "." ]
108 119
109 all_dependent_configs = [ ":gtest_config" ] 120 all_dependent_configs = [ ":gtest_config" ]
110 public_configs = [ ":gtest_direct_config" ] 121 public_configs = [ ":gtest_direct_config" ]
111 122
112 configs -= [ "//build/config/compiler:chromium_code" ] 123 configs -= [ "//build/config/compiler:chromium_code" ]
113 configs += [ "//build/config/compiler:no_chromium_code" ] 124 configs += [ "//build/config/compiler:no_chromium_code" ]
114 125
(...skipping 11 matching lines...) Expand all
126 source_set("gtest_main") { 137 source_set("gtest_main") {
127 # TODO http://crbug.com/412064 enable this flag all the time. 138 # TODO http://crbug.com/412064 enable this flag all the time.
128 testonly = !is_component_build 139 testonly = !is_component_build
129 sources = [ 140 sources = [
130 "src/gtest_main.cc", 141 "src/gtest_main.cc",
131 ] 142 ]
132 deps = [ 143 deps = [
133 ":gtest", 144 ":gtest",
134 ] 145 ]
135 } 146 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698