OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2008 The Native Client Authors. All rights reserved. | 2 # Copyright 2008 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 atexit | 6 import atexit |
7 import glob | 7 import glob |
8 import os | 8 import os |
9 import stat | 9 import stat |
10 import subprocess | 10 import subprocess |
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 # The include path used must be the original passed in directory. | 1247 # The include path used must be the original passed in directory. |
1248 include = h_file | 1248 include = h_file |
1249 | 1249 |
1250 # But for the output path prepend the output directory. | 1250 # But for the output path prepend the output directory. |
1251 if build_dir: | 1251 if build_dir: |
1252 h_file = build_dir + '/' + h_file | 1252 h_file = build_dir + '/' + h_file |
1253 cc_file = build_dir + '/' + cc_file | 1253 cc_file = build_dir + '/' + cc_file |
1254 | 1254 |
1255 # Build the base command-line | 1255 # Build the base command-line |
1256 gen_args = ['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/srpcgen.py', | 1256 gen_args = ['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/srpcgen.py', |
1257 '--include=' + include, direction, name, guard, h_file, cc_file] | 1257 '--ppapi --include=' + include,direction, name, guard, |
| 1258 h_file, cc_file] |
1258 | 1259 |
1259 # Add the srpc_files | 1260 # Add the srpc_files |
1260 for name in srpc_files: | 1261 for name in srpc_files: |
1261 gen_args.append(File(name).srcnode().abspath) | 1262 gen_args.append(File(name).srcnode().abspath) |
1262 | 1263 |
1263 # Build the command line string | 1264 # Build the command line string |
1264 action = ' '.join(gen_args) | 1265 action = ' '.join(gen_args) |
1265 | 1266 |
1266 # Force all Unix style paths to be OS appropriate | 1267 # Force all Unix style paths to be OS appropriate |
1267 action = os.path.sep.join(action.split('/')) | 1268 action = os.path.sep.join(action.split('/')) |
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2464 Default(['all_programs', 'all_bundles', 'all_test_programs', 'all_libraries']) | 2465 Default(['all_programs', 'all_bundles', 'all_test_programs', 'all_libraries']) |
2465 | 2466 |
2466 if BROKEN_TEST_COUNT > 0: | 2467 if BROKEN_TEST_COUNT > 0: |
2467 msg = "There are %d broken tests." % BROKEN_TEST_COUNT | 2468 msg = "There are %d broken tests." % BROKEN_TEST_COUNT |
2468 if GetOption('brief_comstr'): | 2469 if GetOption('brief_comstr'): |
2469 msg += " Add --verbose to the command line for more information." | 2470 msg += " Add --verbose to the command line for more information." |
2470 print msg | 2471 print msg |
2471 | 2472 |
2472 # separate warnings from actual build output | 2473 # separate warnings from actual build output |
2473 Banner('B U I L D - O U T P U T:') | 2474 Banner('B U I L D - O U T P U T:') |
OLD | NEW |