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 'conditions': [ | 6 'conditions': [ |
7 ['use_system_mesa==0', { | 7 ['use_system_mesa==0', { |
8 'target_defaults': { | 8 'target_defaults': { |
9 'conditions': [ | 9 'conditions': [ |
10 ['OS!="win"', { | 10 ['OS!="win"', { |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 ], | 550 ], |
551 }, | 551 }, |
552 'cflags': [ | 552 'cflags': [ |
553 '-Wno-unused-value', | 553 '-Wno-unused-value', |
554 '-Wno-constant-conversion', | 554 '-Wno-constant-conversion', |
555 ], | 555 ], |
556 'cflags!': [ | 556 'cflags!': [ |
557 '-Wstring-conversion', | 557 '-Wstring-conversion', |
558 ], | 558 ], |
559 }], | 559 }], |
| 560 ['OS=="android" and clang==0', { |
| 561 # Disable sincos() optimization to avoid a linker error |
| 562 # since Android's math library doesn't have sincos(). |
| 563 # Either -fno-builtin-sin or -fno-builtin-cos works. |
| 564 'cflags': [ |
| 565 '-fno-builtin-sin', |
| 566 ], |
| 567 }], |
560 ], | 568 ], |
561 }, | 569 }, |
562 # Building this target will hide the native OpenGL shared library and | 570 # Building this target will hide the native OpenGL shared library and |
563 # replace it with a slow software renderer. | 571 # replace it with a slow software renderer. |
564 { | 572 { |
565 'target_name': 'osmesa', | 573 'target_name': 'osmesa', |
566 'type': 'loadable_module', | 574 'type': 'loadable_module', |
567 'mac_bundle': 0, | 575 'mac_bundle': 0, |
568 'dependencies': [ | 576 'dependencies': [ |
569 'mesa_headers', | 577 'mesa_headers', |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 'type': 'none', | 643 'type': 'none', |
636 }, | 644 }, |
637 { | 645 { |
638 'target_name': 'osmesa', | 646 'target_name': 'osmesa', |
639 'type': 'none', | 647 'type': 'none', |
640 }, | 648 }, |
641 ], | 649 ], |
642 }], | 650 }], |
643 ], | 651 ], |
644 } | 652 } |
OLD | NEW |