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': [
35 # ComputeTable is unused,
36 # https://code.google.com/p/snappy/issues/detail?id=96
37 '-Wno-unused-function',
39 'clang_warning_flags_unset': [
40 # snappy-stubs-internal.h unapologetically has: using namespace std
41 # https://code.google.com/p/snappy/issues/detail?id=70
46 'src/snappy-internal.h',
47 'src/snappy-sinksource.cc',
48 'src/snappy-sinksource.h',
49 'src/snappy-stubs-internal.cc',
50 'src/snappy-stubs-internal.h',
55 ['OS=="linux" or OS=="mac"', {
57 # TODO(tfarina): Only Mac and Linux has the generated config.h for
58 # now. Generate the config.h for Windows too and enable this there
64 # Signed/unsigned comparison
65 'msvs_disabled_warnings': [
66 # https://code.google.com/p/snappy/issues/detail?id=71
68 # https://code.google.com/p/snappy/issues/detail?id=75
75 'target_name': 'snappy_unittest',
80 'src/snappy_unittest.cc',
84 '../../base/base.gyp:base',
85 '../../testing/gtest.gyp:gtest',
86 '../../third_party/zlib/zlib.gyp:zlib',
89 'clang_warning_flags': [ '-Wno-return-type' ],
90 'clang_warning_flags_unset': [ '-Wheader-hygiene' ],
93 ['OS=="linux" or OS=="mac"', {
95 # TODO(tfarina): Only Mac and Linux has the generated config.h for
96 # now. Generate the config.h for Windows too and enable this there