Skip to content

Commit

Permalink
try add more files
Browse files Browse the repository at this point in the history
  • Loading branch information
kuno committed Jul 28, 2012
1 parent 05aafa8 commit 9e28a38
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
32 changes: 32 additions & 0 deletions binding.gyp.complex
@@ -0,0 +1,32 @@
{
'targets': [
{
'target_name': 'geoip',
'sources': [
'src/init.cc'
, 'src/country.cc','src/country6.cc'
, 'src/city.cc','src/city6.cc'
, 'src/org.cc','src/region.cc'
, 'src/netspeed.cc', 'src/utils.cc'
],
'include_dirs': [
'deps/geoip/libGeoIP'
],
'conditions': [
['OS=="win"', {
# no Windows support yet...
}
],
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.5',
'OTHER_CFLAGS': [
'<!@(xml2-config --cflags)'
]
},
}]
]
},
]
}
40 changes: 40 additions & 0 deletions binding.gyp.example
@@ -0,0 +1,40 @@
{
'targets': [
{
# have to specify 'liblib' here since gyp will remove the first one :\
'target_name': 'liblibxmljs',
'sources': [
'src/libxmljs.cc',
'src/xml_attribute.cc',
'src/xml_document.cc',
'src/xml_element.cc',
'src/xml_namespace.cc',
'src/xml_node.cc',
'src/xml_sax_parser.cc',
'src/xml_syntax_error.cc',
'src/xml_xpath_context.cc',
],
'conditions': [
['OS=="win"', {
# no Windows support yet...
}, {
'libraries': [
'<!@(xml2-config --libs)'
],
}],
['OS=="mac"', {
# cflags on OS X are stupid and have to be defined like this
'xcode_settings': {
'OTHER_CFLAGS': [
'<!@(xml2-config --cflags)'
]
}
}, {
'cflags': [
'<!@(xml2-config --cflags)'
],
}]
]
}
]
}
15 changes: 15 additions & 0 deletions deps/geoip/build/config.gypi
@@ -0,0 +1,15 @@
# Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"defines": [],
"include_dirs": [],
"libraries": [],
"default_configuration": "Release"
},
"variables": {
"target_arch": "x64",
"nodedir": "/home/kuno/.node-gyp/0.6.19",
"copy_dev_lib": "true"
}
}

0 comments on commit 9e28a38

Please sign in to comment.