Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/config/features.gni") | |
| 6 import("//build/config/nacl/config.gni") | |
| 7 | |
| 8 if (enable_nacl) { | |
|
Roland McGrath
2015/11/11 06:22:45
Why nested if and double indentation instead of if
Dirk Pranke
2015/11/11 22:19:05
I agree that assert(is_nacl, "...") and no indenta
Petr Hosek
2015/11/13 22:18:33
I've dropped enable_nacl but I can't drop is_nacl
Dirk Pranke
2015/11/13 23:00:57
Ah, okay.
It might be a bit clearer if you can m
Petr Hosek
2015/11/17 01:31:58
Done.
| |
| 9 if (is_nacl) { | |
| 10 template("nacl_test_data") { | |
| 11 if (current_cpu == "pnacl") { | |
| 12 variant = "pnacl" | |
| 13 } else if (is_nacl_glibc) { | |
| 14 variant = "glibc" | |
| 15 } else { | |
| 16 variant = "newlib" | |
| 17 } | |
| 18 | |
| 19 if (defined(invoker.sources)) { | |
| 20 if (defined(invoker.output_name)) { | |
| 21 base_target_name = invoker.output_name | |
| 22 } else { | |
| 23 base_target_name = target_name | |
| 24 } | |
| 25 | |
| 26 if (current_cpu == "pnacl") { | |
| 27 suffix = "newlib_pnacl" | |
| 28 } else { | |
| 29 if (target_cpu == "x86") { | |
| 30 nmf_cpu = "x86" | |
| 31 } else if (target_cpu == "x64") { | |
| 32 nmf_cpu = "x86_64" | |
| 33 } else { | |
| 34 nmf_cpu = "arm" | |
|
Roland McGrath
2015/11/11 06:22:45
Make it nmf_cpu = target_cpu unless you are going
Petr Hosek
2015/11/13 22:18:33
Done.
| |
| 35 } | |
| 36 if (is_nacl_glibc) { | |
| 37 suffix = "glibc_${nmf_cpu}" | |
|
Roland McGrath
2015/11/11 06:22:45
Could just be suffix = "${variant}_${nmf_cpu}"
In
Petr Hosek
2015/11/13 22:18:33
Except that this breaks for pnacl in which case we
| |
| 38 } else { | |
| 39 suffix = "newlib_${nmf_cpu}" | |
| 40 } | |
| 41 } | |
| 42 suffixed_target_name = "${base_target_name}_${suffix}" | |
| 43 | |
| 44 if (defined(invoker.generate_nmf)) { | |
| 45 generate_nmf = invoker.generate_nmf | |
| 46 } else { | |
| 47 generate_nmf = true | |
| 48 } | |
| 49 | |
| 50 nexe_target_name = target_name + "_nexe" | |
| 51 nexe_copy_target_name = target_name + "_copy_nexe" | |
| 52 if (generate_nmf) { | |
| 53 nmf_target_name = target_name + "_nmf" | |
| 54 } | |
| 55 } | |
| 56 | |
| 57 if (defined(invoker.test_files)) { | |
| 58 test_files_target_name = target_name + "_test_files" | |
| 59 } | |
| 60 | |
| 61 destination_dir = "nacl_test_data" | |
| 62 if (defined(invoker.destination_dir)) { | |
| 63 destination_dir += "/${invoker.destination_dir}" | |
| 64 } | |
| 65 | |
| 66 if (defined(invoker.sources)) { | |
| 67 executable(nexe_target_name) { | |
| 68 output_name = suffixed_target_name | |
| 69 sources = invoker.sources | |
| 70 if (defined(invoker.cflags)) { | |
| 71 cflags = invoker.cflags | |
|
Roland McGrath
2015/11/11 06:22:45
Use forward_variables_from(invoker, ["cflags", "ld
Petr Hosek
2015/11/13 22:18:33
Done.
| |
| 72 } | |
| 73 if (defined(invoker.ldflags)) { | |
| 74 ldflags = invoker.ldflags | |
| 75 } | |
| 76 deps = [ | |
| 77 "//ppapi:ppapi_cpp_lib", | |
| 78 "//ppapi/native_client:ppapi_lib", | |
| 79 ] | |
| 80 if (is_nacl_glibc) { | |
| 81 libs = [ "pthread" ] | |
|
Roland McGrath
2015/11/11 06:22:45
For C++, the compiler driver should take care of a
Petr Hosek
2015/11/13 22:18:33
Done.
| |
| 82 } else { | |
| 83 deps += [ | |
| 84 "//native_client/src/untrusted/nacl", | |
| 85 "//native_client/src/untrusted/pthread", | |
| 86 ] | |
| 87 } | |
| 88 if (defined(invoker.libs)) { | |
| 89 libs += invoker.libs | |
|
Roland McGrath
2015/11/11 06:22:45
Without the "phtread" case if I'm right that that'
Petr Hosek
2015/11/13 22:18:33
Removed as it's no longer needed.
| |
| 90 } | |
| 91 if (defined(invoker.deps)) { | |
| 92 deps += invoker.deps | |
| 93 } | |
| 94 } | |
| 95 | |
| 96 copy(nexe_copy_target_name) { | |
| 97 if (current_cpu == "pnacl") { | |
| 98 sources = [ | |
| 99 "${root_out_dir}/${suffixed_target_name}.pexe", | |
| 100 "${root_out_dir}/${suffixed_target_name}.pexe.debug", | |
|
Roland McGrath
2015/11/11 06:22:45
After a recent change to the pnacl toolchain defin
Petr Hosek
2015/11/13 22:18:33
Done.
| |
| 101 ] | |
| 102 } else { | |
| 103 sources = [ | |
| 104 "${root_out_dir}/${suffixed_target_name}.nexe", | |
|
Roland McGrath
2015/11/11 06:22:45
I think you can use {{output_extension}} to get .p
Petr Hosek
2015/11/13 22:18:33
Unfortunately, {{output_extension}} only works wit
| |
| 105 ] | |
| 106 } | |
| 107 outputs = [ | |
| 108 "${root_build_dir}/${destination_dir}/${variant}/{{source_file_part} }", | |
| 109 ] | |
| 110 deps = [ | |
| 111 ":${nexe_target_name}", | |
| 112 ] | |
| 113 } | |
| 114 } | |
| 115 | |
| 116 if (defined(invoker.sources) && generate_nmf) { | |
| 117 action(nmf_target_name) { | |
| 118 nmf = "${root_build_dir}/${destination_dir}/${variant}/${base_target_n ame}.nmf" | |
| 119 if (current_cpu == "pnacl") { | |
| 120 nexe = "$root_build_dir/${destination_dir}/${variant}/${suffixed_tar get_name}.pexe" | |
|
Roland McGrath
2015/11/11 06:22:45
{{output_extension}}
Petr Hosek
2015/11/13 22:18:33
ditto
| |
| 121 } else { | |
| 122 nexe = "$root_build_dir/${destination_dir}/${variant}/${suffixed_tar get_name}.nexe" | |
| 123 } | |
| 124 | |
| 125 objdump = rebase_path("${nacl_toolprefix}objdump") | |
| 126 | |
| 127 script = "//native_client_sdk/src/tools/create_nmf.py" | |
| 128 sources = [ | |
| 129 nexe, | |
| 130 ] | |
| 131 outputs = [ | |
| 132 nmf, | |
| 133 ] | |
| 134 data = [ | |
| 135 nexe, | |
| 136 ] | |
| 137 nmfflags = [] | |
| 138 if (is_nacl_glibc) { | |
|
Roland McGrath
2015/11/11 06:22:45
It would be nice to share all this create_nmf logi
Petr Hosek
2015/11/13 22:18:33
Done in https://codereview.chromium.org/1432313002
| |
| 139 nmfflags += [ "--library-path=" + rebase_path(root_out_dir) ] | |
| 140 if (current_cpu == "x86") { | |
| 141 nmfflags += [ "--library-path=" + | |
| 142 rebase_path("${nacl_toolchain_tooldir}/lib32") ] | |
| 143 data += [ "$root_build_dir/lib32/" ] | |
| 144 } | |
| 145 if (target_cpu == "x64" || (target_cpu == "x86" && is_win)) { | |
| 146 nmfflags += [ "--library-path=" + | |
| 147 rebase_path("${nacl_toolchain_tooldir}/lib") ] | |
| 148 data += [ "$root_build_dir/lib64/" ] | |
| 149 } | |
| 150 if (current_cpu == "arm") { | |
| 151 nmfflags += [ "--library-path=" + | |
| 152 rebase_path("${nacl_toolchain_tooldir}/lib") ] | |
| 153 data += [ "$root_build_dir/lib/" ] | |
| 154 } | |
| 155 nmfflags += [ | |
| 156 "--path-prefix=${base_target_name}_libs", | |
| 157 | |
| 158 # TODO(phosek): move to a variable | |
| 159 "--stage-dependencies=" + | |
| 160 rebase_path("${root_build_dir}/${destination_dir}/${variant}") , | |
| 161 ] | |
| 162 } | |
| 163 if (defined(invoker.nmfflags)) { | |
| 164 nmfflags += invoker.nmfflags | |
| 165 } | |
| 166 args = [ | |
| 167 "--no-default-libpath", | |
| 168 "--objdump=" + objdump, | |
| 169 "--output=" + rebase_path(nmf, root_build_dir), | |
| 170 ] + nmfflags + rebase_path(sources, root_build_dir) | |
| 171 deps = [ | |
| 172 ":${nexe_copy_target_name}", | |
| 173 ] | |
| 174 if (is_nacl_glibc && current_cpu == "arm") { | |
| 175 deps += [ "//native_client/src/untrusted/elf_loader:elf_loader" ] | |
| 176 } | |
| 177 } | |
| 178 } | |
| 179 | |
| 180 if (defined(invoker.test_files)) { | |
| 181 copy(test_files_target_name) { | |
| 182 sources = invoker.test_files | |
| 183 outputs = [ | |
| 184 "${root_build_dir}/${destination_dir}/${variant}/{{source_file_part} }", | |
| 185 ] | |
| 186 if (defined(invoker.sources)) { | |
| 187 deps = [ | |
| 188 ":${nexe_target_name}", | |
| 189 ] | |
| 190 } | |
| 191 } | |
| 192 } | |
| 193 | |
| 194 group(target_name) { | |
| 195 data_deps = [] | |
| 196 if (defined(invoker.sources)) { | |
| 197 data_deps += [ ":${nexe_copy_target_name}" ] | |
| 198 if (generate_nmf) { | |
| 199 data_deps += [ ":${nmf_target_name}" ] | |
| 200 } | |
| 201 } | |
| 202 if (defined(invoker.test_files)) { | |
| 203 data_deps += [ ":${test_files_target_name}" ] | |
| 204 } | |
| 205 } | |
| 206 } | |
| 207 | |
| 208 nacl_test_data("shared_test_files") { | |
| 209 test_files = [ | |
| 210 # TODO(ncbray) move into chrome/test/data/nacl when all tests are | |
| 211 # converted. | |
| 212 "//ppapi/native_client/tools/browser_tester/browserdata/nacltest.js", | |
| 213 | |
| 214 # files that aren't assosiated with any particular executable. | |
| 215 "bad/ppapi_bad.html", | |
| 216 "bad/ppapi_bad.js", | |
| 217 "bad/ppapi_bad_native.html", | |
| 218 "bad/ppapi_bad_doesnotexist.nmf", | |
| 219 "bad/ppapi_bad_magic.nmf", | |
| 220 "bad/ppapi_bad_manifest_uses_nexes.nmf", | |
| 221 "bad/ppapi_bad_manifest_bad_files.nmf", | |
| 222 "bad/ppapi_bad_manifest_nexe_arch.nmf", | |
| 223 "crash/ppapi_crash.js", | |
| 224 "crash/ppapi_crash_via_check_failure.html", | |
| 225 "crash/ppapi_crash_via_exit_call.html", | |
| 226 "crash/ppapi_crash_in_callback.html", | |
| 227 "crash/ppapi_crash_ppapi_off_main_thread.html", | |
| 228 "crash/ppapi_crash_off_main_thread.html", | |
| 229 "load_util.js", | |
| 230 "manifest_file/test_file.txt", | |
| 231 "progress_event_listener.js", | |
| 232 "simple_cc.js", | |
| 233 ] | |
| 234 } | |
| 235 | |
| 236 nacl_test_data("simple_test") { | |
| 237 output_name = "simple" | |
| 238 sources = [ | |
| 239 "simple.cc", | |
| 240 ] | |
| 241 test_files = [ "nacl_load_test.html" ] | |
| 242 } | |
| 243 | |
| 244 nacl_test_data("exit_status_test") { | |
| 245 output_name = "pm_exit_status_test" | |
| 246 sources = [ | |
| 247 "exit_status/pm_exit_status_test.cc", | |
| 248 ] | |
| 249 test_files = [ "exit_status/pm_exit_status_test.html" ] | |
| 250 } | |
| 251 | |
| 252 nacl_test_data("extension_validation_cache") { | |
| 253 sources = [ | |
| 254 "simple.cc", | |
| 255 ] | |
| 256 | |
| 257 # Need a new directory to not clash with with other extension | |
| 258 # tests's files (e.g., manifest.json). | |
| 259 destination_dir = "extension_vcache_test" | |
| 260 test_files = [ | |
| 261 # TODO(ncbray) move into chrome/test/data/nacl when all tests are | |
| 262 # converted. | |
| 263 "//ppapi/native_client/tools/browser_tester/browserdata/nacltest.js", | |
| 264 "extension_validation_cache/extension_validation_cache.html", | |
| 265 "extension_validation_cache/extension_validation_cache.js", | |
| 266 | |
| 267 # Turns the test data directory into an extension. | |
| 268 # Use a different nexe_destination_dir to isolate the files. | |
| 269 # Note that the .nexe names are embedded in this file. | |
| 270 "extension_validation_cache/manifest.json", | |
| 271 "load_util.js", | |
| 272 "simple_cc.js", | |
| 273 ] | |
| 274 } | |
| 275 | |
| 276 nacl_test_data("sysconf_nprocessors_onln_test") { | |
| 277 sources = [ | |
| 278 "sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc", | |
| 279 ] | |
| 280 test_files = | |
| 281 [ "sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.html" ] | |
| 282 } | |
| 283 | |
| 284 source_set("ppapi_test_lib") { | |
| 285 sources = [ | |
| 286 # TODO(ncbray) move these files once SCons no longer depends on them. | |
| 287 "//ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc", | |
| 288 "//ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.h", | |
| 289 "//ppapi/native_client/tests/ppapi_test_lib/internal_utils.cc", | |
| 290 "//ppapi/native_client/tests/ppapi_test_lib/internal_utils.h", | |
| 291 "//ppapi/native_client/tests/ppapi_test_lib/module_instance.cc", | |
| 292 "//ppapi/native_client/tests/ppapi_test_lib/test_interface.cc", | |
| 293 "//ppapi/native_client/tests/ppapi_test_lib/test_interface.h", | |
| 294 "//ppapi/native_client/tests/ppapi_test_lib/testable_callback.cc", | |
| 295 "//ppapi/native_client/tests/ppapi_test_lib/testable_callback.h", | |
| 296 ] | |
| 297 deps = [ | |
| 298 "//native_client/src/shared/platform", | |
| 299 "//native_client/src/shared/gio", | |
| 300 "//ppapi/native_client:ppapi_lib", | |
| 301 ] | |
| 302 } | |
| 303 | |
| 304 nacl_test_data("ppapi_progress_events") { | |
| 305 sources = [ | |
| 306 "progress_events/ppapi_progress_events.cc", | |
| 307 ] | |
| 308 test_files = [ "progress_events/ppapi_progress_events.html" ] | |
| 309 deps = [ | |
| 310 ":ppapi_test_lib", | |
| 311 ] | |
| 312 } | |
| 313 | |
| 314 nacl_test_data("ppapi_bad_ppp_initialize") { | |
| 315 sources = [ | |
| 316 "bad/ppapi_bad_ppp_initialize.cc", | |
| 317 ] | |
| 318 } | |
| 319 | |
| 320 nacl_test_data("ppapi_bad_ppp_initialize_crash") { | |
| 321 sources = [ | |
| 322 "bad/ppapi_bad_ppp_initialize_crash.cc", | |
| 323 ] | |
| 324 } | |
| 325 | |
| 326 nacl_test_data("ppapi_bad_no_ppp_instance") { | |
| 327 sources = [ | |
| 328 "bad/ppapi_bad_no_ppp_instance.cc", | |
| 329 ] | |
| 330 deps = [ | |
| 331 "//native_client/src/shared/platform", | |
| 332 ] | |
| 333 } | |
| 334 | |
| 335 nacl_test_data("ppapi_bad_get_ppp_instance_crash") { | |
| 336 sources = [ | |
| 337 "bad/ppapi_bad_get_ppp_instance_crash.cc", | |
| 338 ] | |
| 339 } | |
| 340 | |
| 341 nacl_test_data("ppapi_bad_ppp_instance_didcreate") { | |
| 342 sources = [ | |
| 343 "bad/ppapi_bad_ppp_instance_didcreate.cc", | |
| 344 ] | |
| 345 } | |
| 346 | |
| 347 nacl_test_data("ppapi_bad_ppp_instance_didcreate_crash") { | |
| 348 sources = [ | |
| 349 "bad/ppapi_bad_ppp_instance_didcreate_crash.cc", | |
| 350 ] | |
| 351 } | |
| 352 | |
| 353 nacl_test_data("ppapi_crash_via_check_failure") { | |
| 354 sources = [ | |
| 355 "crash/ppapi_crash_via_check_failure.cc", | |
| 356 ] | |
| 357 deps = [ | |
| 358 ":ppapi_test_lib", | |
| 359 ] | |
| 360 } | |
| 361 | |
| 362 nacl_test_data("ppapi_crash_via_exit_call") { | |
| 363 sources = [ | |
| 364 "crash/ppapi_crash_via_exit_call.cc", | |
| 365 ] | |
| 366 deps = [ | |
| 367 ":ppapi_test_lib", | |
| 368 ] | |
| 369 } | |
| 370 | |
| 371 nacl_test_data("ppapi_crash_in_callback") { | |
| 372 sources = [ | |
| 373 "crash/ppapi_crash_in_callback.cc", | |
| 374 ] | |
| 375 deps = [ | |
| 376 ":ppapi_test_lib", | |
| 377 ] | |
| 378 } | |
| 379 | |
| 380 nacl_test_data("ppapi_crash_off_main_thread") { | |
| 381 sources = [ | |
| 382 "crash/ppapi_crash_off_main_thread.cc", | |
| 383 ] | |
| 384 deps = [ | |
| 385 ":ppapi_test_lib", | |
| 386 ] | |
| 387 } | |
| 388 | |
| 389 nacl_test_data("ppapi_crash_ppapi_off_main_thread") { | |
| 390 sources = [ | |
| 391 "crash/ppapi_crash_ppapi_off_main_thread.cc", | |
| 392 ] | |
| 393 deps = [ | |
| 394 ":ppapi_test_lib", | |
| 395 ] | |
| 396 } | |
| 397 | |
| 398 nacl_test_data("irt_manifest_file") { | |
| 399 sources = [ | |
| 400 "manifest_file/irt_manifest_file_test.cc", | |
| 401 ] | |
| 402 nmfflags = [ | |
| 403 "-xtest_file:test_file.txt", | |
| 404 "-xnmf says hello world:test_file.txt", | |
| 405 | |
| 406 # There is no dummy_test_file.txt file intentionally. This is just for | |
| 407 # a test case where there is a manifest entry, but no actual file. | |
| 408 "-xdummy_test_file:dummy_test_file.txt", | |
| 409 ] | |
| 410 test_files = [ "manifest_file/irt_manifest_file_test.html" ] | |
| 411 } | |
| 412 | |
| 413 nacl_test_data("irt_exception_test") { | |
| 414 sources = [ | |
| 415 "irt_exception/irt_exception_test.cc", | |
| 416 ] | |
| 417 deps = [ | |
| 418 ":ppapi_test_lib", | |
| 419 "//native_client/src/untrusted/nacl:nacl_exception", | |
| 420 ] | |
| 421 test_files = [ "irt_exception/irt_exception_test.html" ] | |
| 422 } | |
| 423 | |
| 424 nacl_test_data("ppapi_extension_mime_handler") { | |
| 425 sources = [ | |
| 426 "extension_mime_handler/ppapi_extension_mime_handler.cc", | |
| 427 ] | |
| 428 deps = [ | |
| 429 ":ppapi_test_lib", | |
| 430 ] | |
| 431 test_files = [ | |
| 432 "extension_mime_handler/ppapi_extension_mime_handler.html", | |
| 433 "extension_mime_handler/mime_test_data.dat", | |
| 434 | |
| 435 # For faking the file's MIME type. | |
| 436 "extension_mime_handler/mime_test_data.dat.mock-http-headers", | |
| 437 | |
| 438 # Turns the test data directory into an extension. Hackish. | |
| 439 # Note that the .nexe names are embedded in this file. | |
| 440 "extension_mime_handler/manifest.json", | |
| 441 ] | |
| 442 } | |
| 443 | |
| 444 nacl_test_data("pnacl_debug_url_test") { | |
| 445 output_name = "pnacl_debug_url" | |
| 446 sources = [ | |
| 447 "simple.cc", | |
| 448 ] | |
| 449 generate_nmf = false | |
| 450 test_files = [ | |
| 451 "pnacl_debug_url/pnacl_debug_url.html", | |
| 452 "pnacl_debug_url/pnacl_has_debug.nmf", | |
| 453 "pnacl_debug_url/pnacl_has_debug_flag_off.nmf", | |
| 454 "pnacl_debug_url/pnacl_no_debug.nmf", | |
| 455 ] | |
| 456 } | |
| 457 | |
| 458 nacl_test_data("pnacl_error_handling_test") { | |
| 459 output_name = "pnacl_errors" | |
| 460 sources = [ | |
| 461 "simple.cc", | |
| 462 ] | |
| 463 generate_nmf = false | |
| 464 test_files = [ | |
| 465 "pnacl_error_handling/pnacl_error_handling.html", | |
| 466 "pnacl_error_handling/bad.pexe", | |
| 467 "pnacl_error_handling/pnacl_bad_pexe.nmf", | |
| 468 "pnacl_error_handling/pnacl_bad_pexe_O0.nmf", | |
| 469 "pnacl_error_handling/pnacl_bad_doesnotexist.nmf", | |
| 470 "pnacl_error_handling/pnacl_illformed_manifest.nmf", | |
| 471 "pnacl_error_handling/pnacl_nonfinal_pexe_O0.nmf", | |
| 472 ] | |
| 473 } | |
| 474 | |
| 475 nacl_test_data("pnacl_mime_type_test") { | |
| 476 test_files = [ "pnacl_mime_type/pnacl_mime_type.html" ] | |
| 477 } | |
| 478 | |
| 479 nacl_test_data("pnacl_options_test") { | |
| 480 output_name = "pnacl_options" | |
| 481 sources = [ | |
| 482 "simple.cc", | |
| 483 ] | |
| 484 generate_nmf = false | |
| 485 test_files = [ | |
| 486 "pnacl_nmf_options/pnacl_options.html", | |
| 487 "pnacl_nmf_options/pnacl_o_0.nmf", | |
| 488 "pnacl_nmf_options/pnacl_o_2.nmf", | |
| 489 "pnacl_nmf_options/pnacl_o_large.nmf", | |
| 490 ] | |
| 491 } | |
| 492 | |
| 493 nacl_test_data("pnacl_dyncode_syscall_disabled_test") { | |
| 494 output_name = "pnacl_dyncode_syscall_disabled" | |
| 495 sources = [ | |
| 496 "pnacl_dyncode_syscall_disabled/pnacl_dyncode_syscall_disabled.cc", | |
| 497 ] | |
| 498 deps = [ | |
| 499 ":ppapi_test_lib", | |
| 500 "//native_client/src/untrusted/nacl:nacl_dyncode_private", | |
| 501 ] | |
| 502 test_files = [ "pnacl_dyncode_syscall_disabled/pnacl_dyncode_syscall_disab led.html" ] | |
| 503 } | |
| 504 | |
| 505 nacl_test_data("pnacl_hw_eh_disabled_test") { | |
| 506 output_name = "pnacl_hw_eh_disabled" | |
| 507 sources = [ | |
| 508 "pnacl_hw_eh_disabled/pnacl_hw_eh_disabled.cc", | |
| 509 ] | |
| 510 deps = [ | |
| 511 ":ppapi_test_lib", | |
| 512 "//native_client/src/untrusted/nacl:nacl_exception_private", | |
| 513 ] | |
| 514 test_files = [ "pnacl_hw_eh_disabled/pnacl_hw_eh_disabled.html" ] | |
| 515 } | |
| 516 | |
| 517 # Legacy NaCl PPAPI interface tests being here. | |
| 518 nacl_test_data("ppapi_ppb_core") { | |
| 519 sources = [ | |
| 520 "ppapi/ppb_core/ppapi_ppb_core.cc", | |
| 521 ] | |
| 522 deps = [ | |
| 523 ":ppapi_test_lib", | |
| 524 ] | |
| 525 test_files = [ "ppapi/ppb_core/ppapi_ppb_core.html" ] | |
| 526 } | |
| 527 | |
| 528 nacl_test_data("ppapi_ppb_instance") { | |
| 529 sources = [ | |
| 530 "ppapi/ppb_instance/ppapi_ppb_instance.cc", | |
| 531 ] | |
| 532 deps = [ | |
| 533 ":ppapi_test_lib", | |
| 534 ] | |
| 535 test_files = [ "ppapi/ppb_instance/ppapi_ppb_instance.html" ] | |
| 536 } | |
| 537 | |
| 538 nacl_test_data("ppapi_ppp_instance") { | |
| 539 sources = [ | |
| 540 "ppapi/ppp_instance/ppapi_ppp_instance.cc", | |
| 541 ] | |
| 542 deps = [ | |
| 543 ":ppapi_test_lib", | |
| 544 ] | |
| 545 test_files = [ | |
| 546 "ppapi/ppp_instance/ppapi_ppp_instance.html", | |
| 547 "ppapi/ppp_instance/ppapi_ppp_instance.js", | |
| 548 ] | |
| 549 } | |
| 550 | |
| 551 if (target_cpu != "arm") { | |
| 552 # Source file does not have asm for ARM. | |
|
Roland McGrath
2015/11/11 06:22:45
Probably easy to add it and make this unconditiona
Petr Hosek
2015/11/13 22:18:33
That would have to be done on the NaCl side though
| |
| 553 nacl_test_data("partly_invalid") { | |
| 554 sources = [ | |
| 555 "//native_client/tests/stubout_mode/partly_invalid.c", | |
| 556 ] | |
| 557 if (target_cpu == "mipsel") { | |
| 558 cflags = [ | |
| 559 "--pnacl-mips-bias", | |
| 560 "-arch", | |
| 561 "mips32", | |
| 562 "--pnacl-allow-translate", | |
| 563 ] | |
| 564 ldflags = [ "--pnacl-allow-native" ] | |
| 565 } | |
| 566 } | |
| 567 } | |
| 568 } | |
| 569 | |
| 570 group("nacl") { | |
| 571 deps = [ | |
|
Roland McGrath
2015/11/11 06:22:45
It might be easier to read this list if you used a
Petr Hosek
2015/11/13 22:18:33
Done.
| |
| 572 ":shared_test_files(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 573 ":shared_test_files(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 574 ":shared_test_files(//build/toolchain/nacl:newlib_pnacl)", | |
| 575 ":simple_test(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 576 ":simple_test(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 577 ":simple_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 578 ":exit_status_test(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 579 ":exit_status_test(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 580 ":exit_status_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 581 ":extension_validation_cache(//build/toolchain/nacl:clang_newlib_${target_ cpu})", | |
| 582 ":extension_validation_cache(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 583 ":sysconf_nprocessors_onln_test(//build/toolchain/nacl:clang_newlib_${targ et_cpu})", | |
| 584 ":sysconf_nprocessors_onln_test(//build/toolchain/nacl:glibc_${target_cpu} )", | |
| 585 ":sysconf_nprocessors_onln_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 586 ":ppapi_progress_events(//build/toolchain/nacl:clang_newlib_${target_cpu}) ", | |
| 587 ":ppapi_progress_events(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 588 ":ppapi_progress_events(//build/toolchain/nacl:newlib_pnacl)", | |
| 589 ":ppapi_bad_ppp_initialize(//build/toolchain/nacl:clang_newlib_${target_cp u})", | |
| 590 ":ppapi_bad_ppp_initialize_crash(//build/toolchain/nacl:clang_newlib_${tar get_cpu})", | |
| 591 ":ppapi_bad_no_ppp_instance(//build/toolchain/nacl:clang_newlib_${target_c pu})", | |
| 592 ":ppapi_bad_get_ppp_instance_crash(//build/toolchain/nacl:clang_newlib_${t arget_cpu})", | |
| 593 ":ppapi_bad_ppp_instance_didcreate(//build/toolchain/nacl:clang_newlib_${t arget_cpu})", | |
| 594 ":ppapi_bad_ppp_instance_didcreate_crash(//build/toolchain/nacl:clang_newl ib_${target_cpu})", | |
| 595 ":ppapi_crash_via_check_failure(//build/toolchain/nacl:clang_newlib_${targ et_cpu})", | |
| 596 ":ppapi_crash_via_check_failure(//build/toolchain/nacl:glibc_${target_cpu} )", | |
| 597 ":ppapi_crash_via_check_failure(//build/toolchain/nacl:newlib_pnacl)", | |
| 598 ":ppapi_crash_via_exit_call(//build/toolchain/nacl:clang_newlib_${target_c pu})", | |
| 599 ":ppapi_crash_via_exit_call(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 600 ":ppapi_crash_via_exit_call(//build/toolchain/nacl:newlib_pnacl)", | |
| 601 ":ppapi_crash_in_callback(//build/toolchain/nacl:clang_newlib_${target_cpu })", | |
| 602 ":ppapi_crash_in_callback(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 603 ":ppapi_crash_in_callback(//build/toolchain/nacl:newlib_pnacl)", | |
| 604 ":ppapi_crash_off_main_thread(//build/toolchain/nacl:clang_newlib_${target _cpu})", | |
| 605 ":ppapi_crash_off_main_thread(//build/toolchain/nacl:glibc_${target_cpu})" , | |
| 606 ":ppapi_crash_off_main_thread(//build/toolchain/nacl:newlib_pnacl)", | |
| 607 ":ppapi_crash_ppapi_off_main_thread(//build/toolchain/nacl:clang_newlib_${ target_cpu})", | |
| 608 ":ppapi_crash_ppapi_off_main_thread(//build/toolchain/nacl:glibc_${target_ cpu})", | |
| 609 ":ppapi_crash_ppapi_off_main_thread(//build/toolchain/nacl:newlib_pnacl)", | |
| 610 ":irt_manifest_file(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 611 ":irt_exception_test(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 612 ":irt_exception_test(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 613 ":irt_exception_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 614 ":ppapi_extension_mime_handler(//build/toolchain/nacl:clang_newlib_${targe t_cpu})", | |
| 615 ":pnacl_debug_url_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 616 ":pnacl_error_handling_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 617 ":pnacl_mime_type_test(//build/toolchain/nacl:clang_newlib_${target_cpu})" , | |
| 618 ":pnacl_mime_type_test(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 619 ":pnacl_mime_type_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 620 ":pnacl_options_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 621 ":pnacl_dyncode_syscall_disabled_test(//build/toolchain/nacl:newlib_pnacl) ", | |
| 622 ":pnacl_hw_eh_disabled_test(//build/toolchain/nacl:newlib_pnacl)", | |
| 623 ":ppapi_ppb_core(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 624 ":ppapi_ppb_core(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 625 ":ppapi_ppb_core(//build/toolchain/nacl:newlib_pnacl)", | |
| 626 ":ppapi_ppb_instance(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 627 ":ppapi_ppb_instance(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 628 ":ppapi_ppb_instance(//build/toolchain/nacl:newlib_pnacl)", | |
| 629 ":ppapi_ppp_instance(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 630 ":ppapi_ppp_instance(//build/toolchain/nacl:glibc_${target_cpu})", | |
| 631 ":ppapi_ppp_instance(//build/toolchain/nacl:newlib_pnacl)", | |
| 632 ":partly_invalid(//build/toolchain/nacl:clang_newlib_${target_cpu})", | |
| 633 ] | |
| 634 } | |
| 635 } | |
| OLD | NEW |