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 'variables': { | 6 'variables': { |
7 'generated_src_dir': 'src/chromium_gensrc', | 7 'generated_src_dir': 'src/chromium_gensrc', |
8 }, | 8 }, |
9 'target_defaults': { | 9 'target_defaults': { |
10 'defines': [ | 10 'defines': [ |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 # since Android's math library doesn't have sincos(). | 643 # since Android's math library doesn't have sincos(). |
644 # Either -fno-builtin-sin or -fno-builtin-cos works. | 644 # Either -fno-builtin-sin or -fno-builtin-cos works. |
645 'cflags': [ | 645 'cflags': [ |
646 '-fno-builtin-sin', | 646 '-fno-builtin-sin', |
647 ], | 647 ], |
648 }], | 648 }], |
649 ['OS=="win"', { | 649 ['OS=="win"', { |
650 'defines': [ | 650 'defines': [ |
651 # Because we're building as a static library | 651 # Because we're building as a static library |
652 '_GLAPI_NO_EXPORTS', | 652 '_GLAPI_NO_EXPORTS', |
| 653 # Generated files use const only if __cplusplus or __STDC__ is |
| 654 # defined. On Windows, neither is defined, so define YY_USE_CONST |
| 655 # to explicitly enable const. |
| 656 'YY_USE_CONST', |
653 ], | 657 ], |
654 }], | 658 }], |
655 ], | 659 ], |
656 }, | 660 }, |
657 # Building this target will hide the native OpenGL shared library and | 661 # Building this target will hide the native OpenGL shared library and |
658 # replace it with a slow software renderer. | 662 # replace it with a slow software renderer. |
659 { | 663 { |
660 'target_name': 'osmesa', | 664 'target_name': 'osmesa', |
661 'type': 'loadable_module', | 665 'type': 'loadable_module', |
662 'mac_bundle': 0, | 666 'mac_bundle': 0, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 '<(PRODUCT_DIR)/libosmesa.so', | 739 '<(PRODUCT_DIR)/libosmesa.so', |
736 '<(SHARED_LIB_DIR)/libosmesa.so', | 740 '<(SHARED_LIB_DIR)/libosmesa.so', |
737 ], | 741 ], |
738 }, | 742 }, |
739 ], | 743 ], |
740 }, | 744 }, |
741 ], | 745 ], |
742 }], | 746 }], |
743 ], | 747 ], |
744 } | 748 } |
OLD | NEW |