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

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

Issue 1662053002: Move gn _run target generation into test(). (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +kbr changes 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
83 test("nacl_loader_unittests") { 74 test("nacl_loader_unittests") {
84 sources = [ 75 sources = [
85 "nacl_ipc_adapter_unittest.cc", 76 "nacl_ipc_adapter_unittest.cc",
86 "nacl_validation_query_unittest.cc", 77 "nacl_validation_query_unittest.cc",
87 "run_all_unittests.cc", 78 "run_all_unittests.cc",
88 ] 79 ]
89 80
90 deps = [ 81 deps = [
91 ":loader", 82 ":loader",
92 "//base/test:test_support", 83 "//base/test:test_support",
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 140 }
150 141
151 test("nacl_helper_nonsfi_unittests") { 142 test("nacl_helper_nonsfi_unittests") {
152 sources = [ 143 sources = [
153 "nonsfi/nacl_helper_nonsfi_unittests.cc", 144 "nonsfi/nacl_helper_nonsfi_unittests.cc",
154 ] 145 ]
155 deps = [ 146 deps = [
156 "//base", 147 "//base",
157 "//base/test:test_launcher_nacl_nonsfi", 148 "//base/test:test_launcher_nacl_nonsfi",
158 ] 149 ]
150 data_deps = [
151 ":nacl_helper_nonsfi_unittests_main_copy(//build/toolchain/nacl:newlib_pna cl_nonsfi)",
152 ]
159 } 153 }
160 154
161 group("helper_nonsfi") { 155 group("helper_nonsfi") {
162 data_deps = [ 156 data_deps = [
163 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)", 157 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)",
164 ] 158 ]
165 } 159 }
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 }
184 } 160 }
185 161
186 if (is_win && target_cpu == "x86" && current_cpu == "x64") { 162 if (is_win && target_cpu == "x86" && current_cpu == "x64") {
187 source_set("nacl_helper_win_64") { 163 source_set("nacl_helper_win_64") {
188 sources = [ 164 sources = [
189 "nacl_helper_win_64.cc", 165 "nacl_helper_win_64.cc",
190 "nacl_helper_win_64.h", 166 "nacl_helper_win_64.h",
191 ] 167 ]
192 168
193 deps = [ 169 deps = [
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 "${root_out_dir}/nacl_helper_nonsfi_unittests_main", 275 "${root_out_dir}/nacl_helper_nonsfi_unittests_main",
300 ] 276 ]
301 outputs = [ 277 outputs = [
302 "${root_build_dir}/{{source_file_part}}", 278 "${root_build_dir}/{{source_file_part}}",
303 ] 279 ]
304 deps = [ 280 deps = [
305 ":nacl_helper_nonsfi_unittests_main", 281 ":nacl_helper_nonsfi_unittests_main",
306 ] 282 ]
307 } 283 }
308 } 284 }
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