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") {
10 # These OS-specific generated headers were made by running the configure
13 include_dirs += "win32"
17 include_dirs += "linux"
21 static_library("snappy") {
23 "src/snappy-internal.h",
24 "src/snappy-sinksource.cc",
25 "src/snappy-sinksource.h",
26 "src/snappy-stubs-internal.cc",
27 "src/snappy-stubs-internal.h",
32 configs -= "//build/config/compiler:chromium_code"
33 configs += "//build/config/compiler:no_chromium_code"
34 direct_dependent_configs = [ ":snappy_config" ]
37 # # Signed/unsigned comparison
38 # 'msvs_disabled_warnings': [
39 # # https://code.google.com/p/snappy/issues/detail?id=71
41 # # https://code.google.com/p/snappy/issues/detail?id=75
46 # # snappy-stubs-internal.h unapologetically has: using namespace std
47 # # https://code.google.com/p/snappy/issues/detail?id=70
49 # 'WARNING_CFLAGS!': [ '-Wheader-hygiene' ],
51 # 'cflags!': [ '-Wheader-hygiene' ],
56 test("snappy_unittest") {
60 "src/snappy_unittest.cc",
63 configs -= "//build/config/compiler:chromium_code"
64 configs += "//build/config/compiler:no_chromium_code"