OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Chromium Authors. All rights reserved. | 2 # Copyright 2011 The Chromium 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 'browser_ppp_widget.cc', | 148 'browser_ppp_widget.cc', |
149 'browser_ppp_zoom.cc', | 149 'browser_ppp_zoom.cc', |
150 'browser_ppp.cc', | 150 'browser_ppp.cc', |
151 'browser_upcall.cc', | 151 'browser_upcall.cc', |
152 'input_event_data.cc', | 152 'input_event_data.cc', |
153 'object_serialize.cc', | 153 'object_serialize.cc', |
154 # Autogenerated files | 154 # Autogenerated files |
155 'ppb_rpc_server.cc', | 155 'ppb_rpc_server.cc', |
156 'ppp_rpc_client.cc', | 156 'ppp_rpc_client.cc', |
157 'upcall_server.cc', | 157 'upcall_server.cc', |
| 158 'view_data.cc', |
158 common_obj,]) | 159 common_obj,]) |
159 | 160 |
160 # Do a recursive diff of all files found in the first source directory against | 161 # Do a recursive diff of all files found in the first source directory against |
161 # all the checked in versions of the files | 162 # all the checked in versions of the files |
162 node = env.CommandTest( | 163 node = env.CommandTest( |
163 'srpc_diff.out', | 164 'srpc_diff.out', |
164 command=['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/diff.py', '-arv', | 165 command=['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/diff.py', '-arv', |
165 '${TARGET_ROOT}/srpcgen/src', | 166 '${TARGET_ROOT}/srpcgen/src', |
166 '${SOURCE_ROOT}/ppapi/native_client/src']) | 167 '${SOURCE_ROOT}/ppapi/native_client/src']) |
167 | 168 |
168 # Add a dependency on the 'srpcdif' alias for the previous command | 169 # Add a dependency on the 'srpcdif' alias for the previous command |
169 env.Depends(node, Alias('srpcdif')) | 170 env.Depends(node, Alias('srpcdif')) |
170 | 171 |
171 # Create an alias for the command and add it to the standard small test. | 172 # Create an alias for the command and add it to the standard small test. |
172 # This test verifies that the checked in SRPC generated files are | 173 # This test verifies that the checked in SRPC generated files are |
173 # actually up to date. We ignore ARM which generates false negatives. | 174 # actually up to date. We ignore ARM which generates false negatives. |
174 # This is okay, since all try/builds should reproduce the same result | 175 # This is okay, since all try/builds should reproduce the same result |
175 # this is a check on what is in source control, and generated files are | 176 # this is a check on what is in source control, and generated files are |
176 # platform independent. | 177 # platform independent. |
177 if not env.Bit('target_arm'): | 178 if not env.Bit('target_arm'): |
178 env.AddNodeToTestSuite(node, ['small_tests'], 'run_srpcgen_test') | 179 env.AddNodeToTestSuite(node, ['small_tests'], 'run_srpcgen_test') |
OLD | NEW |