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

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

Issue 2350843003: Remove GYP annotations from third_party GN files. (Closed)
Patch Set: Created 4 years, 3 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 | « third_party/libjingle/BUILD.gn ('k') | third_party/ub-uiautomator/BUILD.gn » ('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",
(...skipping 18 matching lines...) Expand all
29 29
30 config("libphonenumber_config_internal") { 30 config("libphonenumber_config_internal") {
31 if (is_clang) { 31 if (is_clang) {
32 cflags = [ 32 cflags = [
33 # https://github.com/googlei18n/libphonenumber/pull/741 33 # https://github.com/googlei18n/libphonenumber/pull/741
34 "-Wno-unused-private-field", 34 "-Wno-unused-private-field",
35 ] 35 ]
36 } 36 }
37 } 37 }
38 38
39 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_with out_metadata
40 static_library("libphonenumber_without_metadata") { 39 static_library("libphonenumber_without_metadata") {
41 sources = [ 40 sources = [
42 "dist/cpp/src/phonenumbers/alternate_format.cc", 41 "dist/cpp/src/phonenumbers/alternate_format.cc",
43 "dist/cpp/src/phonenumbers/asyoutypeformatter.cc", 42 "dist/cpp/src/phonenumbers/asyoutypeformatter.cc",
44 "dist/cpp/src/phonenumbers/base/strings/string_piece.cc", 43 "dist/cpp/src/phonenumbers/base/strings/string_piece.cc",
45 "dist/cpp/src/phonenumbers/default_logger.cc", 44 "dist/cpp/src/phonenumbers/default_logger.cc",
46 "dist/cpp/src/phonenumbers/logger.cc", 45 "dist/cpp/src/phonenumbers/logger.cc",
47 "dist/cpp/src/phonenumbers/phonenumber.cc", 46 "dist/cpp/src/phonenumbers/phonenumber.cc",
48 "dist/cpp/src/phonenumbers/phonenumbermatch.cc", 47 "dist/cpp/src/phonenumbers/phonenumbermatch.cc",
49 "dist/cpp/src/phonenumbers/phonenumbermatcher.cc", 48 "dist/cpp/src/phonenumbers/phonenumbermatcher.cc",
(...skipping 23 matching lines...) Expand all
73 ":proto", 72 ":proto",
74 ] 73 ]
75 deps = [ 74 deps = [
76 ":proto", 75 ":proto",
77 "//third_party/icu", 76 "//third_party/icu",
78 "//third_party/protobuf:protobuf_lite", 77 "//third_party/protobuf:protobuf_lite",
79 ] 78 ]
80 } 79 }
81 80
82 # Library used by clients that includes production metadata. 81 # Library used by clients that includes production metadata.
83 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber
84 static_library("libphonenumber") { 82 static_library("libphonenumber") {
85 sources = [ 83 sources = [
86 # Comment next line and uncomment the line after, if complete metadata 84 # Comment next line and uncomment the line after, if complete metadata
87 # (with examples) is needed. 85 # (with examples) is needed.
88 "dist/cpp/src/phonenumbers/lite_metadata.cc", 86 "dist/cpp/src/phonenumbers/lite_metadata.cc",
89 #"dist/cpp/src/phonenumbers/metadata.cc", 87 #"dist/cpp/src/phonenumbers/metadata.cc",
90 ] 88 ]
91 89
92 public_deps = [ 90 public_deps = [
93 ":libphonenumber_without_metadata", 91 ":libphonenumber_without_metadata",
94 ] 92 ]
95 } 93 }
96 94
97 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_unit tests
98 test("libphonenumber_unittests") { 95 test("libphonenumber_unittests") {
99 sources = [ 96 sources = [
100 "dist/cpp/src/phonenumbers/test_metadata.cc", 97 "dist/cpp/src/phonenumbers/test_metadata.cc",
101 "dist/cpp/test/phonenumbers/asyoutypeformatter_test.cc", 98 "dist/cpp/test/phonenumbers/asyoutypeformatter_test.cc",
102 "dist/cpp/test/phonenumbers/phonenumbermatch_test.cc", 99 "dist/cpp/test/phonenumbers/phonenumbermatch_test.cc",
103 "dist/cpp/test/phonenumbers/phonenumbermatcher_test.cc", 100 "dist/cpp/test/phonenumbers/phonenumbermatcher_test.cc",
104 "dist/cpp/test/phonenumbers/phonenumberutil_test.cc", 101 "dist/cpp/test/phonenumbers/phonenumberutil_test.cc",
105 "dist/cpp/test/phonenumbers/regexp_adapter_test.cc", 102 "dist/cpp/test/phonenumbers/regexp_adapter_test.cc",
106 "dist/cpp/test/phonenumbers/stringutil_test.cc", 103 "dist/cpp/test/phonenumbers/stringutil_test.cc",
107 "dist/cpp/test/phonenumbers/test_util.cc", 104 "dist/cpp/test/phonenumbers/test_util.cc",
108 "dist/cpp/test/phonenumbers/unicodestring_test.cc", 105 "dist/cpp/test/phonenumbers/unicodestring_test.cc",
109 ] 106 ]
110 107
111 configs += [ ":libphonenumber_config_internal" ] 108 configs += [ ":libphonenumber_config_internal" ]
112 109
113 include_dirs = [ "dist/cpp/test" ] 110 include_dirs = [ "dist/cpp/test" ]
114 111
115 deps = [ 112 deps = [
116 ":libphonenumber_without_metadata", 113 ":libphonenumber_without_metadata",
117 "//base", 114 "//base",
118 "//base/test:run_all_unittests", 115 "//base/test:run_all_unittests",
119 "//base/third_party/dynamic_annotations", 116 "//base/third_party/dynamic_annotations",
120 "//testing/gmock", 117 "//testing/gmock",
121 "//testing/gtest", 118 "//testing/gtest",
122 "//third_party/icu", 119 "//third_party/icu",
123 ] 120 ]
124 } 121 }
OLDNEW
« no previous file with comments | « third_party/libjingle/BUILD.gn ('k') | third_party/ub-uiautomator/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698