"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/node-gyp/addon.gypi" (7 Feb 2017, 3326 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   'target_defaults': {
    3     'type': 'loadable_module',
    4     'win_delay_load_hook': 'true',
    5     'product_prefix': '',
    6 
    7     'include_dirs': [
    8       '<(node_root_dir)/include/node',
    9       '<(node_root_dir)/src',
   10       '<(node_root_dir)/deps/uv/include',
   11       '<(node_root_dir)/deps/v8/include'
   12     ],
   13     'defines!': [
   14       'BUILDING_UV_SHARED=1',  # Inherited from common.gypi.
   15       'BUILDING_V8_SHARED=1',  # Inherited from common.gypi.
   16     ],
   17     'defines': [
   18       'NODE_GYP_MODULE_NAME=>(_target_name)',
   19       'USING_UV_SHARED=1',
   20       'USING_V8_SHARED=1',
   21       # Warn when using deprecated V8 APIs.
   22       'V8_DEPRECATION_WARNINGS=1'
   23     ],
   24 
   25     'target_conditions': [
   26       ['_type=="loadable_module"', {
   27         'product_extension': 'node',
   28         'defines': [
   29           'BUILDING_NODE_EXTENSION'
   30         ],
   31         'xcode_settings': {
   32           'OTHER_LDFLAGS': [
   33             '-undefined dynamic_lookup'
   34           ],
   35         },
   36       }],
   37 
   38       ['_type=="static_library"', {
   39         # set to `1` to *disable* the -T thin archive 'ld' flag.
   40         # older linkers don't support this flag.
   41         'standalone_static_library': '<(standalone_static_library)'
   42       }],
   43 
   44       ['_win_delay_load_hook=="true"', {
   45         # If the addon specifies `'win_delay_load_hook': 'true'` in its
   46         # binding.gyp, link a delay-load hook into the DLL. This hook ensures
   47         # that the addon will work regardless of whether the node/iojs binary
   48         # is named node.exe, iojs.exe, or something else.
   49         'conditions': [
   50           [ 'OS=="win"', {
   51             'sources': [
   52               '<(node_gyp_dir)/src/win_delay_load_hook.cc',
   53             ],
   54             'msvs_settings': {
   55               'VCLinkerTool': {
   56                 'DelayLoadDLLs': [ 'iojs.exe', 'node.exe' ],
   57                 # Don't print a linker warning when no imports from either .exe
   58                 # are used.
   59                 'AdditionalOptions': [ '/ignore:4199' ],
   60               },
   61             },
   62           }],
   63         ],
   64       }],
   65     ],
   66 
   67     'conditions': [
   68       [ 'OS=="mac"', {
   69         'defines': [
   70           '_DARWIN_USE_64_BIT_INODE=1'
   71         ],
   72         'xcode_settings': {
   73           'DYLIB_INSTALL_NAME_BASE': '@rpath'
   74         },
   75       }],
   76       [ 'OS=="aix"', {
   77         'ldflags': [
   78           '-Wl,-bimport:<(node_exp_file)'
   79         ],
   80       }],
   81       [ 'OS=="win"', {
   82         'libraries': [
   83           '-lkernel32.lib',
   84           '-luser32.lib',
   85           '-lgdi32.lib',
   86           '-lwinspool.lib',
   87           '-lcomdlg32.lib',
   88           '-ladvapi32.lib',
   89           '-lshell32.lib',
   90           '-lole32.lib',
   91           '-loleaut32.lib',
   92           '-luuid.lib',
   93           '-lodbc32.lib',
   94           '-lDelayImp.lib',
   95           '-l"<(node_root_dir)/$(ConfigurationName)/<(node_lib_file)"'
   96         ],
   97         'msvs_disabled_warnings': [
   98           # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
   99           # needs to have dll-interface to be used by
  100           # clients of class 'node::ObjectWrap'
  101           4251
  102         ],
  103       }, {
  104         # OS!="win"
  105         'defines': [
  106           '_LARGEFILE_SOURCE',
  107           '_FILE_OFFSET_BITS=64'
  108         ],
  109       }],
  110       [ 'OS in "freebsd openbsd netbsd solaris" or \
  111          (OS=="linux" and target_arch!="ia32")', {
  112         'cflags': [ '-fPIC' ],
  113       }]
  114     ]
  115   }
  116 }