Permalink
Browse files

[refactor] Better folder sturcture

  • Loading branch information...
1 parent ac26d47 commit f11e8b8e51d6a6dd369ebf8b0ad6644fb3cc8633 @kesla committed Aug 9, 2011
Showing with 16 additions and 13 deletions.
  1. +9 −6 .gitignore
  2. 0 {lib → deps/libsnappy}/AUTHORS
  3. 0 {lib → deps/libsnappy}/COPYING
  4. 0 {lib → deps/libsnappy}/ChangeLog
  5. 0 {lib → deps/libsnappy}/INSTALL
  6. 0 {lib → deps/libsnappy}/Makefile.am
  7. 0 {lib → deps/libsnappy}/Makefile.in
  8. 0 {lib → deps/libsnappy}/NEWS
  9. 0 {lib → deps/libsnappy}/README
  10. 0 {lib → deps/libsnappy}/aclocal.m4
  11. 0 {lib → deps/libsnappy}/autogen.sh
  12. 0 {lib → deps/libsnappy}/config.guess
  13. 0 {lib → deps/libsnappy}/config.h.in
  14. 0 {lib → deps/libsnappy}/config.sub
  15. 0 {lib → deps/libsnappy}/configure
  16. 0 {lib → deps/libsnappy}/configure.ac
  17. 0 {lib → deps/libsnappy}/depcomp
  18. 0 {lib → deps/libsnappy}/format_description.txt
  19. 0 {lib → deps/libsnappy}/install-sh
  20. 0 {lib → deps/libsnappy}/ltmain.sh
  21. 0 {lib → deps/libsnappy}/m4/gtest.m4
  22. 0 {lib → deps/libsnappy}/missing
  23. 0 {lib → deps/libsnappy}/snappy-c.cc
  24. 0 {lib → deps/libsnappy}/snappy-c.h
  25. 0 {lib → deps/libsnappy}/snappy-internal.h
  26. 0 {lib → deps/libsnappy}/snappy-sinksource.cc
  27. 0 {lib → deps/libsnappy}/snappy-sinksource.h
  28. 0 {lib → deps/libsnappy}/snappy-stubs-internal.cc
  29. 0 {lib → deps/libsnappy}/snappy-stubs-internal.h
  30. 0 {lib → deps/libsnappy}/snappy-stubs-public.h
  31. 0 {lib → deps/libsnappy}/snappy-stubs-public.h.in
  32. 0 {lib → deps/libsnappy}/snappy-test.cc
  33. 0 {lib → deps/libsnappy}/snappy-test.h
  34. 0 {lib → deps/libsnappy}/snappy.cc
  35. 0 {lib → deps/libsnappy}/snappy.h
  36. 0 {lib → deps/libsnappy}/snappy_unittest.cc
  37. +1 −1 { → lib}/snappy.js
  38. +1 −1 package.json
  39. 0 { → src}/binding.cc
  40. 0 { → src}/binding.h
  41. +1 −1 test.js → test/all.js
  42. +4 −4 wscript
View
@@ -1,8 +1,11 @@
build/*
.lock-wscript
-/lib/config.h
-/lib/config.log
-/lib/config.status
-/lib/libtool
-/lib/Makefile
-/lib/stamp-h1
+/deps/libsnappy/config.h
+/deps/libsnappy/config.log
+/deps/libsnappy/config.status
+/deps/libsnappy/libtool
+/deps/libsnappy/Makefile
+/deps/libsnappy/stamp-h1
+/deps/libsnappy/.deps/*
+node_modules/*
+/npm-debug.log
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -23,7 +23,7 @@
/*
* The c++-module.
*/
-var binding = require('./build/default/binding');
+var binding = require('../build/default/binding');
/*
* Parsers, used to parse a buffer when decompressing.
View
@@ -8,7 +8,7 @@
"type": "git",
"url": "git://github.com/kesla/node-snappy.git"
},
- "main": "snappy.js",
+ "main": "lib/snappy.js",
"directories": {
"lib": "."
},
File renamed without changes.
File renamed without changes.
View
@@ -20,7 +20,7 @@
THE SOFTWARE.
*/
-var snappy = require('./snappy');
+var snappy = require('../lib/snappy');
var vows = require('vows');
var assert = require('assert');
View
@@ -13,16 +13,16 @@ def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
- Utils.exec_command('./configure', cwd = './lib')
+ Utils.exec_command('./configure', cwd = './deps/libsnappy')
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
# -D_FILE_OFFSET_BITS and -D_LARGEFILE_SOURCE needed for libeio
obj.cxxflags = ['-Wall', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE']
obj.target = 'binding'
- obj.source = 'binding.cc lib/snappy.cc lib/snappy-sinksource.cc'
- obj.includes = 'lib/'
+ obj.source = 'src/binding.cc deps/libsnappy/snappy.cc deps/libsnappy/snappy-sinksource.cc'
+ obj.includes = 'deps/libsnappy/'
obj.install_path = None
def test(tsk):
- Utils.exec_command('vows test.js --spec')
+ Utils.exec_command('vows test/* --spec')

0 comments on commit f11e8b8

Please sign in to comment.