| OLD | NEW |
| 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'includes': [ | 6 'includes': [ |
| 7 '../../../../build/common.gypi', | 7 '../../../../build/common.gypi', |
| 8 ], | 8 ], |
| 9 'conditions': [ | 9 'conditions': [ |
| 10 ['target_arch=="x64"', { | 10 ['target_arch=="x64"', { |
| 11 'variables': { | 11 'variables': { |
| 12 # No extra reservation. | 12 # No extra reservation. |
| 13 'nacl_reserve_top': '0x0', | 13 'nacl_reserve_top': '0x0', |
| 14 } | 14 } |
| 15 }], | 15 }], |
| 16 ['target_arch=="ia32"', { | 16 ['target_arch=="ia32"', { |
| 17 'variables': { | 17 'variables': { |
| 18 # 1G address space. | 18 # 1G address space. |
| 19 'nacl_reserve_top': '0x40000000', | 19 'nacl_reserve_top': '0x40000000', |
| 20 } | 20 } |
| 21 }], | 21 }], |
| 22 ['target_arch=="arm"', { | 22 ['target_arch=="arm"', { |
| 23 'variables': { | 23 'variables': { |
| 24 # 1G address space, plus 8K guard area above. | 24 # 1G address space, plus 8K guard area above. |
| 25 'nacl_reserve_top': '0x40002000', | 25 'nacl_reserve_top': '0x40002000', |
| 26 } | 26 } |
| 27 }], | 27 }], |
| 28 ['target_arch=="mipsel"', { |
| 29 'variables': { |
| 30 # 1G address space, plus 32K guard area above. |
| 31 'nacl_reserve_top': '0x40008000', |
| 32 } |
| 33 }], |
| 28 ], | 34 ], |
| 29 'targets': [ | 35 'targets': [ |
| 30 { | 36 { |
| 31 'target_name': 'nacl_bootstrap_munge_phdr', | 37 'target_name': 'nacl_bootstrap_munge_phdr', |
| 32 'type': 'executable', | 38 'type': 'executable', |
| 33 'toolsets': ['host'], | 39 'toolsets': ['host'], |
| 34 'sources': [ | 40 'sources': [ |
| 35 'nacl_bootstrap_munge_phdr.c', | 41 'nacl_bootstrap_munge_phdr.c', |
| 36 ], | 42 ], |
| 37 'libraries': [ | 43 'libraries': [ |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 ['target_arch=="ia32"', { | 154 ['target_arch=="ia32"', { |
| 149 'variables': { | 155 'variables': { |
| 150 'linker_emulation': 'elf_i386', | 156 'linker_emulation': 'elf_i386', |
| 151 } | 157 } |
| 152 }], | 158 }], |
| 153 ['target_arch=="arm"', { | 159 ['target_arch=="arm"', { |
| 154 'variables': { | 160 'variables': { |
| 155 'linker_emulation': 'armelf_linux_eabi', | 161 'linker_emulation': 'armelf_linux_eabi', |
| 156 } | 162 } |
| 157 }], | 163 }], |
| 164 ['target_arch=="mipsel"', { |
| 165 'variables': { |
| 166 'linker_emulation': 'elf32ltsmip', |
| 167 }, |
| 168 }], |
| 158 ], | 169 ], |
| 159 'action': ['python', 'ld_bfd.py', | 170 'action': ['python', 'ld_bfd.py', |
| 160 # ld_bfd.py needs to know the target compiler used for the | 171 # ld_bfd.py needs to know the target compiler used for the |
| 161 # build but the $CXX environment variable might only be | 172 # build but the $CXX environment variable might only be |
| 162 # set at gyp time. This is a hacky way to bake the correct | 173 # set at gyp time. This is a hacky way to bake the correct |
| 163 # CXX into the build at gyp time. | 174 # CXX into the build at gyp time. |
| 164 # TODO(sbc): Do this better by providing some gyp syntax | 175 # TODO(sbc): Do this better by providing some gyp syntax |
| 165 # for accessing the name of the configured compiler, or | 176 # for accessing the name of the configured compiler, or |
| 166 # even a better way to access gyp time environment | 177 # even a better way to access gyp time environment |
| 167 # variables from within a gyp file. | 178 # variables from within a gyp file. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 'inputs': ['nacl_bootstrap_munge_phdr.py', | 219 'inputs': ['nacl_bootstrap_munge_phdr.py', |
| 209 '<(PRODUCT_DIR)/nacl_bootstrap_munge_phdr', | 220 '<(PRODUCT_DIR)/nacl_bootstrap_munge_phdr', |
| 210 '<(PRODUCT_DIR)/nacl_bootstrap_raw'], | 221 '<(PRODUCT_DIR)/nacl_bootstrap_raw'], |
| 211 'outputs': ['<(PRODUCT_DIR)/nacl_helper_bootstrap'], | 222 'outputs': ['<(PRODUCT_DIR)/nacl_helper_bootstrap'], |
| 212 'message': 'Munging ELF program header', | 223 'message': 'Munging ELF program header', |
| 213 'action': ['python', '<@(_inputs)', '<@(_outputs)'] | 224 'action': ['python', '<@(_inputs)', '<@(_outputs)'] |
| 214 }], | 225 }], |
| 215 }, | 226 }, |
| 216 ], | 227 ], |
| 217 } | 228 } |
| OLD | NEW |