OLD | NEW |
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 # For setting up nacl_helper. | 134 # For setting up nacl_helper. |
135 source_set("nacl_helper_integration") { | 135 source_set("nacl_helper_integration") { |
136 public = [ | 136 public = [ |
137 "nacl_helper_linux.h", | 137 "nacl_helper_linux.h", |
138 ] | 138 ] |
139 data_deps = [ | 139 data_deps = [ |
140 ":nacl_helper", | 140 ":nacl_helper", |
141 ] | 141 ] |
142 } | 142 } |
143 | 143 |
144 test("nacl_helper_nonsfi_unittests") { | 144 if (enable_nacl_nonsfi) { |
145 sources = [ | 145 test("nacl_helper_nonsfi_unittests") { |
146 "nonsfi/nacl_helper_nonsfi_unittests.cc", | 146 sources = [ |
147 ] | 147 "nonsfi/nacl_helper_nonsfi_unittests.cc", |
148 deps = [ | 148 ] |
149 "//base", | 149 deps = [ |
150 "//base/test:test_launcher_nacl_nonsfi", | 150 "//base", |
151 ] | 151 "//base/test:test_launcher_nacl_nonsfi", |
152 data_deps = [ | 152 ] |
153 ":nacl_helper_nonsfi_unittests_main_copy(//build/toolchain/nacl:newlib_pna
cl_nonsfi)", | 153 data_deps = [ |
154 ] | 154 ":nacl_helper_nonsfi_unittests_main_copy(//build/toolchain/nacl:newlib_p
nacl_nonsfi)", |
155 } | 155 ] |
| 156 } |
156 | 157 |
157 group("helper_nonsfi") { | 158 group("helper_nonsfi") { |
158 data_deps = [ | 159 data_deps = [ |
159 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)", | 160 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)", |
160 ] | 161 ] |
| 162 } |
161 } | 163 } |
162 } | 164 } |
163 | 165 |
164 if (is_win && target_cpu == "x86" && current_cpu == "x64") { | 166 if (is_win && target_cpu == "x86" && current_cpu == "x64") { |
165 source_set("nacl_helper_win_64") { | 167 source_set("nacl_helper_win_64") { |
166 sources = [ | 168 sources = [ |
167 "nacl_helper_win_64.cc", | 169 "nacl_helper_win_64.cc", |
168 "nacl_helper_win_64.h", | 170 "nacl_helper_win_64.h", |
169 ] | 171 ] |
170 | 172 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 "${root_out_dir}/nacl_helper_nonsfi_unittests_main", | 280 "${root_out_dir}/nacl_helper_nonsfi_unittests_main", |
279 ] | 281 ] |
280 outputs = [ | 282 outputs = [ |
281 "${root_build_dir}/{{source_file_part}}", | 283 "${root_build_dir}/{{source_file_part}}", |
282 ] | 284 ] |
283 deps = [ | 285 deps = [ |
284 ":nacl_helper_nonsfi_unittests_main", | 286 ":nacl_helper_nonsfi_unittests_main", |
285 ] | 287 ] |
286 } | 288 } |
287 } | 289 } |
OLD | NEW |