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

Side by Side Diff: third_party/snappy/BUILD.gn

Issue 1276073004: Offline By Default (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add missing explicits. Created 5 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 | « shell/url_response_disk_cache_loader.cc ('k') | third_party/snappy/OWNERS » ('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) 2013 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 config("snappy_config") {
6 include_dirs = [ "src" ]
7
8 # These OS-specific generated headers were made by running the configure
9 # script offline.
10 if (is_win) {
11 include_dirs += [ "win32" ]
12 } else if (is_mac) {
13 include_dirs += [ "mac" ]
14 } else {
15 include_dirs += [ "linux" ]
16 }
17 }
18
19 static_library("snappy") {
20 sources = [
21 "src/snappy-internal.h",
22 "src/snappy-sinksource.cc",
23 "src/snappy-sinksource.h",
24 "src/snappy-stubs-internal.cc",
25 "src/snappy-stubs-internal.h",
26 "src/snappy.cc",
27 "src/snappy.h",
28 ]
29
30 configs -= [ "//build/config/compiler:chromium_code" ]
31 configs += [ "//build/config/compiler:no_chromium_code" ]
32 public_configs = [ ":snappy_config" ]
33
34 if (is_clang) {
35 # snappy-stubs-internal.h unapologetically has: using namespace std
36 # https://code.google.com/p/snappy/issues/detail?id=70
37 configs -= [ "//build/config/clang:extra_warnings" ]
38 }
39
40 if (is_win) {
41 # https://code.google.com/p/snappy/issues/detail?id=75
42 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
43 }
44 }
OLDNEW
« no previous file with comments | « shell/url_response_disk_cache_loader.cc ('k') | third_party/snappy/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698