| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 from SCons.Errors import UserError | 6 from SCons.Errors import UserError |
| 7 | 7 |
| 8 Import('env') | 8 Import('env') |
| 9 | 9 |
| 10 # | 10 # |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 caller_lib, | 54 caller_lib, |
| 55 'unreviewed/dfa_validate_%s.c' % env.get('TARGET_SUBARCH') | 55 'unreviewed/dfa_validate_%s.c' % env.get('TARGET_SUBARCH') |
| 56 ) | 56 ) |
| 57 | 57 |
| 58 # Command-line decoder. | 58 # Command-line decoder. |
| 59 decoder_test = env.ComponentProgram( | 59 decoder_test = env.ComponentProgram( |
| 60 'decoder_test', | 60 'decoder_test', |
| 61 ['unreviewed/decoder_test.c'], | 61 ['unreviewed/decoder_test.c'], |
| 62 EXTRA_LIBS=['dfa_decode_x86_32', 'dfa_decode_x86_64']) | 62 EXTRA_LIBS=['dfa_decode_x86_32', 'dfa_decode_x86_64']) |
| 63 | 63 |
| 64 # Command-line validator. | |
| 65 validator_test_exe = env.ComponentProgram( | |
| 66 'validator_test', | |
| 67 ['unreviewed/validator_test.c'], | |
| 68 EXTRA_LIBS=['dfa_validate_x86_32', 'dfa_validate_x86_64']) | |
| 69 | |
| 70 env.ComponentLibrary( | 64 env.ComponentLibrary( |
| 71 'elf_load', | 65 'elf_load', |
| 72 ['elf_load.cc'], | 66 ['elf_load.cc'], |
| 73 EXTRA_LIBS=['platform']) | 67 EXTRA_LIBS=['platform']) |
| 74 | 68 |
| 75 validator_benchmark = env.ComponentProgram( | 69 validator_benchmark = env.ComponentProgram( |
| 76 'rdfa_validator_benchmark', | 70 'rdfa_validator_benchmark', |
| 77 ['validator_benchmark.cc'], | 71 ['validator_benchmark.cc'], |
| 78 EXTRA_LIBS=['dfa_validate_x86_32', 'dfa_validate_x86_64', 'platform', | 72 EXTRA_LIBS=['dfa_validate_x86_32', 'dfa_validate_x86_64', 'platform', |
| 79 'elf_load'] | 73 'elf_load'] |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 '"${SOURCES[5]}" "%s"' | 309 '"${SOURCES[5]}" "%s"' |
| 316 ) % (bits, fast_temp_for_test), | 310 ) % (bits, fast_temp_for_test), |
| 317 ]) | 311 ]) |
| 318 check_decoders.append(check_decoder) | 312 check_decoders.append(check_decoder) |
| 319 | 313 |
| 320 SideEffect(fast_temp_for_test, check_decoders) | 314 SideEffect(fast_temp_for_test, check_decoders) |
| 321 | 315 |
| 322 env.AlwaysBuild(env.Alias('dfagen', automata)) | 316 env.AlwaysBuild(env.Alias('dfagen', automata)) |
| 323 env.AlwaysBuild(env.Alias('dfaclean', action=map(Delete, automata))) | 317 env.AlwaysBuild(env.Alias('dfaclean', action=map(Delete, automata))) |
| 324 env.AlwaysBuild(env.Alias('dfacheckdecoder', check_decoders)) | 318 env.AlwaysBuild(env.Alias('dfacheckdecoder', check_decoders)) |
| OLD | NEW |