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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 preparser_env = env.Copy() | 1343 preparser_env = env.Copy() |
1344 preparser_env.Replace(**context.flags['preparser']) | 1344 preparser_env.Replace(**context.flags['preparser']) |
1345 preparser_env.Prepend(LIBS=[preparser_library_name]) | 1345 preparser_env.Prepend(LIBS=[preparser_library_name]) |
1346 context.ApplyEnvOverrides(preparser_env) | 1346 context.ApplyEnvOverrides(preparser_env) |
1347 preparser_object = preparser_env.SConscript( | 1347 preparser_object = preparser_env.SConscript( |
1348 join('preparser', 'SConscript'), | 1348 join('preparser', 'SConscript'), |
1349 build_dir=join('obj', 'preparser', target_id), | 1349 build_dir=join('obj', 'preparser', target_id), |
1350 exports='context', | 1350 exports='context', |
1351 duplicate=False | 1351 duplicate=False |
1352 ) | 1352 ) |
1353 preparser_name = join('obj', 'preparser', target_id, 'preparser') | 1353 preparser_name = join('obj', 'preparser', target_id, 'preparser' + suffix) |
1354 preparser_program = preparser_env.Program(preparser_name, preparser_object); | 1354 preparser_program = preparser_env.Program(preparser_name, preparser_object); |
1355 preparser_env.Depends(preparser_program, preparser_library) | 1355 preparser_env.Depends(preparser_program, preparser_library) |
1356 context.preparser_targets.append(preparser_program) | 1356 context.preparser_targets.append(preparser_program) |
1357 | 1357 |
1358 return context | 1358 return context |
1359 | 1359 |
1360 | 1360 |
1361 def Build(): | 1361 def Build(): |
1362 opts = GetOptions() | 1362 opts = GetOptions() |
1363 env = Environment(options=opts) | 1363 env = Environment(options=opts) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1403 # version of scons. Also, there's a bug in some revisions that | 1403 # version of scons. Also, there's a bug in some revisions that |
1404 # doesn't allow this flag to be set, so we swallow any exceptions. | 1404 # doesn't allow this flag to be set, so we swallow any exceptions. |
1405 # Lovely. | 1405 # Lovely. |
1406 try: | 1406 try: |
1407 SetOption('warn', 'no-deprecated') | 1407 SetOption('warn', 'no-deprecated') |
1408 except: | 1408 except: |
1409 pass | 1409 pass |
1410 | 1410 |
1411 | 1411 |
1412 Build() | 1412 Build() |
OLD | NEW |