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

Side by Side Diff: sdch/BUILD.gn

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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 | « net/websockets/websocket_stream_cookie_test.cc ('k') | testing/android/appurify_support.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 config("sdch_config") { 5 config("sdch_config") {
6 include_dirs = [ "open-vcdiff/src" ] 6 include_dirs = [ "open-vcdiff/src" ]
7 } 7 }
8 8
9 # gn orders flags on a target before flags from configs. The default config
10 # adds -Wall, and these flags have to be after -Wall -- so they need to come
11 # from a config and can't be on the target directly.
12 config("sdch_warnings") {
13 cflags = []
14 if (is_linux) {
15 # TODO(mostynb): remove this if open-vcdiff is ever updated for c++11:
16 cflags += [ "-Wno-deprecated-declarations" ]
17 }
18
19 if (is_clang) {
20 # sdch uses the pre-c++11 typedef-as-static_assert hack.
21 # https://code.google.com/p/open-vcdiff/issues/detail?id=44
22 cflags += [ "-Wno-unused-local-typedef" ]
23 }
24 }
25
9 static_library("sdch") { 26 static_library("sdch") {
10 sources = [ 27 sources = [
11 "logging_forward.h", 28 "logging_forward.h",
12 "open-vcdiff/src/addrcache.cc", 29 "open-vcdiff/src/addrcache.cc",
13 "open-vcdiff/src/blockhash.cc", 30 "open-vcdiff/src/blockhash.cc",
14 "open-vcdiff/src/blockhash.h", 31 "open-vcdiff/src/blockhash.h",
15 "open-vcdiff/src/checksum.h", 32 "open-vcdiff/src/checksum.h",
16 "open-vcdiff/src/codetable.cc", 33 "open-vcdiff/src/codetable.cc",
17 "open-vcdiff/src/codetable.h", 34 "open-vcdiff/src/codetable.h",
18 "open-vcdiff/src/compile_assert.h", 35 "open-vcdiff/src/compile_assert.h",
(...skipping 23 matching lines...) Expand all
42 "open-vcdiff/vsprojects/stdint.h", 59 "open-vcdiff/vsprojects/stdint.h",
43 ] 60 ]
44 61
45 public_configs = [ ":sdch_config" ] 62 public_configs = [ ":sdch_config" ]
46 63
47 deps = [ 64 deps = [
48 "//base", 65 "//base",
49 "//third_party/zlib", 66 "//third_party/zlib",
50 ] 67 ]
51 68
52 # gn orders flags on a target before flags from configs. The default config
53 # adds -Wall, and these flags have to be after -Wall -- so they need to come
54 # from a config and can't be on the target directly.
55 config("sdch_warnings") {
56 cflags = []
57 if (is_linux) {
58 # TODO(mostynb): remove this if open-vcdiff is ever updated for c++11:
59 cflags += [ "-Wno-deprecated-declarations" ]
60 }
61
62 if (is_clang) {
63 # sdch uses the pre-c++11 typedef-as-static_assert hack.
64 # https://code.google.com/p/open-vcdiff/issues/detail?id=44
65 cflags += [ "-Wno-unused-local-typedef" ]
66 }
67 }
68 configs += [ ":sdch_warnings" ] 69 configs += [ ":sdch_warnings" ]
69 70
70 if (is_linux || is_android) { 71 if (is_linux || is_android) {
71 include_dirs = [ "linux" ] 72 include_dirs = [ "linux" ]
72 } else if (is_ios) { 73 } else if (is_ios) {
73 include_dirs = [ "ios" ] 74 include_dirs = [ "ios" ]
74 } else if (is_mac) { 75 } else if (is_mac) {
75 include_dirs = [ "mac" ] 76 include_dirs = [ "mac" ]
76 } else if (is_win) { 77 } else if (is_win) {
77 include_dirs = [ "win" ] 78 include_dirs = [ "win" ]
(...skipping 12 matching lines...) Expand all
90 "sdch/logging_forward.h", 91 "sdch/logging_forward.h",
91 ] 92 ]
92 } else { 93 } else {
93 logging_file = rebase_path("logging_forward.h", root_build_dir) 94 logging_file = rebase_path("logging_forward.h", root_build_dir)
94 cflags = [ 95 cflags = [
95 "-include", 96 "-include",
96 logging_file, 97 logging_file,
97 ] 98 ]
98 } 99 }
99 } 100 }
OLDNEW
« no previous file with comments | « net/websockets/websocket_stream_cookie_test.cc ('k') | testing/android/appurify_support.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698