Extract code handling PrinterProviderAPI from PrintPreviewHandler
[chromium-blink-merge.git] / ppapi / tests / extensions / extensions.gyp
blobff5ba97a64158d8a622799fce7d2380d3a7ac4a2
1 # Copyright (c) 2013 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.
6   'includes': [
7     '../../../ppapi/ppapi_nacl_test_common.gypi',
8   ],
9   'targets': [
10     {
11       'target_name': 'ppapi_tests_extensions_background_keepalive',
12       'type': 'none',
13       'variables': {
14         'nexe_target': 'ppapi_tests_extensions_background_keepalive',
15         # Only newlib build is used in tests, no need to build others.
16         'build_newlib': 1,
17         'build_glibc': 0,
18         'build_pnacl_newlib': 0,
19         'nexe_destination_dir': 'test_data/ppapi/tests/extensions/background_keepalive',
20         'sources': [
21           'background_keepalive/background.cc',
22         ],
23         'test_files': [
24           'background_keepalive/background.js',
25           'background_keepalive/manifest.json',
26         ],
27       },
28     },
29     {
30       'target_name': 'ppapi_tests_extensions_media_galleries',
31       'type': 'none',
32       'variables': {
33         'nexe_target': 'ppapi_tests_extensions_media_galleries',
34         # Only newlib build is used in tests, no need to build others.
35         'build_newlib': 1,
36         'build_glibc': 0,
37         'build_pnacl_newlib': 0,
38         'nexe_destination_dir': 'test_data/ppapi/tests/extensions/media_galleries',
39         'sources': [
40           'media_galleries/test_galleries.cc',
41           '<(DEPTH)/ppapi/tests/test_utils.cc',
42           '<(DEPTH)/ppapi/tests/test_utils.h',
43         ],
44         'test_files': [
45           'media_galleries/background.js',
46           'media_galleries/index.html',
47           'media_galleries/manifest.json',
48           'media_galleries/test.js',
49         ],
50       },
51     },
52     {
53       'target_name': 'ppapi_tests_extensions_packaged_app',
54       'type': 'none',
55       'variables': {
56         'nexe_target': 'ppapi_tests_extensions_packaged_app',
57         'build_newlib': 1,
58         'build_glibc': 0,
59         'nexe_destination_dir': 'test_data/ppapi/tests/extensions/packaged_app',
60         'sources': [
61           'packaged_app/test_packaged_app.cc'
62         ],
63         'test_files': [
64           'packaged_app/controller.js',
65           'packaged_app/index.html',
66           'packaged_app/main.js',
67           'packaged_app/manifest.json',
68           'packaged_app/test_file.txt',
69           'packaged_app/test_file2.txt',
70         ],
71         'create_nmf_args_portable': [
72           # Add lots of "files" entries to make sure that open_resource can
73           # handle more files than FileDescriptorSet::kMaxDescriptorsPerMessage.
74           '-xtest_file0:test_file.txt',
75           '-xtest_file1:test_file2.txt',
76           '-xtest_file2:test_file.txt',
77           '-xtest_file3:test_file2.txt',
78           '-xtest_file4:test_file.txt',
79           '-xtest_file5:test_file2.txt',
80           '-xtest_file6:test_file.txt',
81           '-xtest_file7:test_file2.txt',
82         ],
83       },
84       'conditions': [
85         ['(target_arch=="ia32" or target_arch=="x64") and OS=="linux"', {
86           # Enable nonsfi testing only on ia32-linux environment.
87           # See chrome/test/data/nacl/nacl_test_data.gyp for more info.
88           'variables': {
89             'build_pnacl_newlib': 1,
90             'translate_pexe_with_build': 1,
91             'enable_x86_32_nonsfi': 1,
92           },
93         }],
94       ],
95       # Shim is a dependency for the nexe because we pre-translate.
96       'dependencies': [
97         '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:aot',
98       ],
99     },
100   ],