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

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

Issue 1817083002: Revert of [libphonenumber] Run tests on swarming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « testing/buildbot/gn_isolate_map.pyl ('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("//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 "dist/resources/phonemetadata.proto", 10 "dist/resources/phonemetadata.proto",
11 "dist/resources/phonenumber.proto", 11 "dist/resources/phonenumber.proto",
12 ] 12 ]
13 proto_out_dir = "third_party/libphonenumber/phonenumbers" 13 proto_out_dir = "third_party/libphonenumber/phonenumbers"
14 } 14 }
15 15
16 config("libphonenumber_config") { 16 config("libphonenumber_config") {
17 include_dirs = [ 17 include_dirs = [
18 "dist/cpp/src", 18 "dist/cpp/src",
19 "$root_gen_dir/third_party/libphonenumber", 19 "$root_gen_dir/third_party/libphonenumber",
20 ] 20 ]
21 defines = [ 21 defines = [ "I18N_PHONENUMBERS_USE_ICU_REGEXP=1" ]
22 "I18N_PHONENUMBERS_USE_ALTERNATE_FORMATS=1",
23 "I18N_PHONENUMBERS_USE_ICU_REGEXP=1",
24 ]
25 if (!is_android) { 22 if (!is_android) {
26 defines += [ "I18N_PHONENUMBERS_NO_THREAD_SAFETY=1" ] 23 defines += [ "I18N_PHONENUMBERS_NO_THREAD_SAFETY=1" ]
27 } 24 }
28 } 25 }
29 26
30 config("libphonenumber_config_internal") { 27 config("libphonenumber_config_internal") {
31 if (is_clang) { 28 if (is_clang) {
32 cflags = [ 29 cflags = [
33 # https://github.com/googlei18n/libphonenumber/pull/741 30 # https://github.com/googlei18n/libphonenumber/pull/741
34 "-Wno-unused-private-field", 31 "-Wno-unused-private-field",
35 ] 32 ]
36 } 33 }
37 } 34 }
38 35
39 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_with out_metadata 36 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_with out_metadata
40 static_library("libphonenumber_without_metadata") { 37 static_library("libphonenumber_without_metadata") {
41 sources = [ 38 sources = [
42 "dist/cpp/src/phonenumbers/alternate_format.cc",
43 "dist/cpp/src/phonenumbers/asyoutypeformatter.cc", 39 "dist/cpp/src/phonenumbers/asyoutypeformatter.cc",
44 "dist/cpp/src/phonenumbers/base/strings/string_piece.cc", 40 "dist/cpp/src/phonenumbers/base/strings/string_piece.cc",
45 "dist/cpp/src/phonenumbers/default_logger.cc", 41 "dist/cpp/src/phonenumbers/default_logger.cc",
46 "dist/cpp/src/phonenumbers/logger.cc", 42 "dist/cpp/src/phonenumbers/logger.cc",
47 "dist/cpp/src/phonenumbers/phonenumber.cc", 43 "dist/cpp/src/phonenumbers/phonenumber.cc",
48 "dist/cpp/src/phonenumbers/phonenumbermatch.cc", 44 "dist/cpp/src/phonenumbers/phonenumbermatch.cc",
49 "dist/cpp/src/phonenumbers/phonenumbermatcher.cc", 45 "dist/cpp/src/phonenumbers/phonenumbermatcher.cc",
50 "dist/cpp/src/phonenumbers/phonenumberutil.cc", 46 "dist/cpp/src/phonenumbers/phonenumberutil.cc",
51 "dist/cpp/src/phonenumbers/regexp_adapter_icu.cc", 47 "dist/cpp/src/phonenumbers/regexp_adapter_icu.cc",
52 "dist/cpp/src/phonenumbers/regexp_cache.cc", 48 "dist/cpp/src/phonenumbers/regexp_cache.cc",
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 92
97 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_unit tests 93 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_unit tests
98 test("libphonenumber_unittests") { 94 test("libphonenumber_unittests") {
99 sources = [ 95 sources = [
100 "dist/cpp/src/phonenumbers/test_metadata.cc", 96 "dist/cpp/src/phonenumbers/test_metadata.cc",
101 "dist/cpp/test/phonenumbers/asyoutypeformatter_test.cc", 97 "dist/cpp/test/phonenumbers/asyoutypeformatter_test.cc",
102 "dist/cpp/test/phonenumbers/phonenumbermatch_test.cc", 98 "dist/cpp/test/phonenumbers/phonenumbermatch_test.cc",
103 "dist/cpp/test/phonenumbers/phonenumbermatcher_test.cc", 99 "dist/cpp/test/phonenumbers/phonenumbermatcher_test.cc",
104 "dist/cpp/test/phonenumbers/phonenumberutil_test.cc", 100 "dist/cpp/test/phonenumbers/phonenumberutil_test.cc",
105 "dist/cpp/test/phonenumbers/regexp_adapter_test.cc", 101 "dist/cpp/test/phonenumbers/regexp_adapter_test.cc",
106 "dist/cpp/test/phonenumbers/regexp_cache_test.cc",
107 "dist/cpp/test/phonenumbers/stringutil_test.cc", 102 "dist/cpp/test/phonenumbers/stringutil_test.cc",
108 "dist/cpp/test/phonenumbers/test_util.cc", 103 "dist/cpp/test/phonenumbers/test_util.cc",
109 "dist/cpp/test/phonenumbers/unicodestring_test.cc", 104 "dist/cpp/test/phonenumbers/unicodestring_test.cc",
110 "dist/cpp/test/phonenumbers/utf/unicodetext_test.cc",
111 ] 105 ]
112 106
113 configs += [ ":libphonenumber_config_internal" ] 107 configs += [ ":libphonenumber_config_internal" ]
114 108
115 include_dirs = [ "dist/cpp/test" ] 109 include_dirs = [ "dist/cpp/test" ]
116 110
117 data = [
118 "dist/resources/test/",
119 ]
120
121 deps = [ 111 deps = [
122 ":libphonenumber_without_metadata", 112 ":libphonenumber_without_metadata",
123 "//base", 113 "//base",
124 "//base/test:run_all_unittests", 114 "//base/test:run_all_unittests",
125 "//base/third_party/dynamic_annotations", 115 "//base/third_party/dynamic_annotations",
126 "//testing/gmock", 116 "//testing/gmock",
127 "//testing/gtest", 117 "//testing/gtest",
128 "//third_party/icu", 118 "//third_party/icu",
129 ] 119 ]
130 } 120 }
OLDNEW
« no previous file with comments | « testing/buildbot/gn_isolate_map.pyl ('k') | third_party/libphonenumber/libphonenumber.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698