diff options
author | jbroman@chromium.org <jbroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-09 02:08:44 +0000 |
---|---|---|
committer | jbroman@chromium.org <jbroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-09 02:08:44 +0000 |
commit | 7b31c830f25576dd2f94815c51e40ac3d6bde222 (patch) | |
tree | 3e40bc9c9b36bf1300eb8d921329d86d4d8d8c97 /third_party/smhasher | |
parent | 4d0b9cb2d9781a7ac1788ba1571c16e6ff6b108f (diff) | |
download | chromium_src-7b31c830f25576dd2f94815c51e40ac3d6bde222.zip chromium_src-7b31c830f25576dd2f94815c51e40ac3d6bde222.tar.gz chromium_src-7b31c830f25576dd2f94815c51e40ac3d6bde222.tar.bz2 |
Add third_party/smhasher to the gn build.
BUG=
Review URL: https://codereview.chromium.org/228603008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/smhasher')
-rw-r--r-- | third_party/smhasher/BUILD.gn | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/third_party/smhasher/BUILD.gn b/third_party/smhasher/BUILD.gn new file mode 100644 index 0000000..e1bbb5e --- /dev/null +++ b/third_party/smhasher/BUILD.gn @@ -0,0 +1,35 @@ +# Copyright 2014 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. + +source_set("murmurhash3") { + sources = [ + "src/MurmurHash3.cpp", + "src/MurmurHash3.h", + ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] +} + +source_set("pmurhash") { + sources = [ + "src/PMurHash.c", + "src/PMurHash.h", + ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] +} + +source_set("cityhash") { + sources = [ + "src/City.cpp", + "src/City.h", + ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + + if (is_win) { + # TODO(jschuh): http://code.google.com/p/smhasher/issues/detail?id=19 + cflags = [ "/wd4267" ] + } +} |