OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2008 The Native Client Authors. All rights reserved. | 2 # Copyright 2008 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 Import('env') | 6 Import('env') |
7 | 7 |
8 | 8 |
9 pql_inputs = []; | 9 pql_inputs = []; |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 # assembly code. (Issue 440) | 42 # assembly code. (Issue 440) |
43 if env['TARGET_SUBARCH'] == '64' and env.Bit('windows'): | 43 if env['TARGET_SUBARCH'] == '64' and env.Bit('windows'): |
44 env.Append(LIBS = ['platform_qual_lib', | 44 env.Append(LIBS = ['platform_qual_lib', |
45 'ncvalidate']) | 45 'ncvalidate']) |
46 else: | 46 else: |
47 nacl_vcpuid = vcpuid_env.ComponentLibrary('vcpuid', 'arch/x86/vcpuid.c') | 47 nacl_vcpuid = vcpuid_env.ComponentLibrary('vcpuid', 'arch/x86/vcpuid.c') |
48 env.Append(LIBS = ['vcpuid']) | 48 env.Append(LIBS = ['vcpuid']) |
49 | 49 |
50 if env['TARGET_SUBARCH'] == '64': | 50 if env['TARGET_SUBARCH'] == '64': |
51 # Compile x86-64 primitives for verifying NX functionality | 51 # Compile x86-64 primitives for verifying NX functionality |
52 pql_inputs += ['arch/x86_64/nacl_dep_qualify.c'] | 52 pql_inputs += ['arch/x86_64/nacl_dep_qualify_arch.c'] |
53 elif env['TARGET_SUBARCH'] == '32': | 53 elif env['TARGET_SUBARCH'] == '32': |
54 pql_inputs += ['arch/x86_32/nacl_dep_qualify.c'] | 54 pql_inputs += ['arch/x86_32/nacl_dep_qualify_arch.c'] |
55 | 55 |
56 # TODO(bradchen): re-enable when issue 440 is fixed | 56 # TODO(bradchen): re-enable when issue 440 is fixed |
57 # env.ComponentProgram('platform_qual_test', | 57 # env.ComponentProgram('platform_qual_test', |
58 # 'arch/x86/platform_qual_test.c') | 58 # 'arch/x86/platform_qual_test.c') |
59 env.ComponentProgram('nacl_cpuwhitelist_test', | 59 env.ComponentProgram('nacl_cpuwhitelist_test', |
60 'arch/x86/nacl_cpuwhitelist_test.c') | 60 'arch/x86/nacl_cpuwhitelist_test.c') |
61 | 61 |
62 | 62 |
63 | 63 |
64 if env['BUILD_ARCHITECTURE'] == 'arm': | 64 if env['BUILD_ARCHITECTURE'] == 'arm': |
65 # Compile ARM primitives for checking XN functionality | 65 # Compile ARM primitives for checking XN functionality |
66 pql_inputs += ['arch/arm/nacl_dep_qualify.c'] | 66 pql_inputs += ['arch/arm/nacl_dep_qualify_arch.c'] |
67 | 67 |
68 | 68 |
69 # ---------------------------------------------------------- | 69 # ---------------------------------------------------------- |
70 # | 70 # |
71 # ---------------------------------------------------------- | 71 # ---------------------------------------------------------- |
72 env.DualLibrary('platform_qual_lib', pql_inputs) | 72 env.DualLibrary('platform_qual_lib', pql_inputs) |
73 | 73 |
74 | 74 |
75 # These tests use assembly which seem to make the coverage instrumentation | 75 # These tests use assembly which seem to make the coverage instrumentation |
76 # on windows unhappy. Disable them for now on coverage for windows. | 76 # on windows unhappy. Disable them for now on coverage for windows. |
77 # TODO(bradnelson): figure out a way to get coverage working for these. | 77 # TODO(bradnelson): figure out a way to get coverage working for these. |
78 if env.Bit('windows') and env.get('COVERAGE_ENABLED'): | 78 if env.Bit('windows') and env.get('COVERAGE_ENABLED'): |
79 Return() | 79 Return() |
80 | |
OLD | NEW |