| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium 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_untrusted.gypi', | 7 '../../build/common_untrusted.gypi', |
| 8 ], | 8 ], |
| 9 'conditions': [ | 9 'conditions': [ |
| 10 ['disable_nacl==0 and disable_nacl_untrusted==0', { | 10 ['disable_nacl==0 and disable_nacl_untrusted==0', { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 '-lgpu_ipc_untrusted', | 107 '-lgpu_ipc_untrusted', |
| 108 '-lipc_untrusted', | 108 '-lipc_untrusted', |
| 109 '-lbase_untrusted', | 109 '-lbase_untrusted', |
| 110 '-lshared_memory_support_untrusted', | 110 '-lshared_memory_support_untrusted', |
| 111 '-lsrpc', | 111 '-lsrpc', |
| 112 '-limc_syscalls', | 112 '-limc_syscalls', |
| 113 '-lplatform', | 113 '-lplatform', |
| 114 '-lgio', | 114 '-lgio', |
| 115 '-Wl,--end-group', | 115 '-Wl,--end-group', |
| 116 '-lm', | 116 '-lm', |
| 117 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', |
| 118 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', |
| 117 ], | 119 ], |
| 118 # See http://code.google.com/p/nativeclient/issues/detail?id=2691. | |
| 119 # The PNaCl linker (gold) does not implement the "-Ttext-segment" | |
| 120 # option. However, with the linker for x86, the "-Ttext" option | |
| 121 # does not affect the executable's base address. | |
| 122 # TODO(olonho): simplify flags handling and avoid duplication | |
| 123 # with NaCl logic. | |
| 124 'conditions': [ | 120 'conditions': [ |
| 125 ['target_arch!="arm"', | 121 # untrusted.gypi and build_nexe.py currently build |
| 126 { | 122 # both x86-32 and x86-64 whenever target_arch is some |
| 127 'link_flags': [ | 123 # flavor of x86. However, on non-windows platforms |
| 128 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | 124 # we only need one architecture. |
| 129 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | 125 ['OS!="win" and target_arch=="ia32"', |
| 130 ] | 126 { |
| 131 }, { # target_arch == "arm" | 127 'enable_x86_64': 0 |
| 132 # TODO(mcgrathr): This knowledge really belongs in | 128 } |
| 133 # native_client/src/untrusted/irt/irt.gyp instead of here. | 129 ], |
| 134 # But that builds libirt_browser.a as bitcode, so a native | 130 ['OS!="win" and target_arch=="x64"', |
| 135 # object does not fit happily there. | 131 { |
| 136 'sources': [ | 132 'enable_x86_32': 0 |
| 137 '../../native_client/src/untrusted/irt/aeabi_read_tp.S', | 133 } |
| 138 ], | 134 ] |
| 139 'link_flags': [ | |
| 140 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
| 141 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | |
| 142 '--pnacl-allow-native', | |
| 143 '-arch', 'arm', | |
| 144 '-Wt,-mtls-use-call', | |
| 145 '-Wl,--pnacl-irt-link', | |
| 146 ], | |
| 147 }, | |
| 148 ], | |
| 149 # untrusted.gypi and build_nexe.py currently build | |
| 150 # both x86-32 and x86-64 whenever target_arch is some | |
| 151 # flavor of x86. However, on non-windows platforms | |
| 152 # we only need one architecture. | |
| 153 ['OS!="win" and target_arch=="ia32"', | |
| 154 { | |
| 155 'enable_x86_64': 0 | |
| 156 } | |
| 157 ], | |
| 158 ['OS!="win" and target_arch=="x64"', | |
| 159 { | |
| 160 'enable_x86_32': 0 | |
| 161 } | |
| 162 ] | |
| 163 ], | |
| 164 'sources': [ | |
| 165 ], | 135 ], |
| 166 'extra_args': [ | 136 'extra_args': [ |
| 167 '--strip-debug', | 137 '--strip-debug', |
| 168 ], | 138 ], |
| 169 # TODO(bradchen): get rid of extra_deps64 and extra_deps32 | 139 # TODO(bradchen): get rid of extra_deps64 and extra_deps32 |
| 170 # once native_client/build/untrusted.gypi no longer needs them. | 140 # once native_client/build/untrusted.gypi no longer needs them. |
| 171 'extra_deps64': [ | 141 'extra_deps64': [ |
| 172 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrust
ed.a', | 142 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrust
ed.a', |
| 173 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_ipc_untrusted
.a', | 143 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_ipc_untrusted
.a', |
| 174 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrus
ted.a', | 144 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrus
ted.a', |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 297 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
| 328 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | 298 '../../native_client/src/shared/platform/platform.gyp:platform_lib', |
| 329 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 299 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
| 330 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | 300 '../../native_client/src/shared/gio/gio.gyp:gio_lib', |
| 331 ], | 301 ], |
| 332 }, | 302 }, |
| 333 ], | 303 ], |
| 334 }], | 304 }], |
| 335 ], | 305 ], |
| 336 } | 306 } |
| OLD | NEW |