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

Side by Side Diff: chrome/test/data/nacl/BUILD.gn

Issue 2242893002: [MIPS] Adding NaCl/PNaCl support for mipsel to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix non Linux builds Created 4 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/nacl/browser/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/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
6 import("//ppapi/native_client/nacl_test_data.gni") 7 import("//ppapi/native_client/nacl_test_data.gni")
7 8
8 group("nacl") { 9 group("nacl") {
9 newlib = "//build/toolchain/nacl:clang_newlib_${target_cpu}" 10 newlib = "//build/toolchain/nacl:clang_newlib_${target_cpu}"
10 glibc = "//build/toolchain/nacl:glibc_${target_cpu}"
11 pnacl = "//build/toolchain/nacl:newlib_pnacl" 11 pnacl = "//build/toolchain/nacl:newlib_pnacl"
12 data_deps = [ 12 data_deps = [
13 ":exit_status_test($glibc)",
14 ":exit_status_test($newlib)", 13 ":exit_status_test($newlib)",
15 ":exit_status_test($pnacl)", 14 ":exit_status_test($pnacl)",
16 ":extension_validation_cache($glibc)",
17 ":extension_validation_cache($newlib)", 15 ":extension_validation_cache($newlib)",
18 ":irt_exception_test($glibc)",
19 ":irt_exception_test($newlib)", 16 ":irt_exception_test($newlib)",
20 ":irt_exception_test($pnacl)", 17 ":irt_exception_test($pnacl)",
21 ":irt_manifest_file($newlib)", 18 ":irt_manifest_file($newlib)",
22 ":pnacl_debug_url_test($pnacl)", 19 ":pnacl_debug_url_test($pnacl)",
23 ":pnacl_dyncode_syscall_disabled_test($pnacl)", 20 ":pnacl_dyncode_syscall_disabled_test($pnacl)",
24 ":pnacl_error_handling_test($pnacl)", 21 ":pnacl_error_handling_test($pnacl)",
25 ":pnacl_hw_eh_disabled_test($pnacl)", 22 ":pnacl_hw_eh_disabled_test($pnacl)",
26 ":pnacl_mime_type_test($glibc)",
27 ":pnacl_mime_type_test($newlib)", 23 ":pnacl_mime_type_test($newlib)",
28 ":pnacl_mime_type_test($pnacl)", 24 ":pnacl_mime_type_test($pnacl)",
29 ":pnacl_options_test($pnacl)", 25 ":pnacl_options_test($pnacl)",
30 ":pnacl_url_loader_test($pnacl)", 26 ":pnacl_url_loader_test($pnacl)",
31 ":ppapi_bad_get_ppp_instance_crash($newlib)", 27 ":ppapi_bad_get_ppp_instance_crash($newlib)",
32 ":ppapi_bad_no_ppp_instance($newlib)", 28 ":ppapi_bad_no_ppp_instance($newlib)",
33 ":ppapi_bad_ppp_initialize($newlib)", 29 ":ppapi_bad_ppp_initialize($newlib)",
34 ":ppapi_bad_ppp_initialize_crash($newlib)", 30 ":ppapi_bad_ppp_initialize_crash($newlib)",
35 ":ppapi_bad_ppp_instance_didcreate($newlib)", 31 ":ppapi_bad_ppp_instance_didcreate($newlib)",
36 ":ppapi_bad_ppp_instance_didcreate_crash($newlib)", 32 ":ppapi_bad_ppp_instance_didcreate_crash($newlib)",
37 ":ppapi_crash_in_callback($glibc)",
38 ":ppapi_crash_in_callback($newlib)", 33 ":ppapi_crash_in_callback($newlib)",
39 ":ppapi_crash_in_callback($pnacl)", 34 ":ppapi_crash_in_callback($pnacl)",
40 ":ppapi_crash_off_main_thread($glibc)",
41 ":ppapi_crash_off_main_thread($newlib)", 35 ":ppapi_crash_off_main_thread($newlib)",
42 ":ppapi_crash_off_main_thread($pnacl)", 36 ":ppapi_crash_off_main_thread($pnacl)",
43 ":ppapi_crash_ppapi_off_main_thread($glibc)",
44 ":ppapi_crash_ppapi_off_main_thread($newlib)", 37 ":ppapi_crash_ppapi_off_main_thread($newlib)",
45 ":ppapi_crash_ppapi_off_main_thread($pnacl)", 38 ":ppapi_crash_ppapi_off_main_thread($pnacl)",
46 ":ppapi_crash_via_check_failure($glibc)",
47 ":ppapi_crash_via_check_failure($newlib)", 39 ":ppapi_crash_via_check_failure($newlib)",
48 ":ppapi_crash_via_check_failure($pnacl)", 40 ":ppapi_crash_via_check_failure($pnacl)",
49 ":ppapi_crash_via_exit_call($glibc)",
50 ":ppapi_crash_via_exit_call($newlib)", 41 ":ppapi_crash_via_exit_call($newlib)",
51 ":ppapi_crash_via_exit_call($pnacl)", 42 ":ppapi_crash_via_exit_call($pnacl)",
52 ":ppapi_extension_mime_handler($newlib)", 43 ":ppapi_extension_mime_handler($newlib)",
53 ":ppapi_ppb_core($glibc)",
54 ":ppapi_ppb_core($newlib)", 44 ":ppapi_ppb_core($newlib)",
55 ":ppapi_ppb_core($pnacl)", 45 ":ppapi_ppb_core($pnacl)",
56 ":ppapi_ppb_instance($glibc)",
57 ":ppapi_ppb_instance($newlib)", 46 ":ppapi_ppb_instance($newlib)",
58 ":ppapi_ppb_instance($pnacl)", 47 ":ppapi_ppb_instance($pnacl)",
59 ":ppapi_ppp_instance($glibc)",
60 ":ppapi_ppp_instance($newlib)", 48 ":ppapi_ppp_instance($newlib)",
61 ":ppapi_ppp_instance($pnacl)", 49 ":ppapi_ppp_instance($pnacl)",
62 ":ppapi_progress_events($glibc)",
63 ":ppapi_progress_events($newlib)", 50 ":ppapi_progress_events($newlib)",
64 ":ppapi_progress_events($pnacl)", 51 ":ppapi_progress_events($pnacl)",
65 ":shared_test_files($glibc)",
66 ":shared_test_files($newlib)", 52 ":shared_test_files($newlib)",
67 ":shared_test_files($pnacl)", 53 ":shared_test_files($pnacl)",
68 ":simple_test($glibc)",
69 ":simple_test($newlib)", 54 ":simple_test($newlib)",
70 ":simple_test($pnacl)", 55 ":simple_test($pnacl)",
71 ":sysconf_nprocessors_onln_test($glibc)",
72 ":sysconf_nprocessors_onln_test($newlib)", 56 ":sysconf_nprocessors_onln_test($newlib)",
73 ":sysconf_nprocessors_onln_test($pnacl)", 57 ":sysconf_nprocessors_onln_test($pnacl)",
74 ] 58 ]
75 if (target_cpu != "arm") { 59 if (target_cpu != "arm") {
76 data_deps += [ ":partly_invalid($newlib)" ] 60 data_deps += [ ":partly_invalid($newlib)" ]
77 } 61 }
78 if (is_linux) { 62 if (target_cpu != "mipsel") {
63 glibc = "//build/toolchain/nacl:glibc_${target_cpu}"
64 data_deps += [
65 ":exit_status_test($glibc)",
66 ":extension_validation_cache($glibc)",
67 ":irt_exception_test($glibc)",
68 ":pnacl_mime_type_test($glibc)",
69 ":ppapi_crash_in_callback($glibc)",
70 ":ppapi_crash_off_main_thread($glibc)",
71 ":ppapi_crash_ppapi_off_main_thread($glibc)",
72 ":ppapi_crash_via_check_failure($glibc)",
73 ":ppapi_crash_via_exit_call($glibc)",
74 ":ppapi_ppb_core($glibc)",
75 ":ppapi_ppb_instance($glibc)",
76 ":ppapi_ppp_instance($glibc)",
77 ":ppapi_progress_events($glibc)",
78 ":shared_test_files($glibc)",
79 ":simple_test($glibc)",
80 ":sysconf_nprocessors_onln_test($glibc)",
81 ]
82 }
83 if (is_linux && enable_nacl_nonsfi) {
79 nonsfi = "//build/toolchain/nacl:newlib_pnacl_nonsfi" 84 nonsfi = "//build/toolchain/nacl:newlib_pnacl_nonsfi"
80 data_deps += [ 85 data_deps += [
81 ":irt_exception_test($nonsfi)", 86 ":irt_exception_test($nonsfi)",
82 ":irt_manifest_file($nonsfi)", 87 ":irt_manifest_file($nonsfi)",
83 ":shared_test_files($nonsfi)", 88 ":shared_test_files($nonsfi)",
84 ] 89 ]
85 if (is_clang) { 90 if (is_clang) {
86 data_deps += [ ":nonsfi_libc_free" ] 91 data_deps += [ ":nonsfi_libc_free" ]
87 } 92 }
88 } 93 }
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 ] 516 ]
512 } 517 }
513 518
514 if (target_cpu != "arm") { 519 if (target_cpu != "arm") {
515 # Source file does not have asm for ARM. 520 # Source file does not have asm for ARM.
516 nacl_test_data("partly_invalid") { 521 nacl_test_data("partly_invalid") {
517 sources = [ 522 sources = [
518 "//native_client/tests/stubout_mode/partly_invalid.c", 523 "//native_client/tests/stubout_mode/partly_invalid.c",
519 ] 524 ]
520 destination_dir = "nacl_test_data" 525 destination_dir = "nacl_test_data"
521 if (target_cpu == "mipsel") {
522 cflags = [
523 "--pnacl-mips-bias",
524 "-arch",
525 "mips32",
526 "--pnacl-allow-translate",
527 ]
528 ldflags = [ "--pnacl-allow-native" ]
529 }
530 } 526 }
531 } 527 }
532 } 528 }
533 529
534 if (is_linux && is_clang) { 530 if (is_linux && is_clang) {
535 if (target_cpu == "x86") { 531 if (target_cpu == "x86") {
536 arch = "x86_32" 532 arch = "x86_32"
537 } else if (target_cpu == "x64") { 533 } else if (target_cpu == "x64") {
538 arch = "x86_64" 534 arch = "x86_64"
539 } else { 535 } else {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 "nonsfi/libc_free.nmf", 605 "nonsfi/libc_free.nmf",
610 ] 606 ]
611 outputs = [ 607 outputs = [
612 "${root_build_dir}/nacl_test_data/libc-free/{{source_file_part}}", 608 "${root_build_dir}/nacl_test_data/libc-free/{{source_file_part}}",
613 ] 609 ]
614 deps = [ 610 deps = [
615 ":nonsfi_libc_free_nexe", 611 ":nonsfi_libc_free_nexe",
616 ] 612 ]
617 } 613 }
618 } 614 }
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/nacl/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698