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 'clang_warning_flags_unset': [
35 # snappy-stubs-internal.h unapologetically has: using namespace std
36 # https://code.google.com/p/snappy/issues/detail?id=70
41 'src/snappy-internal.h',
42 'src/snappy-sinksource.cc',
43 'src/snappy-sinksource.h',
44 'src/snappy-stubs-internal.cc',
45 'src/snappy-stubs-internal.h',
50 ['OS=="linux" or OS=="mac"', {
52 # TODO(tfarina): Only Mac and Linux has the generated config.h for
53 # now. Generate the config.h for Windows too and enable this there
59 # Signed/unsigned comparison
60 'msvs_disabled_warnings': [
61 # https://code.google.com/p/snappy/issues/detail?id=71
63 # https://code.google.com/p/snappy/issues/detail?id=75
70 'target_name': 'snappy_unittest',
75 'src/snappy_unittest.cc',
79 '../../base/base.gyp:base',
80 '../../testing/gtest.gyp:gtest',
81 '../../third_party/zlib/zlib.gyp:zlib',
84 'clang_warning_flags': [ '-Wno-return-type' ],
85 'clang_warning_flags_unset': [ '-Wheader-hygiene' ],
88 ['OS=="linux" or OS=="mac"', {
90 # TODO(tfarina): Only Mac and Linux has the generated config.h for
91 # now. Generate the config.h for Windows too and enable this there