1 # Copyright (c) 2012 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.
8 # Define an "os_include" variable that points at the OS-specific generated
9 # headers. These were generated by running the configure script offline.
10 ['os_posix == 1 and OS != "mac"', {
13 ['OS=="mac"', {'os_include': 'mac'}],
14 ['OS=="win"', {'os_include': 'win32'}],
16 'use_system_libxml%': 0,
20 'target_name': 'snappy',
21 'type': 'static_library',
27 'direct_dependent_settings': {
34 'src/snappy-internal.h',
35 'src/snappy-sinksource.cc',
36 'src/snappy-sinksource.h',
37 'src/snappy-stubs-internal.cc',
38 'src/snappy-stubs-internal.h',
44 # Signed/unsigned comparison
45 'msvs_disabled_warnings': [
46 # https://code.google.com/p/snappy/issues/detail?id=71
48 # https://code.google.com/p/snappy/issues/detail?id=75
53 # snappy-stubs-internal.h unapologetically has: using namespace std
54 # https://code.google.com/p/snappy/issues/detail?id=70
56 'WARNING_CFLAGS!': [ '-Wheader-hygiene' ],
58 'cflags!': [ '-Wheader-hygiene' ],
63 'target_name': 'snappy_unittest',
68 'src/snappy_unittest.cc',
72 '../../base/base.gyp:base',
73 '../../testing/gtest.gyp:gtest',
74 '../../third_party/zlib/zlib.gyp:zlib',