| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 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 | 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 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 # TODO(bradchen): eliminate need for the following line | 28 # TODO(bradchen): eliminate need for the following line |
| 29 env.FilterOut(CCFLAGS=['-Wextra', '-Wswitch-enum', '-Wsign-compare']) | 29 env.FilterOut(CCFLAGS=['-Wextra', '-Wswitch-enum', '-Wsign-compare']) |
| 30 | 30 |
| 31 # Create environment for command-line tools and testing, rather than | 31 # Create environment for command-line tools and testing, rather than |
| 32 # part of the TCB. Then define compile-time flag that communicates | 32 # part of the TCB. Then define compile-time flag that communicates |
| 33 # that we are compiling in the test environment (rather than for the TCB). | 33 # that we are compiling in the test environment (rather than for the TCB). |
| 34 test_env = env.Clone(); | 34 test_env = env.Clone(); |
| 35 test_env.Append(CCFLAGS=['-DNACL_TRUSTED_BUT_NOT_TCB']) | 35 test_env.Append(CCFLAGS=['-DNACL_TRUSTED_BUT_NOT_TCB']) |
| 36 | 36 |
| 37 # Special purpose partial decoder used by the ncval_seg_sfi (x86-32 bit validato
r). |
| 38 env.ComponentLibrary(env.NaClTargetArchSuffix('ncdis_seg_sfi'), |
| 39 ['ncdecode.c']) |
| 40 |
| 37 # Segment register validator library | 41 # Segment register validator library |
| 38 env.ComponentLibrary(env.NaClTargetArchSuffix('ncval_seg_sfi'), | 42 env.ComponentLibrary(env.NaClTargetArchSuffix('ncval_seg_sfi'), |
| 39 ['ncdecode.c', | 43 ['ncvalidate.c', |
| 40 'ncvalidate.c', | |
| 41 'ncvalidate_detailed.c' | 44 'ncvalidate_detailed.c' |
| 42 ]) | 45 ]) |
| 43 | 46 |
| 44 # Verbose version of segment register validator library. | 47 # Verbose version of segment register validator library. |
| 45 env.ComponentLibrary(env.NaClTargetArchSuffix('ncval_seg_sfi_verbose'), | 48 env.ComponentLibrary(env.NaClTargetArchSuffix('ncdis_seg_sfi_verbose'), |
| 46 ['ncdecode_verbose.c']) | 49 ['ncdecode_verbose.c']) |
| OLD | NEW |