summaryrefslogtreecommitdiff
path: root/binding.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'binding.gyp')
-rw-r--r--binding.gyp47
1 files changed, 47 insertions, 0 deletions
diff --git a/binding.gyp b/binding.gyp
new file mode 100644
index 0000000..ca5a1c0
--- /dev/null
+++ b/binding.gyp
@@ -0,0 +1,47 @@
+{
+ 'variables' : {
+
+ },
+
+ 'target_defaults': {
+ 'configurations': {
+ 'Debug': {
+ },
+ 'Release':{
+ 'defines': [ 'NDEBUG' ],
+ }
+ },
+ 'conditions': [
+ ['OS == "win"', {
+
+ }, {
+ 'defines': [
+ '_LARGEFILE_SOURCE',
+ '_FILE_OFFSET_BITS=64',
+ '_GNU_SOURCE',
+ ],
+ }],
+ [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ 'cflags': [ '-Wall', '-pedantic', '-fsigned-char', '-pthread', '-Wno-variadic-macros'],
+ 'cflags_cc!' : [ '-fno-exceptions' ],
+ 'libraries' : [
+ '-L../tcejdb',
+ '-Wl,-Bstatic -ltcejdb',
+ '-Wl,-Bdynamic',
+ '-lbz2 -lz -lrt -lpthread -lm -lc'
+ ]
+ }],
+ ],
+ 'include_dirs' : ['tcejdb'],
+ },
+
+ 'targets' : [
+ {
+ 'target_name' : 'ejdb_native',
+ 'sources' : [
+ 'node/ejdb_native.cc',
+ 'node/ejdb_logging.cc'
+ ]
+ },
+ ]
+} \ No newline at end of file