Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

82 lines (81 sloc) 2.267 kB
{
'variables': {
'node_module_sources': [
"src/_zipfile.cc",
"src/node_zipfile.cpp",
],
'node_root': '/opt/node-v6.1',
'node_root_win': 'c:\\node',
'deps_root_win': 'c:\\dev2'
},
'targets': [
{
'target_name': '_zipfile',
'product_name': '_zipfile',
'type': 'loadable_module',
'product_prefix': '',
'product_extension':'node',
'sources': [
'<@(node_module_sources)',
],
'defines': [
'PLATFORM="<(OS)"',
'_LARGEFILE_SOURCE',
'_FILE_OFFSET_BITS=64',
],
'conditions': [
[ 'OS=="mac"', {
'libraries': [
'-lz',
'-L../../deps/libzip-0.10/lib/.libs',
'-lzip',
'-undefined dynamic_lookup'
],
'include_dirs': [
'include/',
'deps/libzip-0.10/',
'deps/libzip-0.10/lib/',
'<@(node_root)/include/node',
'<@(node_root)/include',
],
}],
[ 'OS=="win"', {
'defines': [
'PLATFORM="win32"',
'_WINDOWS',
'__WINDOWS__', # ltdl
'BUILDING_NODE_EXTENSION'
],
'libraries': [
'node.lib',
'zip.lib',
'zlib.lib'
],
'include_dirs': [
'include',
'<@(deps_root_win)\\node-zipfile\\deps\\libzip-0.10\\lib',
'<@(deps_root_win)\\zlib',
'<@(node_root_win)\\deps\\v8\\include',
'<@(node_root_win)\\src',
'<@(node_root_win)\\deps\\uv\\include',
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalOptions': [
# https://github.com/mapnik/node-mapnik/issues/74
'/FORCE:MULTIPLE'
],
'AdditionalLibraryDirectories': [
'<@(deps_root_win)\\zlib',
'<@(deps_root_win)\\node-zipfile\\deps\\libzip-0.10\\build_vc100\\lib',
'<@(node_root_win)\\Release\\lib',
'<@(node_root_win)\\Release',
],
},
},
},
], # windows
] # condition
}, # targets
],
}
Jump to Line
Something went wrong with that request. Please try again.