OLD | NEW |
1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2010 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 preparser_env = env.Copy() | 1402 preparser_env = env.Copy() |
1403 preparser_env.Replace(**context.flags['preparser']) | 1403 preparser_env.Replace(**context.flags['preparser']) |
1404 preparser_env.Prepend(LIBS=[preparser_library_name]) | 1404 preparser_env.Prepend(LIBS=[preparser_library_name]) |
1405 context.ApplyEnvOverrides(preparser_env) | 1405 context.ApplyEnvOverrides(preparser_env) |
1406 preparser_object = preparser_env.SConscript( | 1406 preparser_object = preparser_env.SConscript( |
1407 join('preparser', 'SConscript'), | 1407 join('preparser', 'SConscript'), |
1408 build_dir=join('obj', 'preparser', target_id), | 1408 build_dir=join('obj', 'preparser', target_id), |
1409 exports='context', | 1409 exports='context', |
1410 duplicate=False | 1410 duplicate=False |
1411 ) | 1411 ) |
1412 preparser_name = join('obj', 'preparser', target_id, 'preparser' + suffix) | 1412 preparser_name = join('obj', 'preparser', target_id, 'preparser') |
1413 preparser_program = preparser_env.Program(preparser_name, preparser_object); | 1413 preparser_program = preparser_env.Program(preparser_name, preparser_object); |
1414 preparser_env.Depends(preparser_program, preparser_library) | 1414 preparser_env.Depends(preparser_program, preparser_library) |
1415 context.preparser_targets.append(preparser_program) | 1415 context.preparser_targets.append(preparser_program) |
1416 | 1416 |
1417 return context | 1417 return context |
1418 | 1418 |
1419 | 1419 |
1420 def Build(): | 1420 def Build(): |
1421 opts = GetOptions() | 1421 opts = GetOptions() |
1422 tools = GetTools(opts) | 1422 tools = GetTools(opts) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 # version of scons. Also, there's a bug in some revisions that | 1464 # version of scons. Also, there's a bug in some revisions that |
1465 # doesn't allow this flag to be set, so we swallow any exceptions. | 1465 # doesn't allow this flag to be set, so we swallow any exceptions. |
1466 # Lovely. | 1466 # Lovely. |
1467 try: | 1467 try: |
1468 SetOption('warn', 'no-deprecated') | 1468 SetOption('warn', 'no-deprecated') |
1469 except: | 1469 except: |
1470 pass | 1470 pass |
1471 | 1471 |
1472 | 1472 |
1473 Build() | 1473 Build() |
OLD | NEW |