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

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

Issue 722513003: Enable -Wunused-local-typedef (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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 | « sdch/sdch.gyp ('k') | third_party/libphonenumber/libphonenumber.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 import("//third_party/protobuf/proto_library.gni") 5 import("//third_party/protobuf/proto_library.gni")
6 6
7 proto_library("proto") { 7 proto_library("proto") {
8 sources = [ 8 sources = [
9 "src/resources/phonemetadata.proto", 9 "src/resources/phonemetadata.proto",
10 "src/resources/phonenumber.proto", 10 "src/resources/phonenumber.proto",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 "src/test/phonenumbers/phonenumbermatcher_test.cc", 85 "src/test/phonenumbers/phonenumbermatcher_test.cc",
86 "src/test/phonenumbers/phonenumberutil_test.cc", 86 "src/test/phonenumbers/phonenumberutil_test.cc",
87 "src/test/phonenumbers/regexp_adapter_test.cc", 87 "src/test/phonenumbers/regexp_adapter_test.cc",
88 "src/test/phonenumbers/stringutil_test.cc", 88 "src/test/phonenumbers/stringutil_test.cc",
89 "src/test/phonenumbers/test_util.cc", 89 "src/test/phonenumbers/test_util.cc",
90 "src/test/phonenumbers/unicodestring_test.cc", 90 "src/test/phonenumbers/unicodestring_test.cc",
91 ] 91 ]
92 92
93 include_dirs = [ "src/test" ] 93 include_dirs = [ "src/test" ]
94 94
95 # gn orders flags on a target before flags from configs. The default config
96 # adds -Wall, and these flags have to be after -Wall -- so they need to come
97 # from a config and can't be on the target directly.
98 config("libphonenumber_unittests_warnings") {
99 if (is_clang) {
100 cflags = [ "-Wno-unused-local-typedef" ]
101 }
102 }
103 configs += [ ":libphonenumber_unittests_warnings" ]
104
95 deps = [ 105 deps = [
96 ":libphonenumber_without_metadata", 106 ":libphonenumber_without_metadata",
97 "//base", 107 "//base",
98 "//base/test:run_all_unittests", 108 "//base/test:run_all_unittests",
99 "//base/third_party/dynamic_annotations", 109 "//base/third_party/dynamic_annotations",
100 "//third_party/icu", 110 "//third_party/icu",
101 "//testing/gmock", 111 "//testing/gmock",
102 "//testing/gtest", 112 "//testing/gtest",
103 ] 113 ]
104 } 114 }
OLDNEW
« no previous file with comments | « sdch/sdch.gyp ('k') | third_party/libphonenumber/libphonenumber.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698