diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 22:24:42 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 22:24:42 +0000 |
commit | 9ce15e92e0606092ed75f40928d02566e1088e0e (patch) | |
tree | 8424a361f28480575e75a76e267e208b3fdcfe69 /third_party/snappy/snappy.gyp | |
parent | 6cf4908b6a13150baf8b462122be69c3d8eb20fc (diff) | |
download | chromium_src-9ce15e92e0606092ed75f40928d02566e1088e0e.zip chromium_src-9ce15e92e0606092ed75f40928d02566e1088e0e.tar.gz chromium_src-9ce15e92e0606092ed75f40928d02566e1088e0e.tar.bz2 |
Add LevelDB and Snappy to the build. These will be used by IndexedDB.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6685102
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79058 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/snappy/snappy.gyp')
-rw-r--r-- | third_party/snappy/snappy.gyp | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/third_party/snappy/snappy.gyp b/third_party/snappy/snappy.gyp new file mode 100644 index 0000000..6f8b28c --- /dev/null +++ b/third_party/snappy/snappy.gyp @@ -0,0 +1,66 @@ +# Copyright (c) 2011 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ +'variables': { + 'conditions': [ + # Define an "os_include" variable that points at the OS-specific generated + # headers. These were generated by running the configure script offline. + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { + 'os_include': 'linux' + }], + ['OS=="mac"', {'os_include': 'mac'}], + ['OS=="win"', {'os_include': 'win32'}], + ], + 'use_system_libxml%': 0, + }, + 'targets': [ + { + 'target_name': 'snappy', + 'type': '<(library)', + 'include_dirs': [ + '<(os_include)', + 'src', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + '<(os_include)', + 'src', + ], + }, + 'sources': [ + 'src/snappy-internal.h', + 'src/snappy-sinksource.cc', + 'src/snappy-sinksource.h', + 'src/snappy-stubs-internal.cc', + 'src/snappy-stubs-internal.h', + 'src/snappy.cc', + 'src/snappy.h', + ], + }, + { + 'target_name': 'snappy_unittest', + 'type': 'executable', + 'dependencies': [ + 'leveldb_testutil', + ], + 'sources': [ + 'src/snappy-test.cc', + 'src/snappy-test.h', + 'src/snappy_unittest.cc', + ], + 'dependencies': [ + 'snappy', + '../../testing/gtest.gyp:gtest', + '../../third_party/zlib/zlib.gyp:zlib', + ], + }, + ], +} + +# Local Variables: +# tab-width:2 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=2 shiftwidth=2: |