| OLD | NEW |
| 1 { | 1 { |
| 2 'variables': { | 2 'variables': { |
| 3 'pdf_use_skia%': 0, | 3 'pdf_use_skia%': 0, |
| 4 }, | 4 }, |
| 5 'target_defaults': { | 5 'target_defaults': { |
| 6 'defines' : [ | 6 'defines' : [ |
| 7 'FOXIT_CHROME_BUILD', | 7 'FOXIT_CHROME_BUILD', |
| 8 '_FXFT_VERSION_=2501', | 8 '_FXFT_VERSION_=2501', |
| 9 '_FPDFSDK_LIB', | 9 '_FPDFSDK_LIB', |
| 10 '_NO_GDIPLUS_', # workaround text rendering issues on Windows | 10 '_NO_GDIPLUS_', # workaround text rendering issues on Windows |
| 11 ], | 11 ], |
| 12 'conditions': [ | 12 'conditions': [ |
| 13 ['pdf_use_skia==1', { | 13 ['pdf_use_skia==1', { |
| 14 'defines': ['_SKIA_SUPPORT_'], | 14 'defines': ['_SKIA_SUPPORT_'], |
| 15 }], | 15 }], |
| 16 # pdfium uses exceptions. Override the default exceptions-off setting |
| 17 # from chromium. |
| 18 # TODO: Instead, change pdfium to not use exceptions, and remove this. |
| 19 ['OS=="mac"', { |
| 20 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', }, |
| 21 }], |
| 22 ['OS=="win"', { |
| 23 'msvs_settings': { 'VCCLCompilerTool': { 'ExceptionHandling': '1', }, }, |
| 24 'defines!': [ '_HAS_EXCEPTIONS=0', ], |
| 25 }], |
| 16 ['OS=="linux"', { | 26 ['OS=="linux"', { |
| 17 'cflags!': [ | 27 'cflags!': [ '-fno-exceptions', ], |
| 18 '-fno-exceptions', | |
| 19 ], | |
| 20 'conditions': [ | 28 'conditions': [ |
| 21 ['target_arch=="x64"', { | 29 ['target_arch=="x64"', { |
| 22 'defines' : [ | 30 'defines' : [ '_FX_CPU_=_FX_X64_', ], |
| 23 '_FX_CPU_=_FX_X64_', | 31 'cflags': [ '-fPIC', ], |
| 24 ], | |
| 25 'cflags': [ | |
| 26 '-fPIC', | |
| 27 ], | |
| 28 }], | 32 }], |
| 29 ['target_arch=="ia32"', { | 33 ['target_arch=="ia32"', { |
| 30 'defines' : [ | 34 'defines' : [ '_FX_CPU_=_FX_X86_', ], |
| 31 '_FX_CPU_=_FX_X86_', | |
| 32 ], | |
| 33 }], | 35 }], |
| 34 ], | 36 ], |
| 35 }], | 37 }], |
| 36 ['OS=="mac"', { | |
| 37 'xcode_settings': { | |
| 38 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', | |
| 39 }, | |
| 40 }], | |
| 41 ], | 38 ], |
| 42 'msvs_disabled_warnings': [ | 39 'msvs_disabled_warnings': [ |
| 43 4005, 4018, 4146, 4333, 4345, 4267 | 40 4005, 4018, 4146, 4333, 4345, 4267 |
| 44 ], | 41 ], |
| 45 }, | 42 }, |
| 46 'targets': [ | 43 'targets': [ |
| 47 { | 44 { |
| 48 'target_name': 'pdfium', | 45 'target_name': 'pdfium', |
| 49 'type': 'static_library', | 46 'type': 'static_library', |
| 50 'dependencies': [ | 47 'dependencies': [ |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 'fpdfsdk/src/formfiller/FFL_ListBox.cpp', | 847 'fpdfsdk/src/formfiller/FFL_ListBox.cpp', |
| 851 'fpdfsdk/src/formfiller/FFL_Notify.cpp', | 848 'fpdfsdk/src/formfiller/FFL_Notify.cpp', |
| 852 'fpdfsdk/src/formfiller/FFL_PushButton.cpp', | 849 'fpdfsdk/src/formfiller/FFL_PushButton.cpp', |
| 853 'fpdfsdk/src/formfiller/FFL_RadioButton.cpp', | 850 'fpdfsdk/src/formfiller/FFL_RadioButton.cpp', |
| 854 'fpdfsdk/src/formfiller/FFL_TextField.cpp', | 851 'fpdfsdk/src/formfiller/FFL_TextField.cpp', |
| 855 'fpdfsdk/src/formfiller/FFL_Utils.cpp', | 852 'fpdfsdk/src/formfiller/FFL_Utils.cpp', |
| 856 ], | 853 ], |
| 857 }, | 854 }, |
| 858 ], | 855 ], |
| 859 } | 856 } |
| OLD | NEW |