Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add snappy.gyp and enable by default.

  • Loading branch information...
commit f6fbfd5a3a5d406eac572e00e6ea58d146f32313 1 parent f598e95
@justmoon justmoon authored
Showing with 77 additions and 2 deletions.
  1. +2 −2 deps/leveldb/leveldb.gyp
  2. +75 −0 deps/snappy/snappy.gyp
View
4 deps/leveldb/leveldb.gyp
@@ -4,7 +4,7 @@
{
'variables': {
- 'use_snappy%': 0,
+ 'use_snappy%': 1,
},
'target_defaults': {
'defines': [
@@ -42,7 +42,7 @@
'conditions': [
['use_snappy', {
'dependencies': [
- '../../third_party/snappy/snappy.gyp:snappy',
+ '../snappy/snappy.gyp:snappy',
],
}],
],
View
75 deps/snappy/snappy.gyp
@@ -0,0 +1,75 @@
+# Copyright (c) 2011 The LevelDB Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file. See the AUTHORS file for names of contributors.
+
+{
+ 'target_defaults': {
+ 'defines': [
+ 'LEVELDB_PLATFORM_POSIX=1'
+ ],
+ 'include_dirs': [
+ '.',
+ 'include/',
+ ],
+ 'conditions': [
+ ['OS == "win"', {
+ 'include_dirs': [
+ 'port/win',
+ ],
+ }],
+ ['OS == "mac"', {
+ 'defines': [
+ 'OS_MACOSX=1',
+ 'PLATFORM=OS_MACOSX'
+ ]
+ }],
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'snappy',
+ 'type': 'static_library',
+ 'dependencies': [
+ ],
+ 'conditions': [
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'include/',
+ ],
+ 'conditions': [
+ ['OS == "win"', {
+ 'include_dirs': [
+ 'port/win',
+ ],
+ }],
+ ],
+ },
+ 'sources': [
+ # Include and then exclude so that all files show up in IDEs, even if
+ # they don't build.
+ 'snappy.cc',
+ 'snappy-sinksource.cc',
+ 'snappy-stubs-internal.cc',
+ 'snappy-c.cc'
+ ],
+ },
+ {
+ 'target_name': 'snappy_unittest',
+ 'type': 'executable',
+ 'dependencies': [
+ 'snappy',
+ ],
+ 'sources': [
+ 'snappy_unittest.cc',
+ 'snappy-test.cc'
+ ],
+ },
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2:
Please sign in to comment.
Something went wrong with that request. Please try again.