Permalink
Browse files

node-gyp support instead of no longer worling node-waf, tested on OS …

…X 10.8.2
  • Loading branch information...
1 parent 48a7c11 commit 4a1ef5b92fe3b70aa188ddec952e88352325c6c5 @icing icing committed Jan 9, 2013
Showing with 9 additions and 18 deletions.
  1. +9 −0 binding.gyp
  2. +0 −18 wscript
View
@@ -0,0 +1,9 @@
+{
+ "targets": [
+ {
+ "target_name": "pcap_binding",
+ "sources": [ "pcap_binding.cc" ],
+ "link_settings" : { "libraries" : [ "-lpcap" ] }
+ }
+ ]
+}
View
18 wscript
@@ -1,18 +0,0 @@
-srcdir = "."
-blddir = "build"
-VERSION = "0.0.1"
-
-def set_options(opt):
- opt.tool_options("compiler_cxx")
-
-def configure(conf):
- conf.check_tool("compiler_cxx")
- conf.check_tool("node_addon")
- if not conf.check(lib="pcap", mandantory=True):
- conf.fatal("libpcap C library not found on this system.")
-
-def build(bld):
- obj = bld.new_task_gen("cxx", "shlib", "node_addon")
- obj.target = "pcap_binding"
- obj.source = "pcap_binding.cc"
- obj.linkflags = ['-lpcap']

0 comments on commit 4a1ef5b

Please sign in to comment.