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 # snappy-stubs-internal.h unapologetically has: using namespace std
45 # https://code.google.com/p/snappy/issues/detail?id=70
47 'WARNING_CFLAGS!': [ '-Wheader-hygiene' ],
49 'cflags': [ '-Wno-header-hygiene' ],
53 # TODO(tfarina): Only Linux has the generated config.h for now.
54 # Generate the config.h in the other platforms: mac, win and enable
60 # Signed/unsigned comparison
61 'msvs_disabled_warnings': [
62 # https://code.google.com/p/snappy/issues/detail?id=71
64 # https://code.google.com/p/snappy/issues/detail?id=75
71 'target_name': 'snappy_unittest',
79 'src/snappy_unittest.cc',
83 '../../base/base.gyp:base',
84 '../../testing/gtest.gyp:gtest',
85 '../../third_party/zlib/zlib.gyp:zlib',