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
4 # found in the LICENSE file.
12 env.ComponentLibrary(env.NaClTargetArchSuffix('ncfileutils'), ['ncfileutil.c'])
14 env.ComponentLibrary('validation_cache', ['validation_cache.c'])
16 env.ComponentLibrary('validators', ['validator_init.c'])
18 if env.Bit('target_x86') or env.Bit('target_mips32'):
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
21 # validation scenarios.
22 gtest_env = env.MakeGTestEnv()
24 validation_cache_test_exe = gtest_env.ComponentProgram(
25 'validation_cache_test',
26 ['validation_cache_test.cc'],
27 EXTRA_LIBS=['validators', 'nrd_xfer', 'validation_cache'])
29 node = gtest_env.CommandTest(
30 'validation_cache_test.out',
31 command=[validation_cache_test_exe])
33 env.AddNodeToTestSuite(node, ['small_tests', 'validator_tests'],
34 'run_validation_cache_test')