Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First attempt to make `node-gyp` work.

  • Loading branch information...
commit bf58c7550af302aa423e2859a2f1df2007ee7b3e 1 parent 5f01db8
Dan Bornstein authored
Showing with 11 additions and 44 deletions.
  1. +0 −2  .gitignore
  2. +8 −0 binding.gyp
  3. +3 −3 package.json
  4. +0 −39 wscript
View
2  .gitignore
@@ -1,4 +1,2 @@
-.lock-wscript
-.waf*
build
ursaNative.node
View
8 binding.gyp
@@ -0,0 +1,8 @@
+{
+ "targets": [
+ {
+ "target_name": "ursaNative",
+ "sources": [ "ursaNative.cc" ]
+ }
+ ]
+}
View
6 package.json
@@ -1,6 +1,6 @@
{
"name": "ursa",
- "version": "0.6.9",
+ "version": "0.7.0",
"keywords": [
"crypto", "key", "openssl", "private", "public", "rsa", "sign",
"signature", "verify", "verification", "hash", "digest"
@@ -29,11 +29,11 @@
"main": "lib/ursa.js",
"engine": {
- "node": ">=0.6.0"
+ "node": ">=0.8.0"
},
"scripts": {
- "install": "node-waf configure build",
+ "install": "node-gyp configure build",
"test": "node test/test.js"
}
}
View
39 wscript
@@ -1,39 +0,0 @@
-# Build script based on examples from the NodeJS docs and
-# from node-rsa
-
-import Options
-import shutil
-from os import chmod, mkdir
-from os.path import exists
-
-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')
-
-def build(bld):
- obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
- obj.target = 'ursaNative'
- obj.source = 'src/ursaNative.cc'
-
-def shutdown():
- dir = 'bin'
- target = 'ursaNative.node'
- dirTarget = dir + '/' + target
- if Options.commands['clean']:
- if exists(dir): shutil.rmtree(dir)
- if exists('build'): shutil.rmtree('build')
- if Options.commands['build']:
- if not exists(dir): mkdir(dir)
- if exists('build/default/' + target):
- shutil.copyfile('build/default/' + target, dirTarget)
- if exists('build/Release/' + target):
- shutil.copyfile('build/Release/' + target, dirTarget)
- if exists(dirTarget):
- chmod(dirTarget, 0755)
Please sign in to comment.
Something went wrong with that request. Please try again.