OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 '../../../../ppapi/ppapi_nacl_test_common.gypi', | 7 '../../../../ppapi/ppapi_nacl_test_common.gypi', |
8 ], | 8 ], |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'shared_test_files', | 11 'target_name': 'shared_test_files', |
12 'type': 'none', | 12 'type': 'none', |
13 'variables': { | 13 'variables': { |
14 'build_newlib': 1, | 14 'build_newlib': 1, |
15 'build_glibc': 1, | 15 'build_glibc': 1, |
16 'build_pnacl_newlib': 1, | 16 'build_pnacl_newlib': 1, |
17 'nexe_destination_dir': 'nacl_test_data', | 17 'nexe_destination_dir': 'nacl_test_data', |
18 'test_files': [ | 18 'test_files': [ |
19 # TODO(ncbray) move into chrome/test/data/nacl when all tests are | 19 # TODO(ncbray) move into chrome/test/data/nacl when all tests are |
20 # converted. | 20 # converted. |
21 '<(DEPTH)/ppapi/native_client/tests/ppapi_browser/progress_event_liste
ner.js', | 21 '<(DEPTH)/ppapi/native_client/tests/ppapi_browser/progress_event_liste
ner.js', |
22 '<(DEPTH)/ppapi/native_client/tools/browser_tester/browserdata/nacltes
t.js', | 22 '<(DEPTH)/ppapi/native_client/tools/browser_tester/browserdata/nacltes
t.js', |
| 23 |
23 # Files that aren't assosiated with any particular executable. | 24 # Files that aren't assosiated with any particular executable. |
24 'bad/ppapi_bad.html', | 25 'bad/ppapi_bad.html', |
25 'bad/ppapi_bad.js', | 26 'bad/ppapi_bad.js', |
26 'bad/ppapi_bad_native.html', | 27 'bad/ppapi_bad_native.html', |
27 'bad/ppapi_bad_doesnotexist.nmf', | 28 'bad/ppapi_bad_doesnotexist.nmf', |
28 'bad/ppapi_bad_magic.nmf', | 29 'bad/ppapi_bad_magic.nmf', |
29 'bad/ppapi_bad_manifest_uses_nexes.nmf', | 30 'bad/ppapi_bad_manifest_uses_nexes.nmf', |
30 'bad/ppapi_bad_manifest_bad_files.nmf', | 31 'bad/ppapi_bad_manifest_bad_files.nmf', |
31 'bad/ppapi_bad_manifest_nexe_arch.nmf', | 32 'bad/ppapi_bad_manifest_nexe_arch.nmf', |
32 'crash/ppapi_crash.html', | 33 'crash/ppapi_crash.html', |
33 'load_util.js', | 34 'load_util.js', |
34 'manifest_file/test_file.txt', | 35 'manifest_file/test_file.txt', |
35 ], | 36 ], |
36 }, | 37 }, |
| 38 'conditions': [ |
| 39 ['target_arch=="ia32" and OS=="linux"', { |
| 40 # Enable nonsfi testing only on ia32-linux environment. |
| 41 # This flag causes test_files to be copied into nonsfi directory, |
| 42 # too. |
| 43 'variables': { |
| 44 'enable_x86_32_nonsfi': 1, |
| 45 }, |
| 46 }], |
| 47 ], |
37 }, | 48 }, |
38 { | 49 { |
39 'target_name': 'simple_test', | 50 'target_name': 'simple_test', |
40 'type': 'none', | 51 'type': 'none', |
41 'variables': { | 52 'variables': { |
42 'nexe_target': 'simple', | 53 'nexe_target': 'simple', |
43 'build_newlib': 1, | 54 'build_newlib': 1, |
44 'build_glibc': 1, | 55 'build_glibc': 1, |
45 'build_pnacl_newlib': 1, | 56 'build_pnacl_newlib': 1, |
46 'nexe_destination_dir': 'nacl_test_data', | 57 'nexe_destination_dir': 'nacl_test_data', |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', | 621 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', |
611 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 622 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
612 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', | 623 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', |
613 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', | 624 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', |
614 '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc_lib', | 625 '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc_lib', |
615 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 626 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
616 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', | 627 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', |
617 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.gyp:weak_ref_lib', | 628 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.gyp:weak_ref_lib', |
618 'nacl_ppapi_util', | 629 'nacl_ppapi_util', |
619 ], | 630 ], |
| 631 'conditions': [ |
| 632 ['target_arch=="ia32" and OS=="linux"', { |
| 633 # Enable nonsfi testing only on ia32-linux environment. |
| 634 'variables': { |
| 635 # This is needed to build a non-SFI nexe binary. |
| 636 # Note that this triggers building nexe files for other |
| 637 # architectures, such as x86-32 (based on enable_XXX variables). |
| 638 # As described above, although the tests for pnacl are currently |
| 639 # disabled, but building the binary should work. |
| 640 # We cannot disable building, as enable_XXX variables are also used |
| 641 # to build newlib linked nexes. |
| 642 'build_pnacl_newlib': 1, |
| 643 'enable_x86_32_nonsfi': 1, |
| 644 }, |
| 645 }], |
| 646 ], |
620 }, | 647 }, |
621 { | 648 { |
622 'target_name': 'irt_exception_test', | 649 'target_name': 'irt_exception_test', |
623 'type': 'none', | 650 'type': 'none', |
624 'variables': { | 651 'variables': { |
625 'nexe_target': 'irt_exception_test', | 652 'nexe_target': 'irt_exception_test', |
626 'build_newlib': 1, | 653 'build_newlib': 1, |
627 'generate_nmf': 1, | 654 'generate_nmf': 1, |
628 'nexe_destination_dir': 'nacl_test_data', | 655 'nexe_destination_dir': 'nacl_test_data', |
629 'build_pnacl_newlib': 1, | 656 'build_pnacl_newlib': 1, |
630 'nonsfi_destination_dir': '<(PRODUCT_DIR)/>(nexe_destination_dir)/nonsfi
', | |
631 # Workaround because generate_nmf doesn't work yet for NonSFI, | |
632 # explicitly specify the destination directory for NonSFI so | |
633 # that we don't have to move it around. | |
634 'out_pnacl_newlib_x86_32_nonsfi_nexe': '>(nonsfi_destination_dir)/irt_ex
ception_test_pnacl_newlib_x32_nonsfi.nexe', | |
635 'link_flags': [ | 657 'link_flags': [ |
636 '-lppapi', | 658 '-lppapi', |
637 '-lppapi_test_lib', | 659 '-lppapi_test_lib', |
638 '-lplatform', | 660 '-lplatform', |
639 '-lgio', | 661 '-lgio', |
640 '-lnacl_exception', | 662 '-lnacl_exception', |
641 ], | 663 ], |
642 'sources': [ | 664 'sources': [ |
643 'irt_exception/irt_exception_test.cc', | 665 'irt_exception/irt_exception_test.cc', |
644 ], | 666 ], |
645 'test_files': [ | 667 'test_files': [ |
646 # TODO(ncbray) move into chrome/test/data/nacl when all tests are | 668 # TODO(ncbray) move into chrome/test/data/nacl when all tests are |
647 # converted. | 669 # converted. |
648 'irt_exception/irt_exception_test.html', | 670 'irt_exception/irt_exception_test.html', |
649 ], | 671 ], |
650 }, | 672 }, |
651 'dependencies': [ | 673 'dependencies': [ |
652 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 674 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
653 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', | 675 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', |
654 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', | 676 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', |
655 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_exception_lib', | 677 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_exception_lib', |
656 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', | 678 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', |
657 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', | 679 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', |
658 'ppapi_test_lib', | 680 'ppapi_test_lib', |
659 ], | 681 ], |
660 'conditions': [ | 682 'conditions': [ |
661 ['disable_pnacl==0 and target_arch=="ia32" and OS=="linux"', { | 683 ['target_arch=="ia32" and OS=="linux"', { |
| 684 # Enable nonsfi testing only on ia32-linux environment. |
662 'variables': { | 685 'variables': { |
663 'enable_x86_32_nonsfi': 1, | 686 'enable_x86_32_nonsfi': 1, |
664 # Files specifically for NonSFI NaCl. nmf file is | |
665 # hand-crafted until generate_nmf learns about NonSFI | |
666 # case, and generate_nmf is the one who usually copies | |
667 # those files. | |
668 'nonsfi_test_files': [ | |
669 # TODO(ncbray) move into chrome/test/data/nacl when all tests are | |
670 # converted. | |
671 '<(DEPTH)/ppapi/native_client/tools/browser_tester/browserdata/nac
ltest.js', | |
672 'irt_exception/irt_exception_test.html', | |
673 'irt_exception/irt_exception_test.nmf', | |
674 ], | |
675 }, | 687 }, |
676 'copies': [ | |
677 { | |
678 'destination': '>(nonsfi_destination_dir)', | |
679 'files': [ | |
680 '>@(nonsfi_test_files)', | |
681 ], | |
682 }, | |
683 ], | |
684 }], | 688 }], |
685 ], | 689 ], |
686 }, | 690 }, |
687 { | 691 { |
688 'target_name': 'pm_nameservice_test', | 692 'target_name': 'pm_nameservice_test', |
689 'type': 'none', | 693 'type': 'none', |
690 'variables': { | 694 'variables': { |
691 'nexe_target': 'pm_nameservice_test', | 695 'nexe_target': 'pm_nameservice_test', |
692 'build_newlib': 1, | 696 'build_newlib': 1, |
693 'build_glibc': 1, | 697 'build_glibc': 1, |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 # testing environment here. | 1167 # testing environment here. |
1164 'copies': [ | 1168 'copies': [ |
1165 { | 1169 { |
1166 'destination': '>(destination_dir)', | 1170 'destination': '>(destination_dir)', |
1167 'files': [ | 1171 'files': [ |
1168 '>@(test_files)', | 1172 '>@(test_files)', |
1169 ], | 1173 ], |
1170 }, | 1174 }, |
1171 ], | 1175 ], |
1172 }, | 1176 }, |
1173 { | |
1174 'target_name': 'nonsfi_irt_manifest_file', | |
1175 'type': 'none', | |
1176 'variables': { | |
1177 'nexe_target': 'irt_manifest_file', | |
1178 'enable_x86_32': 0, | |
1179 'enable_x86_64': 0, | |
1180 'enable_x86_32_nonsfi': 1, | |
1181 'build_pnacl_newlib': 1, | |
1182 # create_nmf.py doesn't support nonsfi. | |
1183 # TODO(crbug.com/368949): Clean this up after nonsfi support on | |
1184 # create_nmf.py. | |
1185 'generate_nmf': 0, | |
1186 'nexe_destination_dir': 'nacl_test_data', | |
1187 'link_flags': [ | |
1188 '-lnacl_ppapi_util', | |
1189 '-lppapi_cpp', | |
1190 '-lppapi', | |
1191 '-lnacl', | |
1192 ], | |
1193 'sources': [ | |
1194 'manifest_file/irt_manifest_file_test.cc', | |
1195 ], | |
1196 'test_files': [ | |
1197 # TODO(ncbray) move into chrome/test/data/nacl when all tests are | |
1198 # converted. | |
1199 '<(DEPTH)/ppapi/native_client/tools/browser_tester/browserdata/nac
ltest.js', | |
1200 'manifest_file/irt_manifest_file.nmf', | |
1201 'manifest_file/irt_manifest_file_test.html', | |
1202 'manifest_file/test_file.txt', | |
1203 ], | |
1204 }, | |
1205 'dependencies': [ | |
1206 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
1207 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', | |
1208 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', | |
1209 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', | |
1210 'nacl_ppapi_util', | |
1211 ], | |
1212 }, | |
1213 ], | 1177 ], |
1214 }], | 1178 }], |
1215 ], | 1179 ], |
1216 } | 1180 } |
OLD | NEW |