Permalink
Browse files

Don't build Snappy library alongside with esnappy, instead use system…

… wide installed library.
  • Loading branch information...
1 parent 5452f59 commit 013888a63316ab9d8e375fbc2b0095c89ac33069 @thekvs committed Apr 13, 2011
Showing with 15 additions and 131,645 deletions.
  1. +13 −0 README.md
  2. +0 −1 c_src/snappy/AUTHORS
  3. +0 −28 c_src/snappy/COPYING
  4. +0 −249 c_src/snappy/ChangeLog
  5. +0 −365 c_src/snappy/INSTALL
  6. +0 −23 c_src/snappy/Makefile.am
  7. +0 −928 c_src/snappy/Makefile.in
  8. +0 −17 c_src/snappy/NEWS
  9. +0 −135 c_src/snappy/README
  10. +0 −9,076 c_src/snappy/aclocal.m4
  11. +0 −8 c_src/snappy/autogen.sh
  12. +0 −18,020 c_src/snappy/autom4te.cache/output.0
  13. +0 −18,016 c_src/snappy/autom4te.cache/output.1
  14. +0 −279 c_src/snappy/autom4te.cache/requests
  15. +0 −2,571 c_src/snappy/autom4te.cache/traces.0
  16. +0 −705 c_src/snappy/autom4te.cache/traces.1
  17. +0 −1,502 c_src/snappy/config.guess
  18. +0 −110 c_src/snappy/config.h.in
  19. +0 −1,714 c_src/snappy/config.sub
  20. +0 −18,016 c_src/snappy/configure
  21. +0 −112 c_src/snappy/configure.ac
  22. +0 −630 c_src/snappy/depcomp
  23. +0 −520 c_src/snappy/install-sh
  24. +0 −8,413 c_src/snappy/ltmain.sh
  25. +0 −74 c_src/snappy/m4/gtest.m4
  26. +0 −7,377 c_src/snappy/m4/libtool.m4
  27. +0 −368 c_src/snappy/m4/ltoptions.m4
  28. +0 −123 c_src/snappy/m4/ltsugar.m4
  29. +0 −23 c_src/snappy/m4/ltversion.m4
  30. +0 −92 c_src/snappy/m4/lt~obsolete.m4
  31. +0 −376 c_src/snappy/missing
  32. +0 −90 c_src/snappy/snappy-c.cc
  33. +0 −138 c_src/snappy/snappy-c.h
  34. +0 −150 c_src/snappy/snappy-internal.h
  35. +0 −72 c_src/snappy/snappy-sinksource.cc
  36. +0 −136 c_src/snappy/snappy-sinksource.h
  37. +0 −42 c_src/snappy/snappy-stubs-internal.cc
  38. +0 −477 c_src/snappy/snappy-stubs-internal.h
  39. +0 −85 c_src/snappy/snappy-stubs-public.h.in
  40. +0 −542 c_src/snappy/snappy-test.cc
  41. +0 −478 c_src/snappy/snappy-test.h
  42. +0 −1,015 c_src/snappy/snappy.cc
  43. +0 −155 c_src/snappy/snappy.h
  44. +0 −1,153 c_src/snappy/snappy_unittest.cc
  45. +0 −3,609 c_src/snappy/testdata/alice29.txt
  46. +0 −4,122 c_src/snappy/testdata/asyoulik.txt
  47. BIN c_src/snappy/testdata/baddata1.snappy
  48. BIN c_src/snappy/testdata/baddata2.snappy
  49. BIN c_src/snappy/testdata/baddata3.snappy
  50. +0 −645 c_src/snappy/testdata/cp.html
  51. +0 −431 c_src/snappy/testdata/fields.c
  52. BIN c_src/snappy/testdata/geo.protodata
  53. +0 −94 c_src/snappy/testdata/grammar.lsp
  54. BIN c_src/snappy/testdata/house.jpg
  55. +0 −1 c_src/snappy/testdata/html
  56. +0 −1 c_src/snappy/testdata/html_x_4
  57. BIN c_src/snappy/testdata/kennedy.xls
  58. BIN c_src/snappy/testdata/kppkn.gtb
  59. +0 −7,519 c_src/snappy/testdata/lcet10.txt
  60. BIN c_src/snappy/testdata/mapreduce-osdi-1.pdf
  61. +0 −10,699 c_src/snappy/testdata/plrabn12.txt
  62. BIN c_src/snappy/testdata/ptt5
  63. BIN c_src/snappy/testdata/sum
  64. +0 −10,000 c_src/snappy/testdata/urls.10K
  65. +0 −112 c_src/snappy/testdata/xargs.1
  66. +2 −8 rebar.config
View
@@ -10,6 +10,17 @@ Code of the Snappy library included in this distribution.
The **esnappy** library requires Erlang R14B or later.
+## Building
+
+You have to have Snappy library installed on your system so that
+compiler can link against it. You can also specify **ESNAPPY_INCLUDE_DIR**
+and **ESNAPPY_LIB_DIR** enviroment variables for better control of
+paths used to compile and link **esnappy** library.
+
+<pre>
+$ ESNAPPY_INCLUDE_DIR=/usr/local/include ESNAPPY_LIB_DIR=/usr/local/lib ./rebar compile
+</pre>
+
## Perfomance
<pre>
@@ -39,3 +50,5 @@ true
8> size(ZCompressed).
832898
</pre>
+
+Note the difference in execution time 46692 (Snappy) vs. 493585 (zlib).
View
@@ -1 +0,0 @@
-opensource@google.com
View
@@ -1,28 +0,0 @@
-Copyright 2011, Google Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
- * Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
-copyright notice, this list of conditions and the following disclaimer
-in the documentation and/or other materials provided with the
-distribution.
- * Neither the name of Google Inc. nor the names of its
-contributors may be used to endorse or promote products derived from
-this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -1,249 +0,0 @@
-------------------------------------------------------------------------
-r18 | snappy.mirrorbot@gmail.com | 2011-03-24 20:15:54 +0100 (Thu, 24 Mar 2011) | 11 lines
-
-
-Fix a microbenchmark crash on mingw32; seemingly %lld is not universally
-supported on Windows, and %I64d is recommended instead.
-
-R=csilvers
-DELTA=6 (5 added, 0 deleted, 1 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=1034
-
-------------------------------------------------------------------------
-r17 | snappy.mirrorbot@gmail.com | 2011-03-24 20:15:27 +0100 (Thu, 24 Mar 2011) | 13 lines
-
-
-Fix public issue #19: Fix unit test when Google Test is installed but the
-gflags package isn't (Google Test is not properly initialized).
-
-Patch by Martin Gieseking.
-
-R=csilvers
-DELTA=2 (1 added, 0 deleted, 1 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=1033
-
-------------------------------------------------------------------------
-r16 | snappy.mirrorbot@gmail.com | 2011-03-24 20:13:57 +0100 (Thu, 24 Mar 2011) | 15 lines
-
-
-Make the unit test work on systems without mmap(). This is required for,
-among others, Windows support. For Windows in specific, we could have used
-CreateFileMapping/MapViewOfFile, but this should at least get us a bit closer
-to compiling, and is of course also relevant for embedded systems with no MMU.
-
-(Part 2/2)
-
-R=csilvers
-DELTA=15 (12 added, 3 deleted, 0 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=1032
-
-------------------------------------------------------------------------
-r15 | snappy.mirrorbot@gmail.com | 2011-03-24 20:12:27 +0100 (Thu, 24 Mar 2011) | 15 lines
-
-
-Make the unit test work on systems without mmap(). This is required for,
-among others, Windows support. For Windows in specific, we could have used
-CreateFileMapping/MapViewOfFile, but this should at least get us a bit closer
-to compiling, and is of course also relevant for embedded systems with no MMU.
-
-(Part 1/2)
-
-R=csilvers
-DELTA=9 (8 added, 0 deleted, 1 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=1031
-
-------------------------------------------------------------------------
-r14 | snappy.mirrorbot@gmail.com | 2011-03-24 00:17:36 +0100 (Thu, 24 Mar 2011) | 14 lines
-
-
-Fix public issue #12: Don't keep autogenerated auto* files in Subversion;
-it causes problems with others sending patches etc..
-
-We can't get this 100% hermetic anyhow, due to files like lt~obsolete.m4,
-so we can just as well go cleanly in the other direction.
-
-R=csilvers
-DELTA=21038 (0 added, 21036 deleted, 2 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=1012
-
-------------------------------------------------------------------------
-r13 | snappy.mirrorbot@gmail.com | 2011-03-23 18:50:49 +0100 (Wed, 23 Mar 2011) | 11 lines
-
-
-Fix public issue tracker bug #3: Call AC_SUBST([LIBTOOL_DEPS]), or the rule
-to rebuild libtool in Makefile.am won't work.
-
-R=csilvers
-DELTA=1 (1 added, 0 deleted, 0 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=997
-
-------------------------------------------------------------------------
-r12 | snappy.mirrorbot@gmail.com | 2011-03-23 12:16:39 +0100 (Wed, 23 Mar 2011) | 11 lines
-
-
-Fix public issue #10: Don't add GTEST_CPPFLAGS to snappy_unittest_CXXFLAGS;
-it's not needed (CPPFLAGS are always included when compiling).
-
-R=csilvers
-DELTA=1 (0 added, 1 deleted, 0 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=994
-
-------------------------------------------------------------------------
-r11 | snappy.mirrorbot@gmail.com | 2011-03-23 12:16:18 +0100 (Wed, 23 Mar 2011) | 11 lines
-
-
-Fix public issue #9: Add -Wall -Werror to automake flags.
-(This concerns automake itself, not the C++ compiler.)
-
-R=csilvers
-DELTA=4 (3 added, 0 deleted, 1 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=993
-
-------------------------------------------------------------------------
-r10 | snappy.mirrorbot@gmail.com | 2011-03-23 12:13:37 +0100 (Wed, 23 Mar 2011) | 10 lines
-
-
-Fix a typo in the Snappy README file.
-
-R=csilvers
-DELTA=1 (0 added, 0 deleted, 1 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=992
-
-------------------------------------------------------------------------
-r9 | snappy.mirrorbot@gmail.com | 2011-03-23 12:13:13 +0100 (Wed, 23 Mar 2011) | 11 lines
-
-
-Fix public issue #6: Add a --with-gflags for disabling gflags autodetection
-and using a manually given setting (use/don't use) instead.
-
-R=csilvers
-DELTA=16 (13 added, 0 deleted, 3 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=991
-
-------------------------------------------------------------------------
-r8 | snappy.mirrorbot@gmail.com | 2011-03-23 12:12:44 +0100 (Wed, 23 Mar 2011) | 12 lines
-
-
-Fix public issue #5: Replace the EXTRA_LIBSNAPPY_LDFLAGS setup with something
-slightly more standard, that also doesn't leak libtool command-line into
-configure.ac.
-
-R=csilvers
-DELTA=7 (0 added, 4 deleted, 3 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=990
-
-------------------------------------------------------------------------
-r7 | snappy.mirrorbot@gmail.com | 2011-03-23 12:12:22 +0100 (Wed, 23 Mar 2011) | 10 lines
-
-
-Fix public issue #4: Properly quote all macro arguments in configure.ac.
-
-R=csilvers
-DELTA=16 (0 added, 0 deleted, 16 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=989
-
-------------------------------------------------------------------------
-r6 | snappy.mirrorbot@gmail.com | 2011-03-23 12:11:54 +0100 (Wed, 23 Mar 2011) | 11 lines
-
-
-Fix public issue #7: Don't use internal variables named ac_*, as those belong
-to autoconf's namespace.
-
-R=csilvers
-DELTA=6 (0 added, 0 deleted, 6 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=988
-
-------------------------------------------------------------------------
-r5 | snappy.mirrorbot@gmail.com | 2011-03-23 12:11:09 +0100 (Wed, 23 Mar 2011) | 10 lines
-
-
-Add missing licensing headers to a few files. (Part 2/2.)
-
-R=csilvers
-DELTA=12 (12 added, 0 deleted, 0 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=987
-
-------------------------------------------------------------------------
-r4 | snappy.mirrorbot@gmail.com | 2011-03-23 12:10:39 +0100 (Wed, 23 Mar 2011) | 10 lines
-
-
-Add mising licensing headers to a few files. (Part 1/2.)
-
-R=csilvers
-DELTA=24 (24 added, 0 deleted, 0 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=986
-
-------------------------------------------------------------------------
-r3 | snappy.mirrorbot@gmail.com | 2011-03-23 12:10:04 +0100 (Wed, 23 Mar 2011) | 11 lines
-
-
-Use the correct license file for the Apache 2.0 license;
-spotted by Florian Weimer.
-
-R=csilvers
-DELTA=202 (174 added, 0 deleted, 28 changed)
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=985
-
-------------------------------------------------------------------------
-r2 | snappy.mirrorbot@gmail.com | 2011-03-18 18:14:15 +0100 (Fri, 18 Mar 2011) | 6 lines
-
-
-
-
-Revision created by MOE tool push_codebase.
-MOE_MIGRATION=
-
-------------------------------------------------------------------------
-r1 | sesse@google.com | 2011-03-18 18:13:52 +0100 (Fri, 18 Mar 2011) | 2 lines
-
-Create trunk directory.
-
-------------------------------------------------------------------------
Oops, something went wrong.

0 comments on commit 013888a

Please sign in to comment.