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

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

Issue 758223003: Cleanup: Use Bit('build_ARCH') instead of Bit('target_ARCH') (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix + simplify Created 6 years 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/service_runtime/nacl.scons ('k') | src/trusted/validator_arm/build.scons » ('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 6
7 import os 7 import os
8 import sys 8 import sys
9 Import('env') 9 Import('env')
10 10
11 11
12 env.ComponentLibrary(env.NaClTargetArchSuffix('ncfileutils'), ['ncfileutil.c']) 12 env.ComponentLibrary(env.NaClTargetArchSuffix('ncfileutils'), ['ncfileutil.c'])
13 13
14 env.ComponentLibrary('validation_cache', ['validation_cache.c']) 14 env.ComponentLibrary('validation_cache', ['validation_cache.c'])
15 15
16 env.ComponentLibrary('validators', ['validator_init.c']) 16 env.ComponentLibrary('validators', ['validator_init.c'])
17 17
18 if env.Bit('target_x86') or env.Bit('target_mips32'): 18 if env.Bit('build_x86') or env.Bit('build_mips32'):
19 # TODO(ncbray) support ARM. This will require making validation caching safe 19 # TODO(ncbray) support ARM. This will require making validation caching safe
20 # for ARM and embedding ARM binary chunks in the test that can trigger various 20 # for ARM and embedding ARM binary chunks in the test that can trigger various
21 # validation scenarios. 21 # validation scenarios.
22 gtest_env = env.MakeGTestEnv() 22 gtest_env = env.MakeGTestEnv()
23 23
24 validation_cache_test_exe = gtest_env.ComponentProgram( 24 validation_cache_test_exe = gtest_env.ComponentProgram(
25 'validation_cache_test', 25 'validation_cache_test',
26 ['validation_cache_test.cc'], 26 ['validation_cache_test.cc'],
27 EXTRA_LIBS=['validators', 'nrd_xfer', 'validation_cache']) 27 EXTRA_LIBS=['validators', 'nrd_xfer', 'validation_cache'])
28 28
29 node = gtest_env.CommandTest( 29 node = gtest_env.CommandTest(
30 'validation_cache_test.out', 30 'validation_cache_test.out',
31 command=[validation_cache_test_exe]) 31 command=[validation_cache_test_exe])
32 32
33 env.AddNodeToTestSuite(node, ['small_tests', 'validator_tests'], 33 env.AddNodeToTestSuite(node, ['small_tests', 'validator_tests'],
34 'run_validation_cache_test') 34 'run_validation_cache_test')
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/nacl.scons ('k') | src/trusted/validator_arm/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698