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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 '-Wno-missing-field-initializers', | 175 '-Wno-missing-field-initializers', |
176 # Code might someday be made clean for -Wsign-compare, but for now | 176 # Code might someday be made clean for -Wsign-compare, but for now |
177 # this produces too much noise to be useful. | 177 # this produces too much noise to be useful. |
178 '-Wno-sign-compare', | 178 '-Wno-sign-compare', |
179 '-Wno-unused-parameter', | 179 '-Wno-unused-parameter', |
180 '-pthread', | 180 '-pthread', |
181 '-fno-exceptions', | 181 '-fno-exceptions', |
182 '-fvisibility=hidden', | 182 '-fvisibility=hidden', |
183 ], | 183 ], |
184 'cflags_cc': [ | 184 'cflags_cc': [ |
185 '-std=gnu++0x', | 185 '-std=c++11', |
186 '-Wnon-virtual-dtor', | 186 '-Wnon-virtual-dtor', |
187 '-fno-rtti', | 187 '-fno-rtti', |
188 ], | 188 ], |
189 'ldflags': [ | 189 'ldflags': [ |
190 '-pthread', | 190 '-pthread', |
191 ], | 191 ], |
192 'defines': [ | 192 'defines': [ |
193 # Don't use deprecated V8 APIs anywhere. | 193 # Don't use deprecated V8 APIs anywhere. |
194 'V8_DEPRECATION_WARNINGS', | 194 'V8_DEPRECATION_WARNINGS', |
195 ], | 195 ], |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 'LinkIncremental': '1', | 326 'LinkIncremental': '1', |
327 # SubSystem values: | 327 # SubSystem values: |
328 # 0 == not set | 328 # 0 == not set |
329 # 1 == /SUBSYSTEM:CONSOLE | 329 # 1 == /SUBSYSTEM:CONSOLE |
330 # 2 == /SUBSYSTEM:WINDOWS | 330 # 2 == /SUBSYSTEM:WINDOWS |
331 'SubSystem': '1', | 331 'SubSystem': '1', |
332 }, | 332 }, |
333 }, | 333 }, |
334 'xcode_settings': { | 334 'xcode_settings': { |
335 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 335 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
336 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', | 336 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', |
337 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 337 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
338 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 338 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
339 # (Equivalent to -fPIC) | 339 # (Equivalent to -fPIC) |
340 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 340 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
341 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 341 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
342 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | 342 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
343 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden | 343 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
344 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 344 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
345 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 345 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
346 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror | 346 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 ], | 453 ], |
454 }], # OS=="linux" or OS=="mac" | 454 }], # OS=="linux" or OS=="mac" |
455 ["use_goma==1", { | 455 ["use_goma==1", { |
456 'make_global_settings': [ | 456 'make_global_settings': [ |
457 ['CC_wrapper', '<(gomadir)/gomacc'], | 457 ['CC_wrapper', '<(gomadir)/gomacc'], |
458 ['CXX_wrapper', '<(gomadir)/gomacc'], | 458 ['CXX_wrapper', '<(gomadir)/gomacc'], |
459 ], | 459 ], |
460 }], # use_goma==1 | 460 }], # use_goma==1 |
461 ], | 461 ], |
462 } | 462 } |
OLD | NEW |