Skip to content

Commit

Permalink
Merge pull request #13 from tralamazza/feature/gyp
Browse files Browse the repository at this point in the history
working binding.gyp
  • Loading branch information
c4milo committed Aug 4, 2012
2 parents fe9508b + e7c9622 commit 169352c
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 37 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
build
.lock-*
30 changes: 30 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
'targets': [
{
'target_name': 'node-libvirt',
'sources': [
'src/node_libvirt.cc',
'src/domain.cc',
'src/error.cc',
'src/hypervisor.cc',
'src/interface.cc',
'src/network.cc',
'src/network_filter.cc',
'src/node_device.cc',
'src/secret.cc',
'src/storage_pool.cc',
'src/storage_volume.cc',
'src/stream.cc',
],
'conditions': [
['OS!="win"', {
'link_settings': {
'libraries': [
'<!@(pkg-config --libs-only-l libvirt)'
]
}
}]
]
}
]
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./build/Release/node-libvirt');
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"type": "git",
"url": "http://github.com/c4milo/node-libvirt.git"
}],
"main": "index.js",
"scripts": {
"preinstall": "node-waf clean || true; node-waf configure build",
"test": "expresso"
},
"engines": {
"node": "0.6.x"
"node": ">=0.6.0"
},
"main": "build/Release/src/libvirt.node"
}
5 changes: 4 additions & 1 deletion src/node_libvirt.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2010, Camilo Aguilar. Cloudescape, LLC.
#define BUILDING_NODE_EXTENSION
#include <stdio.h>
#include <stdlib.h>
#include "node_libvirt.h"
Expand Down Expand Up @@ -45,5 +46,7 @@ namespace NodeLibvirt {
HandleScope scope;
InitializeLibvirt(target);
}
} //namespace NodeLibvirt

NODE_MODULE(libvirt, init)
} //namespace NodeLibvirt

18 changes: 0 additions & 18 deletions src/wscript

This file was deleted.

15 changes: 0 additions & 15 deletions wscript

This file was deleted.

0 comments on commit 169352c

Please sign in to comment.