summaryrefslogtreecommitdiffstats
path: root/third_party/smhasher/BUILD.gn
blob: e1bbb5e33897e6aa16d23852059c4f3844a7df2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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" ]
  }
}