| 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 import os | 6 import os |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 if env.Bit('linux'): | 9 if env.Bit('linux'): |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 'dgen/dgen_opt.py', | 49 'dgen/dgen_opt.py', |
| 50 'dgen/dgen_output.py'], | 50 'dgen/dgen_output.py'], |
| 51 action=['${SOURCES[1].abspath} ${SOURCES[0].abspath} ' | 51 action=['${SOURCES[1].abspath} ${SOURCES[0].abspath} ' |
| 52 '${TARGET.abspath}']) | 52 '${TARGET.abspath}']) |
| 53 | 53 |
| 54 for f in GEN_LIST: | 54 for f in GEN_LIST: |
| 55 _generate_source(f) | 55 _generate_source(f) |
| 56 | 56 |
| 57 env.ComponentLibrary('mips_validator_core', | 57 env.ComponentLibrary('mips_validator_core', |
| 58 ['address_set.cc', | 58 ['address_set.cc', |
| 59 'cpuid_mips.c', | |
| 60 'validator.cc', | 59 'validator.cc', |
| 61 'gen/decode.cc']) | 60 'gen/decode.cc']) |
| 62 | 61 |
| 63 env.ComponentLibrary('ncvalidate_mips', | 62 env.ComponentLibrary('ncvalidate_mips', |
| 64 ['ncvalidate.cc'], | 63 ['ncvalidate.cc'], |
| 65 LIBS=['mips_validator_core', | 64 LIBS=['mips_validator_core', |
| 66 '${OPTIONAL_COVERAGE_LIBS}']) | 65 '${OPTIONAL_COVERAGE_LIBS}']) |
| 67 | 66 |
| 68 ncval = env.ComponentProgram( | 67 ncval = env.ComponentProgram( |
| 69 'mips-ncval-core', | 68 'mips-ncval-core', |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 # a program of the same name. | 117 # a program of the same name. |
| 119 validator_tests_exe = gtest_env.ComponentProgram('mips_validator_tests', | 118 validator_tests_exe = gtest_env.ComponentProgram('mips_validator_tests', |
| 120 ['validator_tests.cc'], | 119 ['validator_tests.cc'], |
| 121 EXTRA_LIBS=['mips_validator_core']) | 120 EXTRA_LIBS=['mips_validator_core']) |
| 122 | 121 |
| 123 test_node = gtest_env.CommandTest( | 122 test_node = gtest_env.CommandTest( |
| 124 'mips_validator_tests.out', | 123 'mips_validator_tests.out', |
| 125 command=[validator_tests_exe]) | 124 command=[validator_tests_exe]) |
| 126 gtest_env.AddNodeToTestSuite(test_node, ['small_tests'], | 125 gtest_env.AddNodeToTestSuite(test_node, ['small_tests'], |
| 127 'run_mips_validator_tests') | 126 'run_mips_validator_tests') |
| OLD | NEW |