Blame SOURCES/addon-rpm.gypi

987695
{
987695
  'target_defaults': {
987695
    'type': 'loadable_module',
987695
    'product_prefix': '',
987695
    'include_dirs': [
987695
      '/opt/rh/nodejs010/root/usr/include',
987695
      '/opt/rh/nodejs010/root/usr/include/node'
987695
    ],
987695
987695
    'target_conditions': [
987695
      ['_type=="loadable_module"', {
987695
        'product_extension': 'node',
987695
        'defines': [ 'BUILDING_NODE_EXTENSION' ],
987695
      }],
987695
      ['_type=="static_library"', {
987695
        # set to `1` to *disable* the -T thin archive 'ld' flag.
987695
        # older linkers don't support this flag.
987695
        'standalone_static_library': '<(standalone_static_library)'
987695
      }],
987695
    ],
987695
987695
    'conditions': [
987695
      [ 'OS=="mac"', {
987695
        'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
987695
        'libraries': [ '-undefined dynamic_lookup' ],
987695
        'xcode_settings': {
987695
          'DYLIB_INSTALL_NAME_BASE': '@rpath'
987695
        },
987695
      }],
987695
      [ 'OS=="win"', {
987695
        'libraries': [ '-l<(node_root_dir)/$(Configuration)/node.lib' ],
987695
        # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
987695
        # needs to have dll-interface to be used by clients of class 'node::ObjectWrap'
987695
        'msvs_disabled_warnings': [ 4251 ],
987695
      }, {
987695
        # OS!="win"
987695
        'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' ],
987695
      }],
987695
      [ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
987695
        'cflags': [ '-fPIC' ],
987695
      }]
987695
    ]
987695
  }
987695
}