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

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

Issue 1553033002: Roll chromium_revision d66326c..4df108a (367167:367307) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Added references to bugs. Created 4 years, 11 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 | « talk/media/devices/carbonvideorenderer.cc ('k') | third_party/gflags/gflags.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 (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 if (is_win) { 9 if (is_win) {
10 gflags_gen_arch_root = "gen/win" 10 gflags_gen_arch_root = "gen/win"
11 } else { 11 } else {
12 gflags_gen_arch_root = "gen/posix" 12 gflags_gen_arch_root = "gen/posix"
13 } 13 }
14 14
15 config("gflags_config") { 15 config("gflags_config") {
16 include_dirs = [ 16 include_dirs = [
17 "$gflags_gen_arch_root/include", # For configured files. 17 "$gflags_gen_arch_root/include", # For configured files.
18 "src", # For everything else. 18 "src", # For everything else.
19 ] 19 ]
20 20
21 defines = [ 21 defines = [
22 # These macros exist so flags and symbols are properly exported when 22 # These macros exist so flags and symbols are properly exported when
23 # building DLLs. Since we don't build DLLs, we need to disable them. 23 # building DLLs. Since we don't build DLLs, we need to disable them.
24 "GFLAGS_DLL_DECL=", 24 "GFLAGS_DLL_DECL=",
25 "GFLAGS_DLL_DECLARE_FLAG=", 25 "GFLAGS_DLL_DECLARE_FLAG=",
26 "GFLAGS_DLL_DEFINE_FLAG=", 26 "GFLAGS_DLL_DEFINE_FLAG=",
27 ] 27 ]
28
29 # GN orders flags on a target before flags from configs. The default config
30 # adds -Wall, and this flag have to be after -Wall -- so they need to
31 # come from a config and can't be on the target directly.
32 if (is_clang) {
33 cflags = [ "-Wno-unused-local-typedef" ]
34 }
28 } 35 }
29 36
30 source_set("gflags") { 37 source_set("gflags") {
31 sources = [ 38 sources = [
32 "src/gflags.cc", 39 "src/gflags.cc",
33 "src/gflags_completions.cc", 40 "src/gflags_completions.cc",
34 "src/gflags_reporting.cc", 41 "src/gflags_reporting.cc",
35 ] 42 ]
36 if (is_win) { 43 if (is_win) {
37 sources += [ "src/windows/port.cc" ] 44 sources += [ "src/windows/port.cc" ]
38 45
39 cflags = [ 46 cflags = [
40 "/wd4005", # WIN32_LEAN_AND_MEAN. 47 "/wd4005", # WIN32_LEAN_AND_MEAN.
41 "/wd4267", # Conversion from size_t to "type". 48 "/wd4267", # Conversion from size_t to "type".
42 ] 49 ]
43 } 50 }
44 51
45 include_dirs = [ 52 include_dirs = [ "$gflags_gen_arch_root/include/private" ] # For config.h
46 "$gflags_gen_arch_root/include/private", # For config.h
47 ]
48 53
49 public_configs = [ ":gflags_config" ] 54 public_configs = [ ":gflags_config" ]
50 55
51 configs -= [ "//build/config/compiler:chromium_code" ] 56 configs -= [ "//build/config/compiler:chromium_code" ]
52 configs += [ "//build/config/compiler:no_chromium_code" ] 57 configs += [ "//build/config/compiler:no_chromium_code" ]
53 58
54 if (is_clang) { 59 if (is_clang) {
55 # TODO(andrew): Look into fixing this warning upstream: 60 # TODO(andrew): Look into fixing this warning upstream:
56 # http://code.google.com/p/webrtc/issues/detail?id=760 61 # http://code.google.com/p/webrtc/issues/detail?id=760
57 configs -= [ "//build/config/clang:extra_warnings" ] 62 configs -= [ "//build/config/clang:extra_warnings" ]
58 } 63 }
59 } 64 }
OLDNEW
« no previous file with comments | « talk/media/devices/carbonvideorenderer.cc ('k') | third_party/gflags/gflags.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698