{
'variables': {
- 'win_third_party_warn_as_error': 'false',
'pdf_use_skia%': 0,
},
'target_defaults': {
'_FXFT_VERSION_=2501',
'_FPDFSDK_LIB',
'_NO_GDIPLUS_', # workaround text rendering issues on Windows
+ 'OPJ_STATIC',
],
'conditions': [
['pdf_use_skia==1', {
'defines': ['_SKIA_SUPPORT_'],
}],
['OS=="linux"', {
- 'cflags!': [
- '-fno-exceptions',
- ],
'conditions': [
['target_arch=="x64"', {
- 'defines' : [
- '_FX_CPU_=_FX_X64_',
- ],
- 'cflags': [
- '-fPIC',
- ],
+ 'defines' : [ '_FX_CPU_=_FX_X64_', ],
+ 'cflags': [ '-fPIC', ],
}],
['target_arch=="ia32"', {
- 'defines' : [
- '_FX_CPU_=_FX_X86_',
- ],
+ 'defines' : [ '_FX_CPU_=_FX_X86_', ],
}],
],
}],
- ['OS=="mac"', {
- 'xcode_settings': {
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
- 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror
- },
- }],
- ['clang==1', {
- 'cflags!': [
- '-Werror',
- ],
- }],
],
'msvs_disabled_warnings': [
- 4005, 4018, 4146, 4333, 4345
+ 4005, 4018, 4146, 4333, 4345, 4267
],
},
'targets': [
'core/src/fxcrt/fx_basic_list.cpp',
'core/src/fxcrt/fx_basic_maps.cpp',
'core/src/fxcrt/fx_basic_memmgr.cpp',
- 'core/src/fxcrt/fx_basic_memmgr_mini.cpp',
'core/src/fxcrt/fx_basic_plex.cpp',
'core/src/fxcrt/fx_basic_utf.cpp',
'core/src/fxcrt/fx_basic_util.cpp',
'core/src/fxcrt/fx_unicode.cpp',
'core/src/fxcrt/fx_xml_composer.cpp',
'core/src/fxcrt/fx_xml_parser.cpp',
- 'core/src/fxcrt/mem_int.h',
'core/src/fxcrt/plex.h',
'core/src/fxcrt/xml_int.h',
],
}],
['OS=="win"', {
'defines!': [
- 'NOMINMAX',
'WIN32_LEAN_AND_MEAN'
],
'sources': [
'target_name': 'javascript',
'type': 'static_library',
'include_dirs': [
+ '<(DEPTH)/v8',
'<(DEPTH)/v8/include',
],
'dependencies': [
'<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
+ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
],
'export_dependent_settings': [
'<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
'<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
],
'include_dirs': [
+ '<(DEPTH)/v8',
'<(DEPTH)/v8/include',
],
'ldflags': [ '-L<(PRODUCT_DIR)',],