| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 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 | 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 # TODO(bradchen): | 6 # TODO(bradchen): |
| 7 # - update plaform_qualify.gyp to be consistent with build.scons | 7 # - update plaform_qualify.gyp to be consistent with build.scons |
| 8 # - update sel_ldr to include blacklist check | 8 # - update sel_ldr to include blacklist check |
| 9 | 9 |
| 10 Import('env') | 10 Import('env') |
| 11 | 11 |
| 12 | 12 |
| 13 pql_inputs = [] | 13 pql_inputs = [] |
| 14 extra_libs = [] | 14 extra_libs = [] |
| 15 | 15 |
| 16 # | 16 # |
| 17 # OS-specific qualification routines | 17 # OS-specific qualification routines |
| 18 # | 18 # |
| 19 if env.Bit('windows'): | 19 if env.Bit('windows'): |
| 20 pql_inputs += ['win/nacl_os_qualify.c', | 20 pql_inputs += ['win/nacl_os_qualify.c', |
| 21 'win/nacl_dep_qualify.c'] | 21 'win/nacl_dep_qualify.c'] |
| 22 else: | 22 else: |
| 23 pql_inputs += ['posix/nacl_dep_qualify.c'] | 23 pql_inputs += ['posix/nacl_dep_qualify.c'] |
| 24 if env.Bit('mac'): | 24 if env.Bit('mac'): |
| 25 pql_inputs += ['osx/nacl_os_qualify.c'] | 25 pql_inputs += ['osx/nacl_os_qualify.c'] |
| 26 elif env.Bit('linux'): | 26 elif env.Bit('linux'): |
| 27 pql_inputs += ['linux/nacl_os_qualify.c'] | 27 pql_inputs += ['linux/nacl_os_qualify.c'] |
| 28 if not env.Bit('android'): | |
| 29 pql_inputs += ['linux/sysv_shm_and_mmap.c'] | |
| 30 | 28 |
| 31 # Convert a library name into a target specific libary name | 29 # Convert a library name into a target specific libary name |
| 32 def TargetLib(env, name): | 30 def TargetLib(env, name): |
| 33 return name + '_' + env['TARGET_FULLARCH'].replace('-', '_') | 31 return name + '_' + env['TARGET_FULLARCH'].replace('-', '_') |
| 34 | 32 |
| 35 # | 33 # |
| 36 # Architecture-specific qualification routines | 34 # Architecture-specific qualification routines |
| 37 # | 35 # |
| 38 if env.Bit('build_x86') and env.Bit('target_x86'): | 36 if env.Bit('build_x86') and env.Bit('target_x86'): |
| 39 pql_inputs += ['arch/x86/nacl_cpuwhitelist.c'] | 37 pql_inputs += ['arch/x86/nacl_cpuwhitelist.c'] |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 # | 89 # |
| 92 # ---------------------------------------------------------- | 90 # ---------------------------------------------------------- |
| 93 env.DualLibrary('platform_qual_lib', pql_inputs) | 91 env.DualLibrary('platform_qual_lib', pql_inputs) |
| 94 | 92 |
| 95 | 93 |
| 96 # These tests use assembly which seem to make the coverage instrumentation | 94 # These tests use assembly which seem to make the coverage instrumentation |
| 97 # on windows unhappy. Disable them for now on coverage for windows. | 95 # on windows unhappy. Disable them for now on coverage for windows. |
| 98 # TODO(bradnelson): figure out a way to get coverage working for these. | 96 # TODO(bradnelson): figure out a way to get coverage working for these. |
| 99 if env.Bit('windows') and env.Bit('coverage_enabled'): | 97 if env.Bit('windows') and env.Bit('coverage_enabled'): |
| 100 Return() | 98 Return() |
| OLD | NEW |