| OLD | NEW |
| (Empty) |
| 1 # -*- python -*- | |
| 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. | |
| 5 | |
| 6 | |
| 7 import os | |
| 8 import sys | |
| 9 Import('env') | |
| 10 | |
| 11 # | |
| 12 # | |
| 13 # Build x86 only pieces | |
| 14 # | |
| 15 # | |
| 16 if not env.Bit('target_x86'): Return() | |
| 17 | |
| 18 # TODO(bradchen): eliminate need for the following line | |
| 19 env.FilterOut(CCFLAGS=['-Wextra', '-Wswitch-enum', '-Wsign-compare']) | |
| 20 | |
| 21 # Create environment for command-line tools and testing, rather than | |
| 22 # part of the TCB. Then define compile-time flag that communicates | |
| 23 # that we are compiling in the test environment (rather than for the TCB). | |
| 24 test_env = env.Clone() | |
| 25 test_env.Append(CCFLAGS=['-DNACL_TRUSTED_BUT_NOT_TCB']) | |
| 26 | |
| 27 # Special purpose partial decoder used by the ncval_seg_sfi (x86-32 bit validato
r). | |
| 28 env.ComponentLibrary(env.NaClTargetArchSuffix('ncdis_seg_sfi'), | |
| 29 ['ncdecode.c']) | |
| 30 | |
| 31 # Segment register validator library | |
| 32 env.ComponentLibrary(env.NaClTargetArchSuffix('ncval_seg_sfi'), | |
| 33 ['ncvalidate.c', | |
| 34 'ncvalidate_detailed.c' | |
| 35 ]) | |
| 36 | |
| 37 # Verbose version of segment register validator library. | |
| 38 env.ComponentLibrary(env.NaClTargetArchSuffix('ncdis_seg_sfi_verbose'), | |
| 39 ['ncdecode_verbose.c']) | |
| OLD | NEW |