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

Side by Side Diff: testing/test.gni

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
« base/BUILD.gn ('K') | « build/toolchain/mac/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 # ============================================================================== 5 # ==============================================================================
6 # TEST SETUP 6 # TEST SETUP
7 # ============================================================================== 7 # ==============================================================================
8 8
9 # Define a test as an executable (or apk on Android) with the "testonly" flag 9 # Define a test as an executable (or apk on Android) with the "testonly" flag
10 # set. 10 # set.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 group(target_name) { 98 group(target_name) {
99 testonly = true 99 testonly = true
100 datadeps = [ 100 datadeps = [
101 ":$test_runner_script_name", 101 ":$test_runner_script_name",
102 ] 102 ]
103 deps = [ 103 deps = [
104 ":$library_name", 104 ":$library_name",
105 ":$apk_name", 105 ":$apk_name",
106 ] 106 ]
107 } 107 }
108 } else if (is_ios) {
109 if (is_ios) {
110 import("//build/config/ios/rules.gni")
111 }
112
113 target__sources_name = "${target_name}__sources"
114 if (defined(invoker.sources)) {
115 source_set(target__sources_name) {
116 sources = invoker.sources
117 testonly = true
118
119 configs = [] # Prevent list overwriting warning.
120 configs += invoker.configs
121
122 forward_variables_from(invoker,
123 [
124 "data",
125 "deps",
126 "data_deps",
127 "datadeps",
128 "defines",
129 "includes",
130 ])
131 }
132 }
133
134 ios_app(target_name) {
135 # TODO(GYP): Make this configurable and only provide a default
136 # that can be overridden.
137 info_plist = "//testing/gtest_ios/unittest-Info.plist"
138 app_name = target_name
139 entitlements_path = "//testing/gtest_ios"
140 code_signing_identity = ""
141 testonly = true
142
143 # See above call.
144 set_sources_assignment_filter([])
145
146 forward_variables_from(invoker,
147 [
148 "all_dependent_configs",
149 "allow_circular_includes_from",
150 "cflags",
151 "cflags_c",
152 "cflags_cc",
153 "cflags_objc",
154 "cflags_objcc",
155 "check_includes",
156 "forward_dependent_configs_from",
157 "include_dirs",
158 "ldflags",
159 "libs",
160 "output_extension",
161 "output_name",
162 "public",
163 "public_configs",
164 "public_deps",
165 "visibility",
166 ])
167
168 if (defined(invoker.deps)) {
169 deps = invoker.deps
170 } else {
171 deps = []
172 }
173 deps += [
174 # All shared libraries must have the sanitizer deps to properly link in
175 # asan mode (this target will be empty in other cases).
176 "//build/config/sanitizers:deps",
177 ]
178
179 if (defined(invoker.sources)) {
180 deps += [ ":${target__sources_name}" ]
181 }
182 }
108 } else { 183 } else {
109 executable(target_name) { 184 executable(target_name) {
110 forward_variables_from(invoker, "*") 185 forward_variables_from(invoker, "*")
111 186
112 testonly = true 187 testonly = true
113 188
114 if (!defined(invoker.deps)) { 189 if (!defined(invoker.deps)) {
115 deps = [] 190 deps = []
116 } 191 }
117 deps += [ 192 deps += [
118 # All shared libraries must have the sanitizer deps to properly link in 193 # All shared libraries must have the sanitizer deps to properly link in
119 # asan mode (this target will be empty in other cases). 194 # asan mode (this target will be empty in other cases).
120 "//build/config/sanitizers:deps", 195 "//build/config/sanitizers:deps",
121 196
122 # Give tests the default manifest on Windows (a no-op elsewhere). 197 # Give tests the default manifest on Windows (a no-op elsewhere).
123 "//build/win:default_exe_manifest", 198 "//build/win:default_exe_manifest",
124 ] 199 ]
125 } 200 }
126 } 201 }
127 } 202 }
OLDNEW
« base/BUILD.gn ('K') | « build/toolchain/mac/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698