| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # TODO(bradchen): eliminate need for the warning flag removals below | |
| 6 { | |
| 7 'includes': [ | |
| 8 '../../../../../build/common.gypi', | |
| 9 ], | |
| 10 'target_defaults': { | |
| 11 'variables': { | |
| 12 'target_base': 'none', | |
| 13 }, | |
| 14 'target_conditions': [ | |
| 15 ['target_base=="ncval_reg_sfi"', { | |
| 16 # we depend on ncvalidate build to generate the headers | |
| 17 'sources': [ 'ncvalidate_iter.c', | |
| 18 'ncvalidate_iter_detailed.c', | |
| 19 'nc_cpu_checks.c', | |
| 20 'nc_illegal.c', | |
| 21 'nc_jumps.c', | |
| 22 'address_sets.c', | |
| 23 'nc_jumps_detailed.c', | |
| 24 'nc_opcode_histogram.c', | |
| 25 'nc_protect_base.c', | |
| 26 'nc_memory_protect.c', | |
| 27 'ncvalidate_utils.c', | |
| 28 'ncval_decode_tables.c', | |
| 29 ], | |
| 30 'cflags!': [ | |
| 31 '-Wextra', | |
| 32 '-Wswitch-enum', | |
| 33 '-Wsign-compare' | |
| 34 ], | |
| 35 'xcode_settings': { | |
| 36 'WARNING_CFLAGS!': [ | |
| 37 '-Wextra', | |
| 38 '-Wswitch-enum', | |
| 39 '-Wsign-compare' | |
| 40 ] | |
| 41 }, | |
| 42 }], | |
| 43 ['target_base=="ncval_reg_sfi_verbose"', { | |
| 44 'sources': ['ncvalidate_iter_verbose.c'], | |
| 45 'cflags!': [ | |
| 46 '-Wextra', | |
| 47 '-Wswitch-enum', | |
| 48 '-Wsign-compare' | |
| 49 ], | |
| 50 'xcode_settings': { | |
| 51 'WARNING_CFLAGS!': [ | |
| 52 '-Wextra', | |
| 53 '-Wswitch-enum', | |
| 54 '-Wsign-compare' | |
| 55 ] | |
| 56 }, | |
| 57 }], | |
| 58 ], | |
| 59 }, | |
| 60 # ---------------------------------------------------------------------- | |
| 61 'conditions': [ | |
| 62 ['target_arch=="ia32"', { | |
| 63 'targets': [ | |
| 64 { | |
| 65 'target_name': 'ncval_reg_sfi_x86_32', | |
| 66 'type': 'static_library', | |
| 67 'dependencies': [ | |
| 68 '<(DEPTH)/native_client/src/trusted/validator_x86/validator_x86.gyp:
nccopy_x86_32', | |
| 69 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_32', | |
| 70 '<(DEPTH)/native_client/src/trusted/validator/x86/decoder/ncval_x86_
decoder.gyp:nc_decoder_x86_32', | |
| 71 ], | |
| 72 'variables': { | |
| 73 'target_base': 'ncval_reg_sfi', | |
| 74 }, | |
| 75 }, { | |
| 76 'target_name': 'ncval_reg_sfi_verbose_x86_32', | |
| 77 'type': 'static_library', | |
| 78 'dependencies': [ | |
| 79 'ncval_reg_sfi_x86_32', | |
| 80 ], | |
| 81 'variables': { | |
| 82 'target_base': 'ncval_reg_sfi_verbose', | |
| 83 }, | |
| 84 }], | |
| 85 }], | |
| 86 ['OS=="win" and target_arch=="ia32"', { | |
| 87 'targets': [ | |
| 88 { | |
| 89 'target_name': 'ncval_reg_sfi_x86_64', | |
| 90 'type': 'static_library', | |
| 91 'dependencies': [ | |
| 92 '<(DEPTH)/native_client/src/trusted/validator_x86/validator_x86.gyp:
nccopy_x86_64', | |
| 93 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_64', | |
| 94 '<(DEPTH)/native_client/src/trusted/validator/x86/decoder/ncval_x86
_decoder.gyp:nc_decoder_x86_64', | |
| 95 ], | |
| 96 'variables': { | |
| 97 'target_base': 'ncval_reg_sfi', | |
| 98 'win_target': 'x64', | |
| 99 }, | |
| 100 }, { | |
| 101 'target_name': 'ncval_reg_sfi_verbose_x86_64', | |
| 102 'type': 'static_library', | |
| 103 'dependencies': [ | |
| 104 'ncval_reg_sfi_x86_64', | |
| 105 ], | |
| 106 'variables': { | |
| 107 'target_base': 'ncval_reg_sfi_verbose', | |
| 108 'win_target': 'x64', | |
| 109 }, | |
| 110 }], | |
| 111 }], | |
| 112 ['target_arch=="x64"', { | |
| 113 'targets': [ | |
| 114 { | |
| 115 'target_name': 'ncval_reg_sfi_x86_64', | |
| 116 'type': 'static_library', | |
| 117 'dependencies': [ | |
| 118 '<(DEPTH)/native_client/src/trusted/validator_x86/validator_x86.gyp
:nccopy_x86_64', | |
| 119 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:
ncval_base_x86_64', | |
| 120 '<(DEPTH)/native_client/src/trusted/validator/x86/decoder/ncval_x86
_decoder.gyp:nc_decoder_x86_64', | |
| 121 ], | |
| 122 'variables': { | |
| 123 'target_base': 'ncval_reg_sfi', | |
| 124 }, | |
| 125 }, { | |
| 126 'target_name': 'ncval_reg_sfi_verbose_x86_64', | |
| 127 'type': 'static_library', | |
| 128 'dependencies': [ | |
| 129 'ncval_reg_sfi_x86_64', | |
| 130 ], | |
| 131 'variables': { | |
| 132 'target_base': 'ncval_reg_sfi_verbose', | |
| 133 }, | |
| 134 }], | |
| 135 }], | |
| 136 ], | |
| 137 } | |
| OLD | NEW |