OLD | NEW |
1 # Copyright 2014 PDFium Authors. All rights reserved. | 1 # Copyright 2014 PDFium 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 # Definitions to be used when building stand-alone PDFium binaries. | 5 # Definitions to be used when building stand-alone PDFium binaries. |
6 | 6 |
7 { | 7 { |
8 'variables': { | 8 'variables': { |
9 'component%': 'static_library', | 9 'component%': 'static_library', |
10 'clang%': 0, | 10 'clang%': 0, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 }], | 92 }], |
93 ], | 93 ], |
94 }, | 94 }, |
95 'VCLinkerTool': { | 95 'VCLinkerTool': { |
96 'LinkIncremental': '2', | 96 'LinkIncremental': '2', |
97 }, | 97 }, |
98 }, | 98 }, |
99 'xcode_settings': { | 99 'xcode_settings': { |
100 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 | 100 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 |
101 }, | 101 }, |
| 102 'conditions': [ |
| 103 ['OS=="linux"', { |
| 104 # Enable libstdc++ debugging to help catch problems early. |
| 105 'defines': ['_GLIBCXX_DEBUG=1',], |
| 106 }], |
| 107 ], |
102 }, | 108 }, |
103 'Release': { | 109 'Release': { |
104 'cflags': [ | 110 'cflags': [ |
105 '-fno-strict-aliasing', | 111 '-fno-strict-aliasing', |
106 ], | 112 ], |
107 'xcode_settings': { | 113 'xcode_settings': { |
108 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 114 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
109 'GCC_STRICT_ALIASING': 'NO', | 115 'GCC_STRICT_ALIASING': 'NO', |
110 }, | 116 }, |
111 'msvs_settings': { | 117 'msvs_settings': { |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 ], | 445 ], |
440 }], # OS=="linux" or OS=="mac" | 446 }], # OS=="linux" or OS=="mac" |
441 ["use_goma==1", { | 447 ["use_goma==1", { |
442 'make_global_settings': [ | 448 'make_global_settings': [ |
443 ['CC_wrapper', '<(gomadir)/gomacc'], | 449 ['CC_wrapper', '<(gomadir)/gomacc'], |
444 ['CXX_wrapper', '<(gomadir)/gomacc'], | 450 ['CXX_wrapper', '<(gomadir)/gomacc'], |
445 ], | 451 ], |
446 }], # use_goma==1 | 452 }], # use_goma==1 |
447 ], | 453 ], |
448 } | 454 } |
OLD | NEW |