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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 }], | 93 }], |
94 ], | 94 ], |
95 }, | 95 }, |
96 'VCLinkerTool': { | 96 'VCLinkerTool': { |
97 'LinkIncremental': '2', | 97 'LinkIncremental': '2', |
98 }, | 98 }, |
99 }, | 99 }, |
100 'xcode_settings': { | 100 'xcode_settings': { |
101 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 | 101 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 |
102 }, | 102 }, |
| 103 'conditions': [ |
| 104 ['OS=="linux"', { |
| 105 # Enable libstdc++ debugging to help catch problems early. |
| 106 'defines': ['_GLIBCXX_DEBUG=1',], |
| 107 }], |
| 108 ], |
103 }, | 109 }, |
104 'Release': { | 110 'Release': { |
105 'cflags': [ | 111 'cflags': [ |
106 '-fno-strict-aliasing', | 112 '-fno-strict-aliasing', |
107 ], | 113 ], |
108 'xcode_settings': { | 114 'xcode_settings': { |
109 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 115 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
110 'GCC_STRICT_ALIASING': 'NO', | 116 'GCC_STRICT_ALIASING': 'NO', |
111 }, | 117 }, |
112 'msvs_settings': { | 118 'msvs_settings': { |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 ], | 446 ], |
441 }], # OS=="linux" or OS=="mac" | 447 }], # OS=="linux" or OS=="mac" |
442 ["use_goma==1", { | 448 ["use_goma==1", { |
443 'make_global_settings': [ | 449 'make_global_settings': [ |
444 ['CC_wrapper', '<(gomadir)/gomacc'], | 450 ['CC_wrapper', '<(gomadir)/gomacc'], |
445 ['CXX_wrapper', '<(gomadir)/gomacc'], | 451 ['CXX_wrapper', '<(gomadir)/gomacc'], |
446 ], | 452 ], |
447 }], # use_goma==1 | 453 }], # use_goma==1 |
448 ], | 454 ], |
449 } | 455 } |
OLD | NEW |