Chromium Code Reviews| 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 # By this flag, test_files are copied into nonsfi directory, too. | |
|
Mark Seaborn
2014/05/19 18:55:29
Maybe "This flag causes test_files to be copied...
hidehiko
2014/05/20 05:51:47
Done.
| |
| 42 'variables': { | |
| 43 'enable_x86_32_nonsfi': 1, | |
| 44 }, | |
| 45 }], | |
| 46 ], | |
| 37 }, | 47 }, |
| 38 { | 48 { |
| 39 'target_name': 'simple_test', | 49 'target_name': 'simple_test', |
| 40 'type': 'none', | 50 'type': 'none', |
| 41 'variables': { | 51 'variables': { |
| 42 'nexe_target': 'simple', | 52 'nexe_target': 'simple', |
| 43 'build_newlib': 1, | 53 'build_newlib': 1, |
| 44 'build_glibc': 1, | 54 'build_glibc': 1, |
| 45 'build_pnacl_newlib': 1, | 55 'build_pnacl_newlib': 1, |
| 46 'nexe_destination_dir': 'nacl_test_data', | 56 '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', | 620 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', |
| 611 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 621 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
| 612 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', | 622 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', |
| 613 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', | 623 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', |
| 614 '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc_lib', | 624 '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc_lib', |
| 615 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 625 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
| 616 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', | 626 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', |
| 617 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.gyp:weak_ref_lib', | 627 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.gyp:weak_ref_lib', |
| 618 'nacl_ppapi_util', | 628 'nacl_ppapi_util', |
| 619 ], | 629 ], |
| 630 'conditions': [ | |
| 631 ['target_arch=="ia32" and OS=="linux"', { | |
| 632 # Enable nonsfi testing only on ia32-linux environment. | |
| 633 'variables': { | |
| 634 # This is needed to build a non-SFI nexe binary. | |
| 635 # Note that this triggers building nexe files for other | |
| 636 # architecture, such as x86-32 (based on enable_XXX variables). | |
|
Mark Seaborn
2014/05/19 18:55:29
"architectures" plural
hidehiko
2014/05/20 05:51:47
Done.
| |
| 637 # As described above, although the tests for pnacl are currently | |
| 638 # disabled, but building the binary should work. | |
| 639 # We cannot disable building, as enable_XXX variables are also used | |
| 640 # to build newlib linked nexes. | |
|
hidehiko
2014/05/19 14:51:35
FYI: generating unnecessary nexe files is what oth
| |
| 641 'build_pnacl_newlib': 1, | |
| 642 'enable_x86_32_nonsfi': 1, | |
| 643 }, | |
| 644 }], | |
| 645 ], | |
| 620 }, | 646 }, |
| 621 { | 647 { |
| 622 'target_name': 'irt_exception_test', | 648 'target_name': 'irt_exception_test', |
| 623 'type': 'none', | 649 'type': 'none', |
| 624 'variables': { | 650 'variables': { |
| 625 'nexe_target': 'irt_exception_test', | 651 'nexe_target': 'irt_exception_test', |
| 626 'build_newlib': 1, | 652 'build_newlib': 1, |
| 627 'generate_nmf': 1, | 653 'generate_nmf': 1, |
| 628 'nexe_destination_dir': 'nacl_test_data', | 654 'nexe_destination_dir': 'nacl_test_data', |
| 629 'build_pnacl_newlib': 1, | 655 'build_pnacl_newlib': 1, |
| 630 'nonsfi_destination_dir': '<(PRODUCT_DIR)/>(nexe_destination_dir)/nonsfi ', | 656 'nonsfi_destination_dir': '<(PRODUCT_DIR)/>(nexe_destination_dir)/nonsfi ', |
|
Mark Seaborn
2014/05/19 18:55:29
Shouldn't this go away too?
hidehiko
2014/05/20 05:51:47
Good catch. Done.
| |
| 631 # Workaround because generate_nmf doesn't work yet for NonSFI, | 657 # Workaround because generate_nmf doesn't work yet for NonSFI, |
|
Mark Seaborn
2014/05/19 18:55:29
Remove this comment?
hidehiko
2014/05/20 05:51:47
Done.
| |
| 632 # explicitly specify the destination directory for NonSFI so | 658 # explicitly specify the destination directory for NonSFI so |
| 633 # that we don't have to move it around. | 659 # 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': [ | 660 'link_flags': [ |
| 636 '-lppapi', | 661 '-lppapi', |
| 637 '-lppapi_test_lib', | 662 '-lppapi_test_lib', |
| 638 '-lplatform', | 663 '-lplatform', |
| 639 '-lgio', | 664 '-lgio', |
| 640 '-lnacl_exception', | 665 '-lnacl_exception', |
| 641 ], | 666 ], |
| 642 'sources': [ | 667 'sources': [ |
| 643 'irt_exception/irt_exception_test.cc', | 668 'irt_exception/irt_exception_test.cc', |
| 644 ], | 669 ], |
| 645 'test_files': [ | 670 'test_files': [ |
| 646 # TODO(ncbray) move into chrome/test/data/nacl when all tests are | 671 # TODO(ncbray) move into chrome/test/data/nacl when all tests are |
| 647 # converted. | 672 # converted. |
| 648 'irt_exception/irt_exception_test.html', | 673 'irt_exception/irt_exception_test.html', |
| 649 ], | 674 ], |
| 650 }, | 675 }, |
| 651 'dependencies': [ | 676 'dependencies': [ |
| 652 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 677 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 653 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', | 678 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', |
| 654 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', | 679 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', |
| 655 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_exception_lib', | 680 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_exception_lib', |
| 656 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', | 681 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', |
| 657 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', | 682 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', |
| 658 'ppapi_test_lib', | 683 'ppapi_test_lib', |
| 659 ], | 684 ], |
| 660 'conditions': [ | 685 'conditions': [ |
| 661 ['disable_pnacl==0 and target_arch=="ia32" and OS=="linux"', { | 686 ['target_arch=="ia32" and OS=="linux"', { |
| 687 # Enable nonsfi testing only on ia32-linux environment. | |
| 662 'variables': { | 688 'variables': { |
| 663 'enable_x86_32_nonsfi': 1, | 689 '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 }, | 690 }, |
| 676 'copies': [ | |
| 677 { | |
| 678 'destination': '>(nonsfi_destination_dir)', | |
| 679 'files': [ | |
| 680 '>@(nonsfi_test_files)', | |
| 681 ], | |
| 682 }, | |
| 683 ], | |
| 684 }], | 691 }], |
| 685 ], | 692 ], |
| 686 }, | 693 }, |
| 687 { | 694 { |
| 688 'target_name': 'pm_nameservice_test', | 695 'target_name': 'pm_nameservice_test', |
| 689 'type': 'none', | 696 'type': 'none', |
| 690 'variables': { | 697 'variables': { |
| 691 'nexe_target': 'pm_nameservice_test', | 698 'nexe_target': 'pm_nameservice_test', |
| 692 'build_newlib': 1, | 699 'build_newlib': 1, |
| 693 'build_glibc': 1, | 700 'build_glibc': 1, |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1163 # testing environment here. | 1170 # testing environment here. |
| 1164 'copies': [ | 1171 'copies': [ |
| 1165 { | 1172 { |
| 1166 'destination': '>(destination_dir)', | 1173 'destination': '>(destination_dir)', |
| 1167 'files': [ | 1174 'files': [ |
| 1168 '>@(test_files)', | 1175 '>@(test_files)', |
| 1169 ], | 1176 ], |
| 1170 }, | 1177 }, |
| 1171 ], | 1178 ], |
| 1172 }, | 1179 }, |
| 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 ], | 1180 ], |
| 1214 }], | 1181 }], |
| 1215 ], | 1182 ], |
| 1216 } | 1183 } |
| OLD | NEW |