1# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5source_set("murmurhash3") {
6  sources = [
7    "src/MurmurHash3.cpp",
8    "src/MurmurHash3.h",
9  ]
10  configs -= [ "//build/config/compiler:chromium_code" ]
11  configs += [ "//build/config/compiler:no_chromium_code" ]
12}
13
14source_set("pmurhash") {
15  sources = [
16    "src/PMurHash.c",
17    "src/PMurHash.h",
18  ]
19  configs -= [ "//build/config/compiler:chromium_code" ]
20  configs += [ "//build/config/compiler:no_chromium_code" ]
21}
22
23source_set("cityhash") {
24  sources = [
25    "src/City.cpp",
26    "src/City.h",
27  ]
28  configs -= [ "//build/config/compiler:chromium_code" ]
29  configs += [ "//build/config/compiler:no_chromium_code" ]
30
31  if (is_win) {
32    # TODO(jschuh): http://code.google.com/p/smhasher/issues/detail?id=19
33    cflags = [ "/wd4267" ]
34  }
35}
36