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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 'msvs_configuration_platform': 'x64', | 140 'msvs_configuration_platform': 'x64', |
141 }, | 141 }, |
142 }, | 142 }, |
143 'defines!': [ | 143 'defines!': [ |
144 'DEBUG', | 144 'DEBUG', |
145 ], | 145 ], |
146 'cflags': [ | 146 'cflags': [ |
147 '-Wall', | 147 '-Wall', |
148 '-W', | 148 '-W', |
149 '-Wno-unused-parameter', | 149 '-Wno-unused-parameter', |
150 '-pthread', '-fno-exceptions', | 150 '-pthread', |
| 151 '-fno-exceptions', |
151 '-fvisibility=hidden', | 152 '-fvisibility=hidden', |
| 153 '-std=gnu++0x', |
152 ], | 154 ], |
153 'cflags_cc': [ | 155 'cflags_cc': [ |
154 '-Wnon-virtual-dtor', | 156 '-Wnon-virtual-dtor', |
155 '-fno-rtti', | 157 '-fno-rtti', |
156 ], | 158 ], |
157 'ldflags': [ | 159 'ldflags': [ |
158 '-pthread', | 160 '-pthread', |
159 ], | 161 ], |
160 'msvs_cygwin_dirs': ['<(DEPTH)/v8/third_party/cygwin'], | 162 'msvs_cygwin_dirs': ['<(DEPTH)/v8/third_party/cygwin'], |
161 'msvs_configuration_attributes': { | 163 'msvs_configuration_attributes': { |
(...skipping 30 matching lines...) Expand all Loading... |
192 'LinkIncremental': '1', | 194 'LinkIncremental': '1', |
193 # SubSystem values: | 195 # SubSystem values: |
194 # 0 == not set | 196 # 0 == not set |
195 # 1 == /SUBSYSTEM:CONSOLE | 197 # 1 == /SUBSYSTEM:CONSOLE |
196 # 2 == /SUBSYSTEM:WINDOWS | 198 # 2 == /SUBSYSTEM:WINDOWS |
197 'SubSystem': '1', | 199 'SubSystem': '1', |
198 }, | 200 }, |
199 }, | 201 }, |
200 'xcode_settings': { | 202 'xcode_settings': { |
201 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 203 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
| 204 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', |
202 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 205 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
203 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 206 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
204 # (Equivalent to -fPIC) | 207 # (Equivalent to -fPIC) |
205 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 208 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
206 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 209 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
207 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | 210 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
208 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden | 211 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
209 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 212 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
210 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 213 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
211 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror | 214 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 }], | 256 }], |
254 ], # target_conditions | 257 ], # target_conditions |
255 }, # target_defaults | 258 }, # target_defaults |
256 }], # OS=="mac" | 259 }], # OS=="mac" |
257 ], | 260 ], |
258 'xcode_settings': { | 261 'xcode_settings': { |
259 # See comment in Chromium's common.gypi for why this is needed. | 262 # See comment in Chromium's common.gypi for why this is needed. |
260 'SYMROOT': '<(DEPTH)/xcodebuild', | 263 'SYMROOT': '<(DEPTH)/xcodebuild', |
261 } | 264 } |
262 } | 265 } |
OLD | NEW |