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

Side by Side Diff: components/nacl/loader/BUILD.gn

Issue 1664653003: Revert of Move gn _run target generation into test(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « components/BUILD.gn ('k') | content/test/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
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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 assert(enable_nacl) 9 assert(enable_nacl)
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 "//ppapi/shared_impl", 64 "//ppapi/shared_impl",
65 "//third_party/mojo/src/mojo/edk/system", 65 "//third_party/mojo/src/mojo/edk/system",
66 ] 66 ]
67 67
68 data_deps = [ 68 data_deps = [
69 "//ppapi/native_client:irt", 69 "//ppapi/native_client:irt",
70 "//ppapi/native_client/src/untrusted/pnacl_support_extension", 70 "//ppapi/native_client/src/untrusted/pnacl_support_extension",
71 ] 71 ]
72 } 72 }
73 73
74 # TODO(GYP): Delete this after we've converted everything to GN.
75 # The _run targets exist only for compatibility w/ GYP.
76 group("nacl_loader_unittests_run") {
77 testonly = true
78 deps = [
79 ":nacl_loader_unittests",
80 ]
81 }
82
74 test("nacl_loader_unittests") { 83 test("nacl_loader_unittests") {
75 sources = [ 84 sources = [
76 "nacl_ipc_adapter_unittest.cc", 85 "nacl_ipc_adapter_unittest.cc",
77 "nacl_validation_query_unittest.cc", 86 "nacl_validation_query_unittest.cc",
78 "run_all_unittests.cc", 87 "run_all_unittests.cc",
79 ] 88 ]
80 89
81 deps = [ 90 deps = [
82 ":loader", 91 ":loader",
83 "//base/test:test_support", 92 "//base/test:test_support",
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 149 }
141 150
142 test("nacl_helper_nonsfi_unittests") { 151 test("nacl_helper_nonsfi_unittests") {
143 sources = [ 152 sources = [
144 "nonsfi/nacl_helper_nonsfi_unittests.cc", 153 "nonsfi/nacl_helper_nonsfi_unittests.cc",
145 ] 154 ]
146 deps = [ 155 deps = [
147 "//base", 156 "//base",
148 "//base/test:test_launcher_nacl_nonsfi", 157 "//base/test:test_launcher_nacl_nonsfi",
149 ] 158 ]
150 data_deps = [
151 ":nacl_helper_nonsfi_unittests_main_copy(//build/toolchain/nacl:newlib_pna cl_nonsfi)",
152 ]
153 } 159 }
154 160
155 group("helper_nonsfi") { 161 group("helper_nonsfi") {
156 data_deps = [ 162 data_deps = [
157 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)", 163 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)",
158 ] 164 ]
159 } 165 }
166
167 group("helper_nonsfi_unittests") {
168 testonly = true
169 data_deps = [
170 ":nacl_helper_nonsfi_unittests",
171 ":nacl_helper_nonsfi_unittests_main_copy(//build/toolchain/nacl:newlib_pna cl_nonsfi)",
172 ]
173 }
174
175 # TODO(GYP): Delete this after we've converted everything to GN.
176 # The _run targets exist only for compatibility w/ GYP.
177 group("nacl_helper_nonsfi_unittests_run") {
178 testonly = true
179 data_deps = [
180 ":helper_nonsfi_unittests",
181 ":nacl_helper_nonsfi_unittests_main_copy(//build/toolchain/nacl:newlib_pna cl_nonsfi)",
182 ]
183 }
160 } 184 }
161 185
162 if (is_win && target_cpu == "x86" && current_cpu == "x64") { 186 if (is_win && target_cpu == "x86" && current_cpu == "x64") {
163 source_set("nacl_helper_win_64") { 187 source_set("nacl_helper_win_64") {
164 sources = [ 188 sources = [
165 "nacl_helper_win_64.cc", 189 "nacl_helper_win_64.cc",
166 "nacl_helper_win_64.h", 190 "nacl_helper_win_64.h",
167 ] 191 ]
168 192
169 deps = [ 193 deps = [
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 "${root_out_dir}/nacl_helper_nonsfi_unittests_main", 299 "${root_out_dir}/nacl_helper_nonsfi_unittests_main",
276 ] 300 ]
277 outputs = [ 301 outputs = [
278 "${root_build_dir}/{{source_file_part}}", 302 "${root_build_dir}/{{source_file_part}}",
279 ] 303 ]
280 deps = [ 304 deps = [
281 ":nacl_helper_nonsfi_unittests_main", 305 ":nacl_helper_nonsfi_unittests_main",
282 ] 306 ]
283 } 307 }
284 } 308 }
OLDNEW
« no previous file with comments | « components/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698