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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 'destination': '>(tc_lib_dir_newlib_arm)', | 81 'destination': '>(tc_lib_dir_newlib_arm)', |
82 'files': [ | 82 'files': [ |
83 'src/untrusted/irt_stub/libppapi.a', | 83 'src/untrusted/irt_stub/libppapi.a', |
84 ], | 84 ], |
85 }, | 85 }, |
86 ] | 86 ] |
87 }] | 87 }] |
88 ], | 88 ], |
89 }, | 89 }, |
90 { | 90 { |
91 'target_name': 'nacl_irt', | 91 'target_name': 'nacl_irt_raw', |
92 'type': 'none', | 92 'type': 'none', |
93 'variables': { | 93 'variables': { |
94 'nexe_target': 'nacl_irt', | 94 'nexe_target': 'nacl_irt_raw', |
95 # These out_* fields override the default filenames, which | 95 # These out_* fields override the default filenames, which |
96 # include a "_newlib" suffix and places them in the target | 96 # include a "_newlib" suffix and places them in the target |
97 # directory. | 97 # directory. |
98 'out_newlib64': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64.nexe', | 98 'out_newlib64': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64_raw.nexe
', |
99 'out_newlib32': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_32.nexe', | 99 'out_newlib32': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_32_raw.nexe
', |
100 'out_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm.nexe', | 100 'out_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm_raw.nexe'
, |
101 'build_glibc': 0, | 101 'build_glibc': 0, |
102 'build_newlib': 0, | 102 'build_newlib': 0, |
103 'build_irt': 1, | 103 'build_irt': 1, |
104 'include_dirs': [ | 104 'include_dirs': [ |
105 'lib/gl/include', | 105 'lib/gl/include', |
106 '..', | 106 '..', |
107 ], | 107 ], |
108 'link_flags': [ | 108 'link_flags': [ |
109 '-Wl,--start-group', | 109 '-Wl,--start-group', |
110 '-lirt_browser', | 110 '-lirt_browser', |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 '../../base/base_untrusted.gyp:base_untrusted', | 227 '../../base/base_untrusted.gyp:base_untrusted', |
228 '../../media/media_untrusted.gyp:shared_memory_support_untrusted', | 228 '../../media/media_untrusted.gyp:shared_memory_support_untrusted', |
229 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', | 229 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', |
230 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 230 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
231 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | 231 '../../native_client/src/shared/platform/platform.gyp:platform_lib', |
232 '../../native_client/src/tools/tls_edit/tls_edit.gyp:tls_edit#host', | 232 '../../native_client/src/tools/tls_edit/tls_edit.gyp:tls_edit#host', |
233 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 233 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
234 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | 234 '../../native_client/src/shared/gio/gio.gyp:gio_lib', |
235 ], | 235 ], |
236 }, | 236 }, |
| 237 { |
| 238 'target_name': 'nacl_irt', |
| 239 'type': 'none', |
| 240 'dependencies': [ |
| 241 '../../native_client/src/tools/tls_edit/tls_edit.gyp:tls_edit#host', |
| 242 'nacl_irt_raw' |
| 243 ], |
| 244 'conditions': [ |
| 245 ['target_arch=="arm"', { |
| 246 'actions': [ |
| 247 { |
| 248 'action_name': 'tls_edit_nacl_irt_arm', |
| 249 'message': 'Patching TLS for nacl_irt (arm)', |
| 250 'inputs': [ |
| 251 '<(PRODUCT_DIR)/tls_edit', |
| 252 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm_raw.nexe', |
| 253 ], |
| 254 'outputs': [ |
| 255 '<(PRODUCT_DIR)/nacl_irt_arm.nexe', |
| 256 ], |
| 257 'action': ['<@(_inputs)', '<@(_outputs)'], |
| 258 }, |
| 259 |
| 260 # The non-stripped nacl_irt debug file must also go through |
| 261 # tls_edit, however gyp does not know anything about the |
| 262 # debug file since it is built as a side effect. We |
| 263 # must depend on the nacl_irt_raw.nexe and use the |
| 264 # nacl_irt_raw.nexe.debug file as the input to tls_edit. |
| 265 { |
| 266 'action_name': 'tls_edit_nacl_irt_debug_arm', |
| 267 'message': 'Patching TLS for nacl_irt.debug (arm)', |
| 268 'inputs': [ |
| 269 '<(PRODUCT_DIR)/tls_edit', |
| 270 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm_raw.nexe', |
| 271 ], |
| 272 'outputs': [ |
| 273 '<(PRODUCT_DIR)/nacl_irt_arm.nexe.debug', |
| 274 ], |
| 275 'action': [ |
| 276 '<(PRODUCT_DIR)/tls_edit', |
| 277 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm_raw.nexe.debug', |
| 278 '<@(_outputs)', |
| 279 ], |
| 280 }, |
| 281 ], |
| 282 }], |
| 283 ['target_arch=="x64" or OS=="win"', { |
| 284 'actions': [ |
| 285 { |
| 286 'action_name': 'tls_edit_nacl_irt_x86_64', |
| 287 'message': 'Patching TLS for nacl_irt (x86-64)', |
| 288 'inputs': [ |
| 289 '<(PRODUCT_DIR)/tls_edit', |
| 290 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64_raw.nexe', |
| 291 ], |
| 292 'outputs': [ |
| 293 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', |
| 294 ], |
| 295 'action': ['<@(_inputs)', '<@(_outputs)'], |
| 296 }, |
| 297 |
| 298 # The non-stripped nacl_irt debug file must also go through |
| 299 # tls_edit, however gyp does not know anything about the |
| 300 # debug file since it is built as a side effect. We |
| 301 # must depend on the nacl_irt_raw.nexe and use the |
| 302 # nacl_irt_raw.nexe.debug file as the input to tls_edit. |
| 303 { |
| 304 'action_name': 'tls_edit_nacl_irt_debug_x86_64', |
| 305 'message': 'Patching TLS for nacl_irt.debug (x86-64)', |
| 306 'inputs': [ |
| 307 '<(PRODUCT_DIR)/tls_edit', |
| 308 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64_raw.nexe', |
| 309 ], |
| 310 'outputs': [ |
| 311 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe.debug', |
| 312 ], |
| 313 'action': [ |
| 314 '<(PRODUCT_DIR)/tls_edit', |
| 315 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64_raw.nexe.debug', |
| 316 '<@(_outputs)', |
| 317 ], |
| 318 }, |
| 319 ], |
| 320 }], |
| 321 ['target_arch=="ia32"', { |
| 322 'actions': [ |
| 323 { |
| 324 'action_name': 'tls_edit_nacl_irt_x86_32', |
| 325 'message': 'Patching TLS for nacl_irt (x86-32)', |
| 326 'inputs': [ |
| 327 '<(PRODUCT_DIR)/tls_edit', |
| 328 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_32_raw.nexe', |
| 329 ], |
| 330 'outputs': [ |
| 331 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', |
| 332 ], |
| 333 'action': ['<@(_inputs)', '<@(_outputs)'], |
| 334 }, |
| 335 |
| 336 # The non-stripped nacl_irt debug file must also go through |
| 337 # tls_edit, however gyp does not know anything about the |
| 338 # debug file since it is built as a side effect. We |
| 339 # must depend on the nacl_irt_raw.nexe and use the |
| 340 # nacl_irt_raw.nexe.debug file as the input to tls_edit. |
| 341 { |
| 342 'action_name': 'tls_edit_nacl_irt_debug_x86_32', |
| 343 'message': 'Patching TLS for nacl_irt.debug (x86-32)', |
| 344 'inputs': [ |
| 345 '<(PRODUCT_DIR)/tls_edit', |
| 346 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_32_raw.nexe', |
| 347 ], |
| 348 'outputs': [ |
| 349 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe.debug', |
| 350 ], |
| 351 'action': [ |
| 352 '<(PRODUCT_DIR)/tls_edit', |
| 353 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_32_raw.nexe.debug', |
| 354 '<@(_outputs)', |
| 355 ], |
| 356 }, |
| 357 ], |
| 358 }], |
| 359 ], |
| 360 }, |
237 ], | 361 ], |
238 }], | 362 }], |
239 ], | 363 ], |
240 } | 364 } |
OLD | NEW |