Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
mirgate to ejdb 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tyutyunkov committed Mar 20, 2015
1 parent 50f04c3 commit 0828ec5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Makefile
@@ -1,9 +1,8 @@
all:
- mkdir -p var
npm build .

clean:
- $(MAKE) -C ./ejdb clean
$(MAKE) -f ./libejdb.mk clean
rm -rf ./build ./var/* *.tgz

.PHONY: all clean dummy
10 changes: 5 additions & 5 deletions binding.gyp
Expand Up @@ -30,7 +30,7 @@
'_UNICODE',
],
'libraries': [
'-l<(EJDB_HOME)/lib/tcejdbdll.lib'
'-l<(EJDB_HOME)/lib/ejdbdll.lib'
],
}, {
'defines': [
Expand All @@ -45,8 +45,8 @@
'cflags': [ '-Wall', '-pedantic', '-fsigned-char', '-pthread', '-Wno-variadic-macros'],
'cflags_cc!' : [ '-fno-exceptions' ],
'libraries' : [
'-L../ejdb/tcejdb',
'-Wl,-Bstatic -ltcejdb',
'-L../build-ejdb/src',
'-Wl,-Bstatic -lejdb-1',
'-Wl,-Bdynamic',
'-lz -lpthread -lm -lc'
]
Expand All @@ -62,12 +62,12 @@
'OTHER_LDFLAGS': [
'-Wl,-search_paths_first',
'-L./ejdb/tcejdb/static',
'-lstcejdb -lz -lpthread -lm -lc'
'-lsejdb -lz -lpthread -lm -lc'
]
}
}]
],
'include_dirs' : ['ejdb/tcejdb', '<!(node -e "require(\'nan\')")'],
'include_dirs' : ['build-ejdb/libejdb/include/ejdb', '<!(node -e "require(\'nan\')")'],
},

'targets' : [
Expand Down
2 changes: 1 addition & 1 deletion ejdb
Submodule ejdb updated 181 files
8 changes: 8 additions & 0 deletions libejdb.mk
@@ -0,0 +1,8 @@
all:
mkdir -p build-ejdb
cd build-ejdb && cmake -DCMAKE_INSTALL_PREFIX=./libejdb -DCMAKE_BUILD_TYPE=Release ../ejdb && make install

clean:
rm -rf ./build-ejdb

.PHONY: all clean dummy
2 changes: 1 addition & 1 deletion platform.js
Expand Up @@ -37,7 +37,7 @@ function nix() {
fs.writeFileSync("configure.gypi", JSON.stringify(config));

console.log("Building EJDB...");
var m = spawn(make, ["-C", "ejdb"], {"stdio" : "inherit"});
var m = spawn(make, ["-f", "libejdb.mk"], {"stdio" : "inherit"});
m.on("close", exithandler(make + " all", function() {
var ng = spawn("node-gyp", ["rebuild"], {stdio : "inherit"});
ng.on("close", exithandler("node-gyp"));
Expand Down

0 comments on commit 0828ec5

Please sign in to comment.