Chromium Code Reviews| 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 '../../native_client/build/common.gypi', | 7 '../../native_client/build/common.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 ], | 46 ], |
| 47 }, | 47 }, |
| 48 { | 48 { |
| 49 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', | 49 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', |
| 50 'files': [ | 50 'files': [ |
| 51 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', | 51 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', |
| 52 ], | 52 ], |
| 53 }, | 53 }, |
| 54 ], | 54 ], |
| 55 }, | 55 }, |
| 56 ], | |
| 57 }], | |
| 58 ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_un trusted==0', { | |
| 59 'targets': [ | |
| 56 { | 60 { |
| 57 'target_name': 'nacl_irt', | 61 'target_name': 'nacl_irt', |
| 58 'type': 'none', | 62 'type': 'none', |
| 59 'variables': { | 63 'variables': { |
| 60 'nexe_target': 'nacl_irt', | 64 'nexe_target': 'nacl_irt', |
| 61 # These out_* fields override the default filenames, which | 65 # These out_* fields override the default filenames, which |
| 62 # include a "_newlib" suffix. | 66 # include a "_newlib" suffix. |
| 63 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', | 67 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', |
| 64 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | 68 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', |
| 65 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', | 69 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib', | 176 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib', |
| 173 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', | 177 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', |
| 174 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 178 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
| 175 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | 179 '../../native_client/src/shared/platform/platform.gyp:platform_lib', |
| 176 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 180 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
| 177 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | 181 '../../native_client/src/shared/gio/gio.gyp:gio_lib', |
| 178 ], | 182 ], |
| 179 }, | 183 }, |
| 180 ], | 184 ], |
| 181 }], | 185 }], |
| 186 ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_un trusted==1', { | |
|
bradnelson
2012/06/13 20:21:17
Rather than make this a completely different targe
Mark Seaborn
2012/06/13 20:27:37
We had discussed before building a separate IRT fo
bbudge
2012/06/14 03:01:18
I'm assuming we will remove the SRPC based IRT at
bbudge
2012/06/14 03:01:18
Just to keep it simple for now.
On 2012/06/13 20:2
bbudge
2012/06/14 03:01:18
For now it's simpler to do it this way, and I'd li
dmichael (off chromium)
2012/06/14 03:12:41
Yeah, we probably should do it this way. It might
bbudge
2012/06/15 01:07:32
I made an attempt to use a target_defaults section
| |
| 187 'targets': [ | |
| 188 { | |
| 189 'target_name': 'nacl_irt', | |
| 190 'type': 'none', | |
| 191 'variables': { | |
| 192 'nexe_target': 'nacl_irt', | |
| 193 # These out_* fields override the default filenames, which | |
| 194 # include a "_newlib" suffix. | |
| 195 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', | |
| 196 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | |
| 197 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', | |
| 198 'build_glibc': 0, | |
| 199 'build_newlib': 1, | |
| 200 'include_dirs': [ | |
| 201 'lib/gl/include', | |
| 202 '..', | |
| 203 ], | |
| 204 'link_flags': [ | |
| 205 '-Wl,--start-group', | |
| 206 '-lppapi_proxy_untrusted', | |
| 207 '-lppapi_shared_untrusted', | |
| 208 '-lipc_untrusted', | |
| 209 '-lbase_untrusted', | |
| 210 '-lsrpc', | |
|
Mark Seaborn
2012/06/13 20:27:37
You shouldn't be depending on srpc. Can you remov
bbudge
2012/06/14 03:01:18
If I remove it I get link errors. Something is pul
| |
| 211 '-lirt_browser', | |
| 212 '-limc_syscalls', | |
| 213 '-lplatform', | |
| 214 '-lgio', | |
| 215 '-Wl,--end-group', | |
| 216 '-lm', | |
| 217 ], | |
| 218 # See http://code.google.com/p/nativeclient/issues/detail?id=2691. | |
| 219 # The PNaCl linker (gold) does not implement the "-Ttext-segment" | |
| 220 # option. However, with the linker for x86, the "-Ttext" option | |
| 221 # does not affect the executable's base address. | |
| 222 # TODO(olonho): simplify flags handling and avoid duplication | |
| 223 # with NaCl logic. | |
| 224 'conditions': [ | |
| 225 ['target_arch!="arm"', | |
| 226 { | |
| 227 'link_flags': [ | |
| 228 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
| 229 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | |
| 230 ] | |
| 231 }, { # target_arch == "arm" | |
| 232 'link_flags': [ | |
| 233 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
| 234 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | |
| 235 '--pnacl-allow-native', | |
| 236 '-arch', 'arm', | |
| 237 '-Wt,-mtls-use-call', | |
| 238 ], | |
| 239 }, | |
| 240 ], | |
| 241 ], | |
| 242 'sources': [ | |
| 243 ], | |
| 244 'extra_args': [ | |
| 245 '--strip-debug', | |
| 246 ], | |
| 247 # TODO(bradchen): get rid of extra_deps64 and extra_deps32 | |
| 248 # once native_client/build/untrusted.gypi no longer needs them. | |
| 249 'extra_deps64': [ | |
| 250 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a', | |
| 251 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libipc_untrusted.a', | |
| 252 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrus ted.a', | |
| 253 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrust ed.a', | |
| 254 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', | |
| 255 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', | |
| 256 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', | |
| 257 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', | |
| 258 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', | |
| 259 ], | |
| 260 'extra_deps32': [ | |
| 261 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a', | |
| 262 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libipc_untrusted.a', | |
| 263 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_shared_untrus ted.a', | |
| 264 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_proxy_untrust ed.a', | |
| 265 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', | |
| 266 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', | |
| 267 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', | |
| 268 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', | |
| 269 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', | |
| 270 ], | |
| 271 'extra_deps_newlib64': [ | |
| 272 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a', | |
| 273 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libipc_untrusted.a', | |
| 274 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrus ted.a', | |
| 275 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrust ed.a', | |
| 276 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', | |
| 277 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', | |
| 278 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', | |
| 279 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', | |
| 280 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', | |
| 281 ], | |
| 282 'extra_deps_newlib32': [ | |
| 283 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a', | |
| 284 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libipc_untrusted.a', | |
| 285 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_shared_untrus ted.a', | |
| 286 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_proxy_untrust ed.a', | |
| 287 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', | |
| 288 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', | |
| 289 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', | |
| 290 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', | |
| 291 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', | |
| 292 ], | |
| 293 'extra_deps_glibc64': [ | |
| 294 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libbase_untrusted.a', | |
| 295 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libipc_untrusted.a', | |
| 296 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_shared_untrust ed.a', | |
| 297 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_proxy_untruste d.a', | |
| 298 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libirt_browser.a', | |
| 299 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libsrpc.a', | |
| 300 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libplatform.a', | |
| 301 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libimc_syscalls.a', | |
| 302 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgio.a', | |
| 303 ], | |
|
dmichael (off chromium)
2012/06/14 03:12:41
I know you're just copy/pasting, but any clue why
| |
| 304 'extra_deps_glibc32': [ | |
| 305 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libbase_untrusted.a', | |
| 306 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libipc_untrusted.a', | |
| 307 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_shared_untrust ed.a', | |
| 308 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_proxy_untruste d.a', | |
| 309 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libirt_browser.a', | |
| 310 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libsrpc.a', | |
| 311 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libplatform.a', | |
| 312 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libimc_syscalls.a', | |
| 313 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgio.a', | |
| 314 ], | |
| 315 'extra_deps_arm': [ | |
| 316 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libbase_untrusted.a', | |
| 317 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libipc_untrusted.a', | |
| 318 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_shared_untru sted.a', | |
| 319 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_proxy_untrus ted.a', | |
| 320 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libirt_browser.a', | |
| 321 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libsrpc.a', | |
| 322 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a', | |
| 323 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a', | |
| 324 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a', | |
| 325 ], | |
| 326 }, | |
| 327 'dependencies': [ | |
| 328 '../../base/base_untrusted.gyp:base_untrusted', | |
| 329 '../../ipc/ipc_untrusted.gyp:ipc_untrusted', | |
| 330 '../ppapi_proxy_untrusted.gyp:ppapi_proxy_untrusted', | |
| 331 '../ppapi_shared_untrusted.gyp:ppapi_shared_untrusted', | |
| 332 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', | |
| 333 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | |
| 334 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | |
| 335 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | |
| 336 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | |
| 337 ], | |
|
dmichael (off chromium)
2012/06/14 03:12:41
There's a lot of copy/paste here... if there's st
| |
| 338 }, | |
| 339 ], | |
| 340 }], | |
| 182 ], | 341 ], |
| 183 } | 342 } |
| OLD | NEW |