OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 | 7 |
8 Import('env') | 8 Import('env') |
9 | 9 |
10 # To get generated include files. | 10 # To get generated include files. |
(...skipping 26 matching lines...) Expand all Loading... |
37 # scons --mode=opt-linux/mac/win srpcgen | 37 # scons --mode=opt-linux/mac/win srpcgen |
38 # scons --mode=dbg-linux/mac/win sprcgen | 38 # scons --mode=dbg-linux/mac/win sprcgen |
39 # The .cc files are written to ./ and .h files - to ./trusted/srpcgen/. | 39 # The .cc files are written to ./ and .h files - to ./trusted/srpcgen/. |
40 # The generated files must be committed when changes are made to .srpc files. | 40 # The generated files must be committed when changes are made to .srpc files. |
41 | 41 |
42 env.TrustedSrpc(is_client=True, | 42 env.TrustedSrpc(is_client=True, |
43 srpc_files=['completion_callback.srpc', | 43 srpc_files=['completion_callback.srpc', |
44 'ppp.srpc', | 44 'ppp.srpc', |
45 'ppp_audio.srpc', | 45 'ppp_audio.srpc', |
46 'ppp_find.srpc', | 46 'ppp_find.srpc', |
| 47 'ppp_input_event.srpc', |
47 'ppp_instance.srpc', | 48 'ppp_instance.srpc', |
48 'ppp_messaging.srpc', | 49 'ppp_messaging.srpc', |
49 'ppp_printing.srpc', | 50 'ppp_printing.srpc', |
50 'ppp_scrollbar.srpc', | 51 'ppp_scrollbar.srpc', |
51 'ppp_selection.srpc', | 52 'ppp_selection.srpc', |
52 'ppp_widget.srpc', | 53 'ppp_widget.srpc', |
53 'ppp_zoom.srpc', | 54 'ppp_zoom.srpc', |
54 ], | 55 ], |
55 name='PppRpcs', | 56 name='PppRpcs', |
56 h_file='ppp_rpc.h', | 57 h_file='ppp_rpc.h', |
57 cc_file='ppp_rpc_client.cc', | 58 cc_file='ppp_rpc_client.cc', |
58 guard='GEN_PPAPI_PROXY_PPP_RPC_H_') | 59 guard='GEN_PPAPI_PROXY_PPP_RPC_H_') |
59 | 60 |
60 env.TrustedSrpc(is_client=False, | 61 env.TrustedSrpc(is_client=False, |
61 srpc_files=['nacl_file.srpc', | 62 srpc_files=['nacl_file.srpc', |
62 'ppb.srpc', | 63 'ppb.srpc', |
63 'ppb_audio.srpc', | 64 'ppb_audio.srpc', |
64 'ppb_audio_config.srpc', | 65 'ppb_audio_config.srpc', |
65 'ppb_core.srpc', | 66 'ppb_core.srpc', |
66 'ppb_cursor_control.srpc', | 67 'ppb_cursor_control.srpc', |
67 'ppb_file_io.srpc', | 68 'ppb_file_io.srpc', |
68 'ppb_file_system.srpc', | 69 'ppb_file_system.srpc', |
69 'ppb_find.srpc', | 70 'ppb_find.srpc', |
70 'ppb_font.srpc', | 71 'ppb_font.srpc', |
71 'ppb_graphics_2d.srpc', | 72 'ppb_graphics_2d.srpc', |
72 'ppb_graphics_3d.srpc', | 73 'ppb_graphics_3d.srpc', |
73 'ppb_image_data.srpc', | 74 'ppb_image_data.srpc', |
| 75 'ppb_input_event.srpc', |
74 'ppb_instance.srpc', | 76 'ppb_instance.srpc', |
75 'ppb_messaging.srpc', | 77 'ppb_messaging.srpc', |
76 'ppb_pdf.srpc', | 78 'ppb_pdf.srpc', |
77 'ppb_scrollbar.srpc', | 79 'ppb_scrollbar.srpc', |
78 'ppb_testing.srpc', | 80 'ppb_testing.srpc', |
79 'ppb_url_loader.srpc', | 81 'ppb_url_loader.srpc', |
80 'ppb_url_request_info.srpc', | 82 'ppb_url_request_info.srpc', |
81 'ppb_url_response_info.srpc', | 83 'ppb_url_response_info.srpc', |
82 'ppb_widget.srpc', | 84 'ppb_widget.srpc', |
83 'ppb_zoom.srpc', | 85 'ppb_zoom.srpc', |
(...skipping 21 matching lines...) Expand all Loading... |
105 'browser_ppb_audio_rpc_server.cc', | 107 'browser_ppb_audio_rpc_server.cc', |
106 'browser_ppb_audio_config_rpc_server.cc', | 108 'browser_ppb_audio_config_rpc_server.cc', |
107 'browser_ppb_core_rpc_server.cc', | 109 'browser_ppb_core_rpc_server.cc', |
108 'browser_ppb_cursor_control_rpc_server.cc', | 110 'browser_ppb_cursor_control_rpc_server.cc', |
109 'browser_ppb_file_io_rpc_server.cc', | 111 'browser_ppb_file_io_rpc_server.cc', |
110 'browser_ppb_file_system_rpc_server.cc', | 112 'browser_ppb_file_system_rpc_server.cc', |
111 'browser_ppb_find_rpc_server.cc', | 113 'browser_ppb_find_rpc_server.cc', |
112 'browser_ppb_font_rpc_server.cc', | 114 'browser_ppb_font_rpc_server.cc', |
113 'browser_ppb_graphics_2d_rpc_server.cc', | 115 'browser_ppb_graphics_2d_rpc_server.cc', |
114 'browser_ppb_image_data_rpc_server.cc', | 116 'browser_ppb_image_data_rpc_server.cc', |
| 117 'browser_ppb_input_event_rpc_server.cc', |
115 'browser_ppb_instance_rpc_server.cc', | 118 'browser_ppb_instance_rpc_server.cc', |
116 'browser_ppb_messaging_rpc_server.cc', | 119 'browser_ppb_messaging_rpc_server.cc', |
117 'browser_ppb_pdf_rpc_server.cc', | 120 'browser_ppb_pdf_rpc_server.cc', |
118 'browser_ppb_rpc_server.cc', | 121 'browser_ppb_rpc_server.cc', |
119 'browser_ppb_scrollbar_rpc_server.cc', | 122 'browser_ppb_scrollbar_rpc_server.cc', |
120 'browser_ppb_testing_rpc_server.cc', | 123 'browser_ppb_testing_rpc_server.cc', |
121 'browser_ppb_url_loader_rpc_server.cc', | 124 'browser_ppb_url_loader_rpc_server.cc', |
122 'browser_ppb_url_request_info_rpc_server.cc', | 125 'browser_ppb_url_request_info_rpc_server.cc', |
123 'browser_ppb_url_response_info_rpc_server.cc', | 126 'browser_ppb_url_response_info_rpc_server.cc', |
124 'browser_ppb_widget_rpc_server.cc', | 127 'browser_ppb_widget_rpc_server.cc', |
125 'browser_ppb_zoom_rpc_server.cc', | 128 'browser_ppb_zoom_rpc_server.cc', |
126 'browser_ppp_find.cc', | 129 'browser_ppp_find.cc', |
| 130 'browser_ppp_input_event.cc', |
127 'browser_ppp_instance.cc', | 131 'browser_ppp_instance.cc', |
128 'browser_ppp_messaging.cc', | 132 'browser_ppp_messaging.cc', |
129 'browser_ppp_printing.cc', | 133 'browser_ppp_printing.cc', |
130 'browser_ppp_scrollbar.cc', | 134 'browser_ppp_scrollbar.cc', |
131 'browser_ppp_selection.cc', | 135 'browser_ppp_selection.cc', |
132 'browser_ppp_widget.cc', | 136 'browser_ppp_widget.cc', |
133 'browser_ppp_zoom.cc', | 137 'browser_ppp_zoom.cc', |
134 'browser_ppp.cc', | 138 'browser_ppp.cc', |
135 'browser_upcall.cc', | 139 'browser_upcall.cc', |
| 140 'input_event_data.cc', |
136 'object_serialize.cc', | 141 'object_serialize.cc', |
137 # Autogenerated files | 142 # Autogenerated files |
138 'ppb_rpc_server.cc', | 143 'ppb_rpc_server.cc', |
139 'ppp_rpc_client.cc', | 144 'ppp_rpc_client.cc', |
140 'upcall_server.cc', | 145 'upcall_server.cc', |
141 common_obj,]) | 146 common_obj,]) |
142 | 147 |
143 # TODO(polina): this is only needed because fake_browser_ppapi | |
144 # borrows code from the plugin side proxy. Don't do that. | |
145 env.DualLibrary('ppapi_plugin', | |
146 ['plugin_ppb_var.cc', | |
147 'proxy_var.cc', | |
148 'proxy_var_cache.cc', | |
149 common_obj]) | |
150 | |
151 | |
152 # Do a recursive diff of all files found in the first source directory against | 148 # Do a recursive diff of all files found in the first source directory against |
153 # all the checked in versions of the files | 149 # all the checked in versions of the files |
154 node = env.CommandTest( | 150 node = env.CommandTest( |
155 'srpc_diff.out', | 151 'srpc_diff.out', |
156 command=['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/diff.py', '-arv', | 152 command=['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/diff.py', '-arv', |
157 '${TARGET_ROOT}/srpcgen/src', | 153 '${TARGET_ROOT}/srpcgen/src', |
158 '${SOURCE_ROOT}/native_client/src']) | 154 '${SOURCE_ROOT}/native_client/src']) |
159 | 155 |
160 # Add a dependency on the 'srpcdif' alias for the previous command | 156 # Add a dependency on the 'srpcdif' alias for the previous command |
161 env.Depends(node, Alias('srpcdif')) | 157 env.Depends(node, Alias('srpcdif')) |
162 | 158 |
163 # Create an alias for the command and add it to the standard small test. | 159 # Create an alias for the command and add it to the standard small test. |
164 # This test verifies that the checked in SRPC generated files are | 160 # This test verifies that the checked in SRPC generated files are |
165 # actually up to date. We ignore ARM which generates false negatives. | 161 # actually up to date. We ignore ARM which generates false negatives. |
166 # This is okay, since all try/builds should reproduce the same result | 162 # This is okay, since all try/builds should reproduce the same result |
167 # this is a check on what is in source control, and generated files are | 163 # this is a check on what is in source control, and generated files are |
168 # platform independent. | 164 # platform independent. |
169 if not env.Bit('target_arm'): | 165 if not env.Bit('target_arm'): |
170 env.AddNodeToTestSuite(node, ['small_tests'], 'run_srpcgen_test') | 166 env.AddNodeToTestSuite(node, ['small_tests'], 'run_srpcgen_test') |
OLD | NEW |