Blame SOURCES/addon-rpm.gypi

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