OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 # on the target. | 48 # on the target. |
49 'v8_can_use_vfp32dregs%': 'false', | 49 'v8_can_use_vfp32dregs%': 'false', |
50 'arm_test_noprobe%': 'off', | 50 'arm_test_noprobe%': 'off', |
51 | 51 |
52 # Similar to vfp but on MIPS. | 52 # Similar to vfp but on MIPS. |
53 'v8_can_use_fpu_instructions%': 'true', | 53 'v8_can_use_fpu_instructions%': 'true', |
54 | 54 |
55 # Similar to the ARM hard float ABI but on MIPS. | 55 # Similar to the ARM hard float ABI but on MIPS. |
56 'v8_use_mips_abi_hardfloat%': 'true', | 56 'v8_use_mips_abi_hardfloat%': 'true', |
57 | 57 |
58 # Default arch variant for MIPS. | |
59 'mips_arch_variant%': 'r2', | |
60 | |
61 # Possible values fp32, fp64, fpxx. | |
62 # fp32 - 32 32-bit FPU registers are available, doubles are placed in | |
63 # register pairs. | |
64 # fp64 - 32 64-bit FPU registers are available. | |
65 # fpxx - compatibility mode, it chooses fp32 or fp64 depending on runtime | |
66 # detection | |
67 'mips_fpu_mode%': 'fp32', | |
68 | |
69 'v8_enable_backtrace%': 0, | 58 'v8_enable_backtrace%': 0, |
70 | 59 |
71 # Enable profiling support. Only required on Windows. | 60 # Enable profiling support. Only required on Windows. |
72 'v8_enable_prof%': 0, | 61 'v8_enable_prof%': 0, |
73 | 62 |
74 # Some versions of GCC 4.5 seem to need -fno-strict-aliasing. | 63 # Some versions of GCC 4.5 seem to need -fno-strict-aliasing. |
75 'v8_no_strict_aliasing%': 0, | 64 'v8_no_strict_aliasing%': 0, |
76 | 65 |
77 # Chrome needs this definition unconditionally. For standalone V8 builds, | 66 # Chrome needs this definition unconditionally. For standalone V8 builds, |
78 # it's handled in build/standalone.gypi. | 67 # it's handled in build/standalone.gypi. |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 'defines': [ | 260 'defines': [ |
272 'V8_TARGET_ARCH_X87', | 261 'V8_TARGET_ARCH_X87', |
273 ], | 262 ], |
274 'cflags': ['-march=i586'], | 263 'cflags': ['-march=i586'], |
275 }], # v8_target_arch=="x87" | 264 }], # v8_target_arch=="x87" |
276 ['v8_target_arch=="mips"', { | 265 ['v8_target_arch=="mips"', { |
277 'defines': [ | 266 'defines': [ |
278 'V8_TARGET_ARCH_MIPS', | 267 'V8_TARGET_ARCH_MIPS', |
279 ], | 268 ], |
280 'conditions': [ | 269 'conditions': [ |
281 ['v8_target_arch==target_arch and android_webview_build==0', { | 270 [ 'v8_can_use_fpu_instructions=="true"', { |
282 # Target built with a Mips CXX compiler. | 271 'defines': [ |
283 'target_conditions': [ | 272 'CAN_USE_FPU_INSTRUCTIONS', |
284 ['_toolset=="target"', { | 273 ], |
| 274 }], |
| 275 [ 'v8_use_mips_abi_hardfloat=="true"', { |
| 276 'defines': [ |
| 277 '__mips_hard_float=1', |
| 278 'CAN_USE_FPU_INSTRUCTIONS', |
| 279 ], |
| 280 }, { |
| 281 'defines': [ |
| 282 '__mips_soft_float=1' |
| 283 ] |
| 284 }], |
| 285 ], |
| 286 'target_conditions': [ |
| 287 ['_toolset=="target"', { |
| 288 'conditions': [ |
| 289 ['v8_target_arch==target_arch and android_webview_build==0', { |
| 290 # Target built with a Mips CXX compiler. |
285 'cflags': ['-EB'], | 291 'cflags': ['-EB'], |
286 'ldflags': ['-EB'], | 292 'ldflags': ['-EB'], |
287 'conditions': [ | 293 'conditions': [ |
288 [ 'v8_use_mips_abi_hardfloat=="true"', { | 294 [ 'v8_use_mips_abi_hardfloat=="true"', { |
289 'cflags': ['-mhard-float'], | 295 'cflags': ['-mhard-float'], |
290 'ldflags': ['-mhard-float'], | 296 'ldflags': ['-mhard-float'], |
291 }, { | 297 }, { |
292 'cflags': ['-msoft-float'], | 298 'cflags': ['-msoft-float'], |
293 'ldflags': ['-msoft-float'], | 299 'ldflags': ['-msoft-float'], |
294 }], | 300 }], |
295 ['mips_fpu_mode=="fp64"', { | |
296 'cflags': ['-mfp64'], | |
297 }], | |
298 ['mips_fpu_mode=="fpxx"', { | |
299 'cflags': ['-mfpxx'], | |
300 }], | |
301 ['mips_fpu_mode=="fp32"', { | |
302 'cflags': ['-mfp32'], | |
303 }], | |
304 ['mips_arch_variant=="r6"', { | 301 ['mips_arch_variant=="r6"', { |
305 'cflags!': ['-mfp32'], | 302 'defines': [ |
| 303 '_MIPS_ARCH_MIPS32R6', |
| 304 'FPU_MODE_FP64', |
| 305 ], |
| 306 'cflags!': ['-mfp32', '-mfpxx'], |
306 'cflags': ['-mips32r6', '-Wa,-mips32r6'], | 307 'cflags': ['-mips32r6', '-Wa,-mips32r6'], |
307 'ldflags': [ | 308 'ldflags': [ |
308 '-mips32r6', | 309 '-mips32r6', |
309 '-Wl,--dynamic-linker=$(LDSO_PATH)', | 310 '-Wl,--dynamic-linker=$(LDSO_PATH)', |
310 '-Wl,--rpath=$(LD_R_PATH)', | 311 '-Wl,--rpath=$(LD_R_PATH)', |
311 ], | 312 ], |
312 }], | 313 }], |
313 ['mips_arch_variant=="r2"', { | 314 ['mips_arch_variant=="r2"', { |
| 315 'conditions': [ |
| 316 [ 'mips_fpu_mode=="fp64"', { |
| 317 'defines': [ |
| 318 '_MIPS_ARCH_MIPS32R2', |
| 319 'FPU_MODE_FP64', |
| 320 ], |
| 321 'cflags': ['-mfp64'], |
| 322 }], |
| 323 ['mips_fpu_mode=="fpxx"', { |
| 324 'defines': [ |
| 325 '_MIPS_ARCH_MIPS32R2', |
| 326 'FPU_MODE_FPXX', |
| 327 ], |
| 328 'cflags': ['-mfpxx'], |
| 329 }], |
| 330 ['mips_fpu_mode=="fp32"', { |
| 331 'defines': [ |
| 332 '_MIPS_ARCH_MIPS32R2', |
| 333 'FPU_MODE_FP32', |
| 334 ], |
| 335 'cflags': ['-mfp32'], |
| 336 }], |
| 337 ], |
314 'cflags': ['-mips32r2', '-Wa,-mips32r2'], | 338 'cflags': ['-mips32r2', '-Wa,-mips32r2'], |
| 339 'ldflags': ['-mips32r2'], |
315 }], | 340 }], |
316 ['mips_arch_variant=="r1"', { | 341 ['mips_arch_variant=="r1"', { |
317 'cflags!': ['-mfp64'], | 342 'defines': [ |
| 343 'FPU_MODE_FP32', |
| 344 ], |
| 345 'cflags!': ['-mfp64', '-mfpxx'], |
318 'cflags': ['-mips32', '-Wa,-mips32'], | 346 'cflags': ['-mips32', '-Wa,-mips32'], |
| 347 'ldflags': ['-mips32'], |
319 }], | 348 }], |
320 ['mips_arch_variant=="rx"', { | 349 ['mips_arch_variant=="rx"', { |
321 'cflags!': ['-mfp64'], | 350 'defines': [ |
322 'cflags': ['-mips32', '-Wa,-mips32'], | 351 '_MIPS_ARCH_MIPS32RX', |
| 352 'FPU_MODE_FPXX', |
| 353 ], |
| 354 'cflags!': ['-mfp64', '-mfp32'], |
| 355 'cflags': ['-mips32', '-Wa,-mips32', '-mfpxx'], |
| 356 'ldflags': ['-mips32'], |
| 357 }], |
| 358 ], |
| 359 }, { |
| 360 # 'v8_target_arch!=target_arch' |
| 361 # Target not built with an MIPS CXX compiler (simulator build). |
| 362 'conditions': [ |
| 363 ['mips_arch_variant=="r6"', { |
| 364 'defines': [ |
| 365 '_MIPS_ARCH_MIPS32R6', |
| 366 'FPU_MODE_FP64', |
| 367 ], |
| 368 }], |
| 369 ['mips_arch_variant=="r2"', { |
| 370 'conditions': [ |
| 371 [ 'mips_fpu_mode=="fp64"', { |
| 372 'defines': [ |
| 373 '_MIPS_ARCH_MIPS32R2', |
| 374 'FPU_MODE_FP64', |
| 375 ], |
| 376 }], |
| 377 ['mips_fpu_mode=="fpxx"', { |
| 378 'defines': [ |
| 379 '_MIPS_ARCH_MIPS32R2', |
| 380 'FPU_MODE_FPXX', |
| 381 ], |
| 382 }], |
| 383 ['mips_fpu_mode=="fp32"', { |
| 384 'defines': [ |
| 385 '_MIPS_ARCH_MIPS32R2', |
| 386 'FPU_MODE_FP32', |
| 387 ], |
| 388 }], |
| 389 ], |
| 390 }], |
| 391 ['mips_arch_variant=="r1"', { |
| 392 'defines': [ |
| 393 'FPU_MODE_FP32', |
| 394 ], |
| 395 }], |
| 396 ['mips_arch_variant=="rx"', { |
| 397 'defines': [ |
| 398 '_MIPS_ARCH_MIPS32RX', |
| 399 'FPU_MODE_FPXX', |
| 400 ], |
323 }], | 401 }], |
324 ], | 402 ], |
325 }], | 403 }], |
326 ], | 404 ], |
327 }], | 405 }], #_toolset=="target" |
| 406 ['_toolset=="host"', { |
| 407 'conditions': [ |
| 408 ['mips_arch_variant=="rx"', { |
| 409 'defines': [ |
| 410 '_MIPS_ARCH_MIPS32RX', |
| 411 'FPU_MODE_FPXX', |
| 412 ], |
| 413 }], |
| 414 ['mips_arch_variant=="r6"', { |
| 415 'defines': [ |
| 416 '_MIPS_ARCH_MIPS32R6', |
| 417 'FPU_MODE_FP64', |
| 418 ], |
| 419 }], |
| 420 ['mips_arch_variant=="r2"', { |
| 421 'conditions': [ |
| 422 ['mips_fpu_mode=="fp64"', { |
| 423 'defines': [ |
| 424 '_MIPS_ARCH_MIPS32R2', |
| 425 'FPU_MODE_FP64', |
| 426 ], |
| 427 }], |
| 428 ['mips_fpu_mode=="fpxx"', { |
| 429 'defines': [ |
| 430 '_MIPS_ARCH_MIPS32R2', |
| 431 'FPU_MODE_FPXX', |
| 432 ], |
| 433 }], |
| 434 ['mips_fpu_mode=="fp32"', { |
| 435 'defines': [ |
| 436 '_MIPS_ARCH_MIPS32R2', |
| 437 'FPU_MODE_FP32' |
| 438 ], |
| 439 }], |
| 440 ], |
| 441 }], |
| 442 ['mips_arch_variant=="r1"', { |
| 443 'defines': ['FPU_MODE_FP32',], |
| 444 }], |
| 445 ] |
| 446 }], #_toolset=="host" |
| 447 ], |
| 448 }], # v8_target_arch=="mips" |
| 449 ['v8_target_arch=="mipsel"', { |
| 450 'defines': [ |
| 451 'V8_TARGET_ARCH_MIPS', |
| 452 ], |
| 453 'conditions': [ |
328 [ 'v8_can_use_fpu_instructions=="true"', { | 454 [ 'v8_can_use_fpu_instructions=="true"', { |
329 'defines': [ | 455 'defines': [ |
330 'CAN_USE_FPU_INSTRUCTIONS', | 456 'CAN_USE_FPU_INSTRUCTIONS', |
331 ], | 457 ], |
332 }], | 458 }], |
333 [ 'v8_use_mips_abi_hardfloat=="true"', { | 459 [ 'v8_use_mips_abi_hardfloat=="true"', { |
334 'defines': [ | 460 'defines': [ |
335 '__mips_hard_float=1', | 461 '__mips_hard_float=1', |
336 'CAN_USE_FPU_INSTRUCTIONS', | 462 'CAN_USE_FPU_INSTRUCTIONS', |
337 ], | 463 ], |
338 }, { | 464 }, { |
339 'defines': [ | 465 'defines': [ |
340 '__mips_soft_float=1' | 466 '__mips_soft_float=1' |
341 ], | 467 ], |
342 }], | 468 }], |
343 ['mips_arch_variant=="rx"', { | 469 ], |
344 'defines': [ | 470 'target_conditions': [ |
345 '_MIPS_ARCH_MIPS32RX', | 471 ['_toolset=="target"', { |
346 'FPU_MODE_FPXX', | |
347 ], | |
348 }], | |
349 ['mips_arch_variant=="r6"', { | |
350 'defines': [ | |
351 '_MIPS_ARCH_MIPS32R6', | |
352 'FPU_MODE_FP64', | |
353 ], | |
354 }], | |
355 ['mips_arch_variant=="r2"', { | |
356 'defines': ['_MIPS_ARCH_MIPS32R2',], | |
357 'conditions': [ | 472 'conditions': [ |
358 ['mips_fpu_mode=="fp64"', { | 473 ['v8_target_arch==target_arch and android_webview_build==0', { |
359 'defines': ['FPU_MODE_FP64',], | 474 # Target built with a Mips CXX compiler. |
360 }], | |
361 ['mips_fpu_mode=="fpxx"', { | |
362 'defines': ['FPU_MODE_FPXX',], | |
363 }], | |
364 ['mips_fpu_mode=="fp32"', { | |
365 'defines': ['FPU_MODE_FP32',], | |
366 }], | |
367 ], | |
368 }], | |
369 ['mips_arch_variant=="r1"', { | |
370 'defines': ['FPU_MODE_FP32',], | |
371 }], | |
372 ], | |
373 }], # v8_target_arch=="mips" | |
374 ['v8_target_arch=="mipsel"', { | |
375 'defines': [ | |
376 'V8_TARGET_ARCH_MIPS', | |
377 ], | |
378 'conditions': [ | |
379 ['v8_target_arch==target_arch and android_webview_build==0', { | |
380 # Target built with a Mips CXX compiler. | |
381 'target_conditions': [ | |
382 ['_toolset=="target"', { | |
383 'cflags': ['-EL'], | 475 'cflags': ['-EL'], |
384 'ldflags': ['-EL'], | 476 'ldflags': ['-EL'], |
385 'conditions': [ | 477 'conditions': [ |
386 [ 'v8_use_mips_abi_hardfloat=="true"', { | 478 [ 'v8_use_mips_abi_hardfloat=="true"', { |
387 'cflags': ['-mhard-float'], | 479 'cflags': ['-mhard-float'], |
388 'ldflags': ['-mhard-float'], | 480 'ldflags': ['-mhard-float'], |
389 }, { | 481 }, { |
390 'cflags': ['-msoft-float'], | 482 'cflags': ['-msoft-float'], |
391 'ldflags': ['-msoft-float'], | 483 'ldflags': ['-msoft-float'], |
392 }], | 484 }], |
393 ['mips_fpu_mode=="fp64"', { | |
394 'cflags': ['-mfp64'], | |
395 }], | |
396 ['mips_fpu_mode=="fpxx"', { | |
397 'cflags': ['-mfpxx'], | |
398 }], | |
399 ['mips_fpu_mode=="fp32"', { | |
400 'cflags': ['-mfp32'], | |
401 }], | |
402 ['mips_arch_variant=="r6"', { | 485 ['mips_arch_variant=="r6"', { |
403 'cflags!': ['-mfp32'], | 486 'defines': [ |
| 487 '_MIPS_ARCH_MIPS32R6', |
| 488 'FPU_MODE_FP64', |
| 489 ], |
| 490 'cflags!': ['-mfp32', '-mfpxx'], |
404 'cflags': ['-mips32r6', '-Wa,-mips32r6'], | 491 'cflags': ['-mips32r6', '-Wa,-mips32r6'], |
405 'ldflags': [ | 492 'ldflags': [ |
406 '-mips32r6', | 493 '-mips32r6', |
407 '-Wl,--dynamic-linker=$(LDSO_PATH)', | 494 '-Wl,--dynamic-linker=$(LDSO_PATH)', |
408 '-Wl,--rpath=$(LD_R_PATH)', | 495 '-Wl,--rpath=$(LD_R_PATH)', |
409 ], | 496 ], |
410 }], | 497 }], |
411 ['mips_arch_variant=="r2"', { | 498 ['mips_arch_variant=="r2"', { |
| 499 'conditions': [ |
| 500 [ 'mips_fpu_mode=="fp64"', { |
| 501 'defines': [ |
| 502 '_MIPS_ARCH_MIPS32R2', |
| 503 'FPU_MODE_FP64', |
| 504 ], |
| 505 'cflags': ['-mfp64'], |
| 506 }], |
| 507 ['mips_fpu_mode=="fpxx"', { |
| 508 'defines': [ |
| 509 '_MIPS_ARCH_MIPS32R2', |
| 510 'FPU_MODE_FPXX', |
| 511 ], |
| 512 'cflags': ['-mfpxx'], |
| 513 }], |
| 514 ['mips_fpu_mode=="fp32"', { |
| 515 'defines': [ |
| 516 '_MIPS_ARCH_MIPS32R2', |
| 517 'FPU_MODE_FP32', |
| 518 ], |
| 519 'cflags': ['-mfp32'], |
| 520 }], |
| 521 ], |
412 'cflags': ['-mips32r2', '-Wa,-mips32r2'], | 522 'cflags': ['-mips32r2', '-Wa,-mips32r2'], |
| 523 'ldflags': ['-mips32r2'], |
413 }], | 524 }], |
414 ['mips_arch_variant=="r1"', { | 525 ['mips_arch_variant=="r1"', { |
415 'cflags!': ['-mfp64'], | 526 'cflags!': ['-mfp64', '-mfpxx'], |
416 'cflags': ['-mips32', '-Wa,-mips32'], | 527 'cflags': ['-mips32', '-Wa,-mips32'], |
| 528 'ldflags': ['-mips32'], |
417 }], | 529 }], |
418 ['mips_arch_variant=="rx"', { | 530 ['mips_arch_variant=="rx"', { |
419 'cflags!': ['-mfp64'], | 531 'defines': [ |
420 'cflags': ['-mips32', '-Wa,-mips32'], | 532 '_MIPS_ARCH_MIPS32RX', |
| 533 'FPU_MODE_FPXX', |
| 534 ], |
| 535 'cflags!': ['-mfp64', '-mfp32'], |
| 536 'cflags': ['-mips32', '-Wa,-mips32', '-mfpxx'], |
| 537 'ldflags': ['-mips32'], |
421 }], | 538 }], |
422 ['mips_arch_variant=="loongson"', { | 539 ['mips_arch_variant=="loongson"', { |
423 'cflags!': ['-mfp64'], | 540 'defines': [ |
| 541 '_MIPS_ARCH_LOONGSON', |
| 542 'FPU_MODE_FP32', |
| 543 ], |
| 544 'cflags!': ['-mfp64', '-mfp32', '-mfpxx'], |
424 'cflags': ['-mips3', '-Wa,-mips3'], | 545 'cflags': ['-mips3', '-Wa,-mips3'], |
425 }], | 546 }], |
426 ], | 547 ], |
| 548 }, { |
| 549 # 'v8_target_arch!=target_arch' |
| 550 # Target not built with an MIPS CXX compiler (simulator build). |
| 551 'conditions': [ |
| 552 ['mips_arch_variant=="r6"', { |
| 553 'defines': [ |
| 554 '_MIPS_ARCH_MIPS32R6', |
| 555 'FPU_MODE_FP64', |
| 556 ], |
| 557 }], |
| 558 ['mips_arch_variant=="r2"', { |
| 559 'conditions': [ |
| 560 [ 'mips_fpu_mode=="fp64"', { |
| 561 'defines': [ |
| 562 '_MIPS_ARCH_MIPS32R2', |
| 563 'FPU_MODE_FP64', |
| 564 ], |
| 565 }], |
| 566 ['mips_fpu_mode=="fpxx"', { |
| 567 'defines': [ |
| 568 '_MIPS_ARCH_MIPS32R2', |
| 569 'FPU_MODE_FPXX', |
| 570 ], |
| 571 }], |
| 572 ['mips_fpu_mode=="fp32"', { |
| 573 'defines': [ |
| 574 '_MIPS_ARCH_MIPS32R2', |
| 575 'FPU_MODE_FP32', |
| 576 ], |
| 577 }], |
| 578 ], |
| 579 }], |
| 580 ['mips_arch_variant=="r1"', { |
| 581 'defines': [ |
| 582 'FPU_MODE_FP32', |
| 583 ], |
| 584 }], |
| 585 ['mips_arch_variant=="rx"', { |
| 586 'defines': [ |
| 587 '_MIPS_ARCH_MIPS32RX', |
| 588 'FPU_MODE_FPXX', |
| 589 ], |
| 590 }], |
| 591 ['mips_arch_variant=="loongson"', { |
| 592 'defines': [ |
| 593 '_MIPS_ARCH_LOONGSON', |
| 594 'FPU_MODE_FP32', |
| 595 ], |
| 596 }], |
| 597 ], |
427 }], | 598 }], |
428 ], | 599 ], |
| 600 }], #_toolset=="target |
| 601 ['_toolset=="host"', { |
| 602 'conditions': [ |
| 603 ['mips_arch_variant=="rx"', { |
| 604 'defines': [ |
| 605 '_MIPS_ARCH_MIPS32RX', |
| 606 'FPU_MODE_FPXX', |
| 607 ], |
| 608 }], |
| 609 ['mips_arch_variant=="r6"', { |
| 610 'defines': [ |
| 611 '_MIPS_ARCH_MIPS32R6', |
| 612 'FPU_MODE_FP64', |
| 613 ], |
| 614 }], |
| 615 ['mips_arch_variant=="r2"', { |
| 616 'conditions': [ |
| 617 ['mips_fpu_mode=="fp64"', { |
| 618 'defines': [ |
| 619 '_MIPS_ARCH_MIPS32R2', |
| 620 'FPU_MODE_FP64', |
| 621 ], |
| 622 }], |
| 623 ['mips_fpu_mode=="fpxx"', { |
| 624 'defines': [ |
| 625 '_MIPS_ARCH_MIPS32R2', |
| 626 'FPU_MODE_FPXX', |
| 627 ], |
| 628 }], |
| 629 ['mips_fpu_mode=="fp32"', { |
| 630 'defines': [ |
| 631 '_MIPS_ARCH_MIPS32R2', |
| 632 'FPU_MODE_FP32' |
| 633 ], |
| 634 }], |
| 635 ], |
| 636 }], |
| 637 ['mips_arch_variant=="r1"', { |
| 638 'defines': ['FPU_MODE_FP32',], |
| 639 }], |
| 640 ['mips_arch_variant=="loongson"', { |
| 641 'defines': [ |
| 642 '_MIPS_ARCH_LOONGSON', |
| 643 'FPU_MODE_FP32', |
| 644 ], |
| 645 }], |
| 646 ] |
429 }], | 647 }], |
| 648 ], |
| 649 }], # v8_target_arch=="mipsel" |
| 650 ['v8_target_arch=="mips64el"', { |
| 651 'defines': [ |
| 652 'V8_TARGET_ARCH_MIPS64', |
| 653 ], |
| 654 'conditions': [ |
430 [ 'v8_can_use_fpu_instructions=="true"', { | 655 [ 'v8_can_use_fpu_instructions=="true"', { |
431 'defines': [ | 656 'defines': [ |
432 'CAN_USE_FPU_INSTRUCTIONS', | 657 'CAN_USE_FPU_INSTRUCTIONS', |
433 ], | 658 ], |
434 }], | 659 }], |
435 [ 'v8_use_mips_abi_hardfloat=="true"', { | 660 [ 'v8_use_mips_abi_hardfloat=="true"', { |
436 'defines': [ | 661 'defines': [ |
437 '__mips_hard_float=1', | 662 '__mips_hard_float=1', |
438 'CAN_USE_FPU_INSTRUCTIONS', | 663 'CAN_USE_FPU_INSTRUCTIONS', |
439 ], | 664 ], |
440 }, { | 665 }, { |
441 'defines': [ | 666 'defines': [ |
442 '__mips_soft_float=1' | 667 '__mips_soft_float=1' |
443 ], | 668 ], |
444 }], | 669 }], |
445 ['mips_arch_variant=="rx"', { | 670 ], |
446 'defines': [ | 671 'target_conditions': [ |
447 '_MIPS_ARCH_MIPS32RX', | 672 ['_toolset=="target"', { |
448 'FPU_MODE_FPXX', | |
449 ], | |
450 }], | |
451 ['mips_arch_variant=="r6"', { | |
452 'defines': [ | |
453 '_MIPS_ARCH_MIPS32R6', | |
454 'FPU_MODE_FP64', | |
455 ], | |
456 }], | |
457 ['mips_arch_variant=="r2"', { | |
458 'defines': ['_MIPS_ARCH_MIPS32R2',], | |
459 'conditions': [ | 673 'conditions': [ |
460 ['mips_fpu_mode=="fp64"', { | 674 ['v8_target_arch==target_arch and android_webview_build==0', { |
461 'defines': ['FPU_MODE_FP64',], | |
462 }], | |
463 ['mips_fpu_mode=="fpxx"', { | |
464 'defines': ['FPU_MODE_FPXX',], | |
465 }], | |
466 ['mips_fpu_mode=="fp32"', { | |
467 'defines': ['FPU_MODE_FP32',], | |
468 }], | |
469 ], | |
470 }], | |
471 ['mips_arch_variant=="r1"', { | |
472 'defines': ['FPU_MODE_FP32',], | |
473 }], | |
474 ['mips_arch_variant=="loongson"', { | |
475 'defines': [ | |
476 '_MIPS_ARCH_LOONGSON', | |
477 'FPU_MODE_FP32', | |
478 ], | |
479 }], | |
480 ], | |
481 }], # v8_target_arch=="mipsel" | |
482 ['v8_target_arch=="mips64el"', { | |
483 'defines': [ | |
484 'V8_TARGET_ARCH_MIPS64', | |
485 ], | |
486 'conditions': [ | |
487 ['v8_target_arch==target_arch and android_webview_build==0', { | |
488 # Target built with a Mips CXX compiler. | |
489 'target_conditions': [ | |
490 ['_toolset=="target"', { | |
491 'cflags': ['-EL'], | 675 'cflags': ['-EL'], |
492 'ldflags': ['-EL'], | 676 'ldflags': ['-EL'], |
493 'conditions': [ | 677 'conditions': [ |
494 [ 'v8_use_mips_abi_hardfloat=="true"', { | 678 [ 'v8_use_mips_abi_hardfloat=="true"', { |
495 'cflags': ['-mhard-float'], | 679 'cflags': ['-mhard-float'], |
496 'ldflags': ['-mhard-float'], | 680 'ldflags': ['-mhard-float'], |
497 }, { | 681 }, { |
498 'cflags': ['-msoft-float'], | 682 'cflags': ['-msoft-float'], |
499 'ldflags': ['-msoft-float'], | 683 'ldflags': ['-msoft-float'], |
500 }], | 684 }], |
501 ['mips_arch_variant=="r6"', { | 685 ['mips_arch_variant=="r6"', { |
| 686 'defines': ['_MIPS_ARCH_MIPS64R6',], |
502 'cflags': ['-mips64r6', '-mabi=64', '-Wa,-mips64r6'], | 687 'cflags': ['-mips64r6', '-mabi=64', '-Wa,-mips64r6'], |
503 'ldflags': [ | 688 'ldflags': [ |
504 '-mips64r6', '-mabi=64', | 689 '-mips64r6', '-mabi=64', |
505 '-Wl,--dynamic-linker=$(LDSO_PATH)', | 690 '-Wl,--dynamic-linker=$(LDSO_PATH)', |
506 '-Wl,--rpath=$(LD_R_PATH)', | 691 '-Wl,--rpath=$(LD_R_PATH)', |
507 ], | 692 ], |
508 }], | 693 }], |
509 ['mips_arch_variant=="r2"', { | 694 ['mips_arch_variant=="r2"', { |
| 695 'defines': ['_MIPS_ARCH_MIPS64R2',], |
510 'cflags': ['-mips64r2', '-mabi=64', '-Wa,-mips64r2'], | 696 'cflags': ['-mips64r2', '-mabi=64', '-Wa,-mips64r2'], |
511 'ldflags': [ | 697 'ldflags': [ |
512 '-mips64r2', '-mabi=64', | 698 '-mips64r2', '-mabi=64', |
513 '-Wl,--dynamic-linker=$(LDSO_PATH)', | 699 '-Wl,--dynamic-linker=$(LDSO_PATH)', |
514 '-Wl,--rpath=$(LD_R_PATH)', | 700 '-Wl,--rpath=$(LD_R_PATH)', |
515 ], | 701 ], |
516 }], | 702 }], |
517 ], | 703 ], |
| 704 }, { |
| 705 # 'v8_target_arch!=target_arch' |
| 706 # Target not built with an MIPS CXX compiler (simulator build). |
| 707 'conditions': [ |
| 708 ['mips_arch_variant=="r6"', { |
| 709 'defines': ['_MIPS_ARCH_MIPS64R6',], |
| 710 }], |
| 711 ['mips_arch_variant=="r2"', { |
| 712 'defines': ['_MIPS_ARCH_MIPS64R2',], |
| 713 }], |
| 714 ], |
518 }], | 715 }], |
519 ], | 716 ], |
520 }], | 717 }], #'_toolset=="target" |
521 [ 'v8_can_use_fpu_instructions=="true"', { | 718 ['_toolset=="host"', { |
522 'defines': [ | 719 'conditions': [ |
523 'CAN_USE_FPU_INSTRUCTIONS', | 720 ['mips_arch_variant=="r6"', { |
| 721 'defines': ['_MIPS_ARCH_MIPS64R6',], |
| 722 }], |
| 723 ['mips_arch_variant=="r2"', { |
| 724 'defines': ['_MIPS_ARCH_MIPS64R2',], |
| 725 }], |
524 ], | 726 ], |
525 }], | 727 }], #'_toolset=="host" |
526 [ 'v8_use_mips_abi_hardfloat=="true"', { | |
527 'defines': [ | |
528 '__mips_hard_float=1', | |
529 'CAN_USE_FPU_INSTRUCTIONS', | |
530 ], | |
531 }, { | |
532 'defines': [ | |
533 '__mips_soft_float=1' | |
534 ], | |
535 }], | |
536 ['mips_arch_variant=="r6"', { | |
537 'defines': ['_MIPS_ARCH_MIPS64R6',], | |
538 }], | |
539 ['mips_arch_variant=="r2"', { | |
540 'defines': ['_MIPS_ARCH_MIPS64R2',], | |
541 }], | |
542 ], | 728 ], |
543 }], # v8_target_arch=="mips64el" | 729 }], # v8_target_arch=="mips64el" |
544 ['v8_target_arch=="x64"', { | 730 ['v8_target_arch=="x64"', { |
545 'defines': [ | 731 'defines': [ |
546 'V8_TARGET_ARCH_X64', | 732 'V8_TARGET_ARCH_X64', |
547 ], | 733 ], |
548 'xcode_settings': { | 734 'xcode_settings': { |
549 'ARCHS': [ 'x86_64' ], | 735 'ARCHS': [ 'x86_64' ], |
550 }, | 736 }, |
551 'msvs_settings': { | 737 'msvs_settings': { |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 'OptimizeReferences': '2', | 1161 'OptimizeReferences': '2', |
976 'EnableCOMDATFolding': '2', | 1162 'EnableCOMDATFolding': '2', |
977 }, | 1163 }, |
978 }, | 1164 }, |
979 }], # OS=="win" | 1165 }], # OS=="win" |
980 ], # conditions | 1166 ], # conditions |
981 }, # Release | 1167 }, # Release |
982 }, # configurations | 1168 }, # configurations |
983 }, # target_defaults | 1169 }, # target_defaults |
984 } | 1170 } |
OLD | NEW |