OLD | NEW |
| (Empty) |
1 # Copyright (c) 2011 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 # This GYP file defines untrusted (NaCl) targets. All targets in this | |
6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid | |
7 # requiring NaCl sources for building. | |
8 | |
9 { | |
10 'includes': [ | |
11 '../native_client/build/untrusted.gypi', | |
12 'ppapi_sources.gypi', | |
13 ], | |
14 'targets': [ | |
15 { | |
16 'target_name': 'ppapi_cpp_lib', | |
17 'type': 'none', | |
18 'variables': { | |
19 'nlib_target': 'libppapi_cpp.a', | |
20 'build_glibc': 0, | |
21 'build_newlib': 1, | |
22 'sources': [ | |
23 '<@(cpp_sources)', | |
24 'cpp/module_embedder.h', | |
25 'cpp/ppp_entrypoints.cc', | |
26 ], | |
27 }, | |
28 'dependencies': [ | |
29 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
30 ], | |
31 }, | |
32 { | |
33 'target_name': 'ppapi_nacl_tests', | |
34 'type': 'none', | |
35 'dependencies': [ | |
36 'ppapi_cpp_lib', | |
37 'native_client/native_client.gyp:ppapi_lib', | |
38 'native_client/native_client.gyp:nacl_irt', | |
39 ], | |
40 'variables': { | |
41 'nexe_target': 'ppapi_nacl_tests', | |
42 'build_glibc': 0, | |
43 'build_newlib': 1, | |
44 'include_dirs': [ | |
45 'lib/gl/include', | |
46 '..', | |
47 ], | |
48 'link_flags': [ | |
49 '-lppapi_cpp', | |
50 '-lppapi', | |
51 ], | |
52 'extra_deps64': [ | |
53 '<(PRODUCT_DIR)/obj/gen/tc_newlib/lib64/libppapi_cpp.a', | |
54 '<(PRODUCT_DIR)/obj/gen/tc_newlib/lib64/libppapi.a', | |
55 ], | |
56 'extra_deps32': [ | |
57 '<(PRODUCT_DIR)/obj/gen/tc_newlib/lib32/libppapi_cpp.a', | |
58 '<(PRODUCT_DIR)/obj/gen/tc_newlib/lib32/libppapi.a', | |
59 ], | |
60 'sources': [ | |
61 # Common test files | |
62 'tests/test_case.cc', | |
63 'tests/test_utils.cc', | |
64 'tests/testing_instance.cc', | |
65 | |
66 # Compile-time tests | |
67 'tests/test_c_includes.c', | |
68 'tests/test_cpp_includes.cc', | |
69 'tests/test_struct_sizes.c', | |
70 # Test cases (PLEASE KEEP THIS SECTION IN ALPHABETICAL ORDER) | |
71 | |
72 # Add/uncomment PPAPI interfaces below when they get proxied. | |
73 # Not yet proxied. | |
74 #'test_broker.cc', | |
75 # Not yet proxied. | |
76 #'test_buffer.cc', | |
77 # Not yet proxied. | |
78 #'test_char_set.cc', | |
79 'tests/test_cursor_control.cc', | |
80 # Fails in DeleteDirectoryRecursively. | |
81 # BUG: http://code.google.com/p/nativeclient/issues/detail?id=2107 | |
82 #'test_directory_reader.cc', | |
83 'tests/test_file_io.cc', | |
84 'tests/test_file_ref.cc', | |
85 'tests/test_file_system.cc', | |
86 'tests/test_memory.cc', | |
87 'tests/test_graphics_2d.cc', | |
88 'tests/test_image_data.cc', | |
89 'tests/test_paint_aggregator.cc', | |
90 # test_post_message.cc relies on synchronous scripting, which is not | |
91 # available for untrusted tests. | |
92 # Does not compile under nacl (uses private interface ExecuteScript). | |
93 #'test_post_message.cc', | |
94 'tests/test_scrollbar.cc', | |
95 # Not yet proxied. | |
96 #'tests/test_transport.cc', | |
97 # Not yet proxied. | |
98 #'tests/test_uma.cc', | |
99 # Activating the URL loader test requires a test httpd that | |
100 # understands HTTP POST, which our current httpd.py doesn't. | |
101 # It also requires deactivating the tests that use FileIOTrusted | |
102 # when running in NaCl. | |
103 #'tests/test_url_loader.cc', | |
104 # Does not compile under nacl (uses VarPrivate). | |
105 #'test_url_util.cc', | |
106 # Not yet proxied. | |
107 #'test_video_decoder.cc', | |
108 'tests/test_var.cc', | |
109 | |
110 # Deprecated test cases. | |
111 #'tests/test_instance_deprecated.cc', | |
112 # Var_deprecated fails in TestPassReference, and we probably won't | |
113 # fix it. | |
114 #'tests/test_var_deprecated.cc' | |
115 ], | |
116 }, | |
117 }, | |
118 ], | |
119 } | |
OLD | NEW |