Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Changes to transition from node-waf to node-gyp #25

Merged
merged 1 commit into from

2 participants

@philipb

This is my first-ever Github pull request. Please be gentle.

@jeremycx jeremycx merged commit e1f0e91 into jeremycx:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 9, 2012
  1. Transitioned from node-waf to node-gyp build process.

    Philip Boulton authored
This page is out of date. Refresh to see the latest.
Showing with 32 additions and 28 deletions.
  1. +31 −0 binding.gyp
  2. +1 −1  src/Makefile
  3. +0 −27 wscript
View
31 binding.gyp
@@ -0,0 +1,31 @@
+{
+ "targets": [
+ {
+ 'target_name': 'LDAP',
+ 'sources': [
+ 'src/LDAP.cc'
+ ],
+ 'include_dirs': [
+ '/usr/local/include'
+ ],
+ 'defines': [
+ 'LDAP_DEPRECATED'
+ ],
+ 'cflags': [
+ '-Wall',
+ '--verbose'
+ ],
+ 'ldflags': [
+ '-L/usr/local/lib',
+ '-lldap',
+ '--verbose'
+ ],
+ }
+ ]
+}
+
+
+
+
+
+
View
2  src/Makefile
@@ -1,2 +1,2 @@
all:
- cd .. && node-waf build
+ cd .. && node-gyp configure build
View
27 wscript
@@ -1,27 +0,0 @@
-import Options, Utils
-from os import unlink, symlink, chdir
-from os.path import exists
-
-srcdir = '.'
-blddir = 'build'
-VERSION = '0.0.2'
-
-def set_options(opt):
- opt.tool_options('compiler_cxx')
-
-def configure(conf):
- conf.check_tool('compiler_cxx')
- conf.check_tool('node_addon')
-
- conf.env.append_unique('CPPFLAGS', ["-I/usr/local/include"])
- conf.env.append_unique('CXXFLAGS', ["-Wall"])
-
- conf.env.append_unique('LINKFLAGS', ["-L/usr/local/lib"])
-
-
-def build(bld):
- obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
- obj.cxxflags = ['-DLDAP_DEPRECATED']
- obj.target = 'LDAP'
- obj.source = './src/LDAP.cc'
- obj.lib = ['ldap']
Something went wrong with that request. Please try again.