| 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=="ncdis_seg_sfi"', { | |
| 16 'sources': [ | |
| 17 'ncdecode.c', | |
| 18 ], | |
| 19 'cflags!': [ | |
| 20 '-Wextra', | |
| 21 '-Wswitch-enum', | |
| 22 '-Wsign-compare' | |
| 23 ], | |
| 24 'xcode_settings': { | |
| 25 'WARNING_CFLAGS!': [ | |
| 26 '-Wextra', | |
| 27 '-Wswitch-enum', | |
| 28 '-Wsign-compare' | |
| 29 ], | |
| 30 }, | |
| 31 }], | |
| 32 ['target_base=="ncdis_seg_sfi_verbose"', { | |
| 33 'sources': [ | |
| 34 'ncdecode_verbose.c', | |
| 35 ], | |
| 36 'cflags!': [ | |
| 37 '-Wextra', | |
| 38 '-Wswitch-enum', | |
| 39 '-Wsign-compare' | |
| 40 ], | |
| 41 'xcode_settings': { | |
| 42 'WARNING_CFLAGS!': [ | |
| 43 '-Wextra', | |
| 44 '-Wswitch-enum', | |
| 45 '-Wsign-compare' | |
| 46 ], | |
| 47 }, | |
| 48 }], | |
| 49 ['target_base=="ncval_seg_sfi"', { | |
| 50 'sources': [ | |
| 51 'ncvalidate.c', | |
| 52 'ncvalidate_detailed.c', | |
| 53 ], | |
| 54 'cflags!': [ | |
| 55 '-Wextra', | |
| 56 '-Wswitch-enum', | |
| 57 '-Wsign-compare' | |
| 58 ], | |
| 59 'xcode_settings': { | |
| 60 'WARNING_CFLAGS!': [ | |
| 61 '-Wextra', | |
| 62 '-Wswitch-enum', | |
| 63 '-Wsign-compare' | |
| 64 ], | |
| 65 }, | |
| 66 }], | |
| 67 ], | |
| 68 }, | |
| 69 # ---------------------------------------------------------------------- | |
| 70 'conditions': [ | |
| 71 ['target_arch=="ia32"', { | |
| 72 'targets': [ | |
| 73 { | |
| 74 'target_name': 'ncdis_seg_sfi_x86_32', | |
| 75 'type': 'static_library', | |
| 76 'variables': { | |
| 77 'target_base': 'ncdis_seg_sfi', | |
| 78 }, | |
| 79 }, { | |
| 80 'target_name': 'ncdis_seg_sfi_verbose_x86_32', | |
| 81 'type': 'static_library', | |
| 82 'variables': { | |
| 83 'target_base': 'ncdis_seg_sfi_verbose', | |
| 84 }, | |
| 85 'dependencies': [ | |
| 86 'ncdis_seg_sfi_x86_32', | |
| 87 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_verbose_x86_32' | |
| 88 ], | |
| 89 'hard_dependency': 1, | |
| 90 }, { | |
| 91 'target_name': 'ncval_seg_sfi_x86_32', | |
| 92 'type': 'static_library', | |
| 93 'variables': { | |
| 94 'target_base': 'ncval_seg_sfi', | |
| 95 }, | |
| 96 'dependencies': [ | |
| 97 'ncdis_seg_sfi_x86_32', | |
| 98 '<(DEPTH)/native_client/src/trusted/validator_x86/validator_x86.gyp:
nccopy_x86_32', | |
| 99 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_32' | |
| 100 ], | |
| 101 'hard_dependency': 1, | |
| 102 # VS2010 does not correctly incrementally link obj files generated | |
| 103 # from asm files. This flag disables UseLibraryDependencyInputs to | |
| 104 # avoid this problem. | |
| 105 'msvs_2010_disable_uldi_when_referenced': 1, | |
| 106 }], | |
| 107 }], | |
| 108 ['OS=="win" and target_arch=="ia32"', { | |
| 109 'targets': [ | |
| 110 { | |
| 111 'target_name': 'ncdis_seg_sfi_x86_64', | |
| 112 'type': 'static_library', | |
| 113 'variables': { | |
| 114 'target_base': 'ncdis_seg_sfi', | |
| 115 'win_target': 'x64', | |
| 116 }, | |
| 117 }, { | |
| 118 'target_name': 'ncdis_seg_sfi_verbose_x86_64', | |
| 119 'type': 'static_library', | |
| 120 'variables': { | |
| 121 'target_base': 'ncdis_seg_sfi_verbose', | |
| 122 'win_target': 'x64', | |
| 123 }, | |
| 124 'dependencies': [ | |
| 125 'ncval_seg_sfi_x86_64', | |
| 126 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_verbose_x86_64' | |
| 127 ], | |
| 128 'hard_dependency': 1, | |
| 129 }, { | |
| 130 'target_name': 'ncval_seg_sfi_x86_64', | |
| 131 'type': 'static_library', | |
| 132 'variables': { | |
| 133 'target_base': 'ncval_seg_sfi', | |
| 134 'win_target': 'x64', | |
| 135 }, | |
| 136 'dependencies': [ | |
| 137 'ncdis_seg_sfi_x86_64', | |
| 138 '<(DEPTH)/native_client/src/trusted/validator_x86/validator_x86.gyp:
nccopy_x86_64', | |
| 139 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_64' | |
| 140 ], | |
| 141 'hard_dependency': 1, | |
| 142 }], | |
| 143 }], | |
| 144 ['target_arch=="x64"', { | |
| 145 'targets': [ | |
| 146 { | |
| 147 'target_name': 'ncdis_seg_sfi_x86_64', | |
| 148 'type': 'static_library', | |
| 149 'variables': { | |
| 150 'target_base': 'ncdis_seg_sfi', | |
| 151 }, | |
| 152 }, { | |
| 153 'target_name': 'ncdis_seg_sfi_verbose_x86_64', | |
| 154 'type': 'static_library', | |
| 155 'variables': { | |
| 156 'target_base': 'ncdis_seg_sfi_verbose', | |
| 157 }, | |
| 158 'dependencies': [ | |
| 159 'ncval_seg_sfi_x86_64', | |
| 160 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_verbose_x86_64' ], | |
| 161 'hard_dependency': 1, | |
| 162 }, { | |
| 163 'target_name': 'ncval_seg_sfi_x86_64', | |
| 164 'type': 'static_library', | |
| 165 'variables': { | |
| 166 'target_base': 'ncval_seg_sfi', | |
| 167 }, | |
| 168 'dependencies': [ | |
| 169 'ncdis_seg_sfi_x86_64', | |
| 170 '<(DEPTH)/native_client/src/trusted/validator_x86/validator_x86.gyp:
nccopy_x86_64', | |
| 171 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_64' ], | |
| 172 'hard_dependency': 1, | |
| 173 }], | |
| 174 }], | |
| 175 ], | |
| 176 } | |
| OLD | NEW |