2 # Copyright (c) 2011 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.
13 # Build x86 only pieces
16 if not env.Bit('target_x86'): Return()
18 # TODO(bradchen): eliminate need for the following line
19 env.FilterOut(CCFLAGS=['-Wextra', '-Wswitch-enum', '-Wsign-compare'])
21 # SFI validator library.
22 ncval_reg_sfi_sources = ['ncvalidate_iter.c',
23 'ncvalidate_iter_detailed.c',
28 'nc_jumps_detailed.c',
29 'nc_opcode_histogram.c',
31 'nc_memory_protect.c',
33 'ncval_decode_tables.c',
36 if env.Bit('ncval_testing'):
37 ncval_reg_sfi_sources.append('nc_postconds.c')
39 env.ComponentLibrary(env.NaClTargetArchSuffix('ncval_reg_sfi'),
40 ncval_reg_sfi_sources)
42 # Verbose routines of SFI validator library.
43 env.ComponentLibrary(env.NaClTargetArchSuffix('ncval_reg_sfi_verbose'),
44 ['ncvalidate_iter_verbose.c',