1 # Copyright (c) 2013 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.
5 config("snappy_config") {
6 include_dirs = [ "src" ]
8 # These OS-specific generated headers were made by running the configure
11 include_dirs += [ "win32" ]
13 include_dirs += [ "mac" ]
15 include_dirs += [ "linux" ]
19 static_library("snappy") {
21 "src/snappy-internal.h",
22 "src/snappy-sinksource.cc",
23 "src/snappy-sinksource.h",
24 "src/snappy-stubs-internal.cc",
25 "src/snappy-stubs-internal.h",
30 config("snappy_warnings") {
32 # ComputeTable is unused,
33 # https://code.google.com/p/snappy/issues/detail?id=96
34 cflags = [ "-Wno-unused-function" ]
37 configs -= [ "//build/config/compiler:chromium_code" ]
38 configs += [ "//build/config/compiler:no_chromium_code" ]
39 configs += [ ":snappy_warnings" ]
40 public_configs = [ ":snappy_config" ]
43 cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison.
47 # snappy-stubs-internal.h unapologetically has: using namespace std
48 # https://code.google.com/p/snappy/issues/detail?id=70
49 configs -= [ "//build/config/clang:extra_warnings" ]