Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/snappy/snappy.gyp

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/smhasher/smhasher.gyp ('k') | third_party/sqlite/sqlite.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 {
6 'variables': {
7 'conditions': [
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"', {
11 'os_include': 'linux'
12 }],
13 ['OS=="mac"', {'os_include': 'mac'}],
14 ['OS=="win"', {'os_include': 'win32'}],
15 ],
16 'use_system_libxml%': 0,
17 },
18 'targets': [
19 {
20 'target_name': 'snappy',
21 'type': 'static_library',
22 'include_dirs': [
23 '<(os_include)',
24 'src',
25 '../..',
26 ],
27 'direct_dependent_settings': {
28 'include_dirs': [
29 '<(os_include)',
30 'src',
31 ],
32 },
33 'variables': {
34 'clang_warning_flags': [
35 # ComputeTable is unused,
36 # https://code.google.com/p/snappy/issues/detail?id=96
37 '-Wno-unused-function',
38 ],
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
42 '-Wheader-hygiene',
43 ],
44 },
45 'sources': [
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',
51 'src/snappy.cc',
52 'src/snappy.h',
53 ],
54 'conditions': [
55 ['OS=="linux" or OS=="mac"', {
56 'defines': [
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
59 # as well.
60 'HAVE_CONFIG_H=1',
61 ],
62 }],
63 ['OS=="win"', {
64 # Signed/unsigned comparison
65 'msvs_disabled_warnings': [
66 # https://code.google.com/p/snappy/issues/detail?id=71
67 4018,
68 # https://code.google.com/p/snappy/issues/detail?id=75
69 4267,
70 ],
71 }],
72 ],
73 },
74 {
75 'target_name': 'snappy_unittest',
76 'type': 'executable',
77 'sources': [
78 'src/snappy-test.cc',
79 'src/snappy-test.h',
80 'src/snappy_unittest.cc',
81 ],
82 'dependencies': [
83 'snappy',
84 '../../base/base.gyp:base',
85 '../../testing/gtest.gyp:gtest',
86 '../../third_party/zlib/zlib.gyp:zlib',
87 ],
88 'variables': {
89 'clang_warning_flags': [ '-Wno-return-type' ],
90 'clang_warning_flags_unset': [ '-Wheader-hygiene' ],
91 },
92 'conditions': [
93 ['OS=="linux" or OS=="mac"', {
94 'defines': [
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
97 # as well.
98 'HAVE_CONFIG_H=1',
99 ],
100 }],
101 ],
102 },
103 ],
104 }
OLDNEW
« no previous file with comments | « third_party/smhasher/smhasher.gyp ('k') | third_party/sqlite/sqlite.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698