Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: src/trusted/validator_mips/build.scons

Issue 11864002: Move CPU features into its own static library. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Address bsy's comments by not building x86 target when host isn't x86. This is how things are curre… Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/trusted/validator_arm/validator_arm.gyp ('k') | src/trusted/validator_mips/cpuid_mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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')
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/validator_arm.gyp ('k') | src/trusted/validator_mips/cpuid_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698