OLD | NEW |
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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
7 | 7 |
8 proto_library("proto") { | 8 proto_library("proto") { |
9 sources = [ | 9 sources = [ |
10 "src/resources/phonemetadata.proto", | 10 "src/resources/phonemetadata.proto", |
(...skipping 27 matching lines...) Expand all Loading... |
38 "src/phonenumbers/regexp_adapter_icu.cc", | 38 "src/phonenumbers/regexp_adapter_icu.cc", |
39 "src/phonenumbers/regexp_cache.cc", | 39 "src/phonenumbers/regexp_cache.cc", |
40 "src/phonenumbers/string_byte_sink.cc", | 40 "src/phonenumbers/string_byte_sink.cc", |
41 "src/phonenumbers/stringutil.cc", | 41 "src/phonenumbers/stringutil.cc", |
42 "src/phonenumbers/unicodestring.cc", | 42 "src/phonenumbers/unicodestring.cc", |
43 "src/phonenumbers/utf/rune.c", | 43 "src/phonenumbers/utf/rune.c", |
44 "src/phonenumbers/utf/unicodetext.cc", | 44 "src/phonenumbers/utf/unicodetext.cc", |
45 "src/phonenumbers/utf/unilib.cc", | 45 "src/phonenumbers/utf/unilib.cc", |
46 ] | 46 ] |
47 | 47 |
48 # TODO(scottmg): Temporary until https://codereview.appspot.com/134650043/ | |
49 # lands and rolls. http://crbug.com/335824 | |
50 configs -= [ "//build/config/compiler:chromium_code" ] | |
51 configs += [ "//build/config/compiler:no_chromium_code" ] | |
52 | |
53 public_configs = [ ":libphonenumber_config" ] | 48 public_configs = [ ":libphonenumber_config" ] |
54 | 49 |
55 public_deps = [ | 50 public_deps = [ |
56 ":proto", | 51 ":proto", |
57 ] | 52 ] |
58 deps = [ | 53 deps = [ |
59 ":proto", | 54 ":proto", |
60 "//third_party/icu", | 55 "//third_party/icu", |
61 "//third_party/protobuf:protobuf_lite", | 56 "//third_party/protobuf:protobuf_lite", |
62 ] | 57 ] |
(...skipping 21 matching lines...) Expand all Loading... |
84 "src/test/phonenumbers/asyoutypeformatter_test.cc", | 79 "src/test/phonenumbers/asyoutypeformatter_test.cc", |
85 "src/test/phonenumbers/phonenumbermatch_test.cc", | 80 "src/test/phonenumbers/phonenumbermatch_test.cc", |
86 "src/test/phonenumbers/phonenumbermatcher_test.cc", | 81 "src/test/phonenumbers/phonenumbermatcher_test.cc", |
87 "src/test/phonenumbers/phonenumberutil_test.cc", | 82 "src/test/phonenumbers/phonenumberutil_test.cc", |
88 "src/test/phonenumbers/regexp_adapter_test.cc", | 83 "src/test/phonenumbers/regexp_adapter_test.cc", |
89 "src/test/phonenumbers/stringutil_test.cc", | 84 "src/test/phonenumbers/stringutil_test.cc", |
90 "src/test/phonenumbers/test_util.cc", | 85 "src/test/phonenumbers/test_util.cc", |
91 "src/test/phonenumbers/unicodestring_test.cc", | 86 "src/test/phonenumbers/unicodestring_test.cc", |
92 ] | 87 ] |
93 | 88 |
| 89 # libphonenumber needs to fix their ODR violations. http://crbug.com/456021 |
| 90 configs += [ "//build/config/compiler:compiler_allow_odr_violations" ] |
| 91 |
94 include_dirs = [ "src/test" ] | 92 include_dirs = [ "src/test" ] |
95 | 93 |
96 deps = [ | 94 deps = [ |
97 ":libphonenumber_without_metadata", | 95 ":libphonenumber_without_metadata", |
98 "//base", | 96 "//base", |
99 "//base/test:run_all_unittests", | 97 "//base/test:run_all_unittests", |
100 "//base/third_party/dynamic_annotations", | 98 "//base/third_party/dynamic_annotations", |
101 "//third_party/icu", | 99 "//third_party/icu", |
102 "//testing/gmock", | 100 "//testing/gmock", |
103 "//testing/gtest", | 101 "//testing/gtest", |
104 ] | 102 ] |
105 } | 103 } |
OLD | NEW |