OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 # Define an "os_include" variable that points at the OS-specific generated | 8 # Define an "os_include" variable that points at the OS-specific generated |
9 # headers. These were generated by running the configure script offline. | 9 # headers. These were generated by running the configure script offline. |
10 ['os_posix == 1 and OS != "mac"', { | 10 ['os_posix == 1 and OS != "mac"', { |
(...skipping 12 matching lines...) Expand all Loading... | |
23 '<(os_include)', | 23 '<(os_include)', |
24 'src', | 24 'src', |
25 '../..', | 25 '../..', |
26 ], | 26 ], |
27 'direct_dependent_settings': { | 27 'direct_dependent_settings': { |
28 'include_dirs': [ | 28 'include_dirs': [ |
29 '<(os_include)', | 29 '<(os_include)', |
30 'src', | 30 'src', |
31 ], | 31 ], |
32 }, | 32 }, |
33 'variables': { | |
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 | |
37 '-Wheader-hygiene', | |
38 ], | |
39 }, | |
33 'sources': [ | 40 'sources': [ |
34 'src/snappy-internal.h', | 41 'src/snappy-internal.h', |
35 'src/snappy-sinksource.cc', | 42 'src/snappy-sinksource.cc', |
36 'src/snappy-sinksource.h', | 43 'src/snappy-sinksource.h', |
37 'src/snappy-stubs-internal.cc', | 44 'src/snappy-stubs-internal.cc', |
38 'src/snappy-stubs-internal.h', | 45 'src/snappy-stubs-internal.h', |
39 'src/snappy.cc', | 46 'src/snappy.cc', |
40 'src/snappy.h', | 47 'src/snappy.h', |
41 ], | 48 ], |
42 'conditions': [ | 49 'conditions': [ |
43 ['clang == 1', { | |
44 # snappy-stubs-internal.h unapologetically has: using namespace std | |
45 # https://code.google.com/p/snappy/issues/detail?id=70 | |
46 'xcode_settings': { | |
47 'WARNING_CFLAGS!': [ '-Wheader-hygiene' ], | |
48 }, | |
49 'cflags': [ '-Wno-header-hygiene' ], | |
50 }], | |
51 ['OS=="linux" or OS=="mac"', { | 50 ['OS=="linux" or OS=="mac"', { |
52 'defines': [ | 51 'defines': [ |
53 # TODO(tfarina): Only Mac and Linux has the generated config.h for | 52 # TODO(tfarina): Only Mac and Linux has the generated config.h for |
54 # now. Generate the config.h for Windows too and enable this there | 53 # now. Generate the config.h for Windows too and enable this there |
55 # as well. | 54 # as well. |
56 'HAVE_CONFIG_H=1', | 55 'HAVE_CONFIG_H=1', |
57 ], | 56 ], |
58 }], | 57 }], |
59 ['OS=="win"', { | 58 ['OS=="win"', { |
60 # Signed/unsigned comparison | 59 # Signed/unsigned comparison |
(...skipping 13 matching lines...) Expand all Loading... | |
74 'src/snappy-test.cc', | 73 'src/snappy-test.cc', |
75 'src/snappy-test.h', | 74 'src/snappy-test.h', |
76 'src/snappy_unittest.cc', | 75 'src/snappy_unittest.cc', |
77 ], | 76 ], |
78 'dependencies': [ | 77 'dependencies': [ |
79 'snappy', | 78 'snappy', |
80 '../../base/base.gyp:base', | 79 '../../base/base.gyp:base', |
81 '../../testing/gtest.gyp:gtest', | 80 '../../testing/gtest.gyp:gtest', |
82 '../../third_party/zlib/zlib.gyp:zlib', | 81 '../../third_party/zlib/zlib.gyp:zlib', |
83 ], | 82 ], |
83 'variables': { | |
84 'clang_warning_flags': [ 'Wno-return-type' ], | |
hans
2014/08/01 21:23:29
There's a dash missing here.
Nico
2014/08/01 21:25:06
Hm, so I guess if this still gets green runs, this
Nico
2014/08/01 21:35:20
…looks like not bot builds this target. So I added
| |
85 'clang_warning_flags_unset': [ '-Wheader-hygiene' ], | |
86 }, | |
84 'conditions': [ | 87 'conditions': [ |
85 ['OS=="linux" or OS=="mac"', { | 88 ['OS=="linux" or OS=="mac"', { |
86 'defines': [ | 89 'defines': [ |
87 # TODO(tfarina): Only Mac and Linux has the generated config.h for | 90 # TODO(tfarina): Only Mac and Linux has the generated config.h for |
88 # now. Generate the config.h for Windows too and enable this there | 91 # now. Generate the config.h for Windows too and enable this there |
89 # as well. | 92 # as well. |
90 'HAVE_CONFIG_H=1', | 93 'HAVE_CONFIG_H=1', |
91 ], | 94 ], |
92 }], | 95 }], |
93 ['clang == 1', { | |
94 'cflags': [ | |
95 '-Wno-return-type', | |
96 '-Wno-header-hygiene' | |
97 ], | |
98 }], | |
99 ], | 96 ], |
100 }, | 97 }, |
101 ], | 98 ], |
102 } | 99 } |
OLD | NEW |