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

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

Issue 595073002: Replace forward_dependent_configs with public_deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/libjpeg/BUILD.gn ('k') | third_party/libpng/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("//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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 "src/phonenumbers/utf/rune.c", 42 "src/phonenumbers/utf/rune.c",
43 "src/phonenumbers/utf/unicodetext.cc", 43 "src/phonenumbers/utf/unicodetext.cc",
44 "src/phonenumbers/utf/unilib.cc", 44 "src/phonenumbers/utf/unilib.cc",
45 ] 45 ]
46 46
47 # TODO(scottmg): Temporary until https://codereview.appspot.com/134650043/ 47 # TODO(scottmg): Temporary until https://codereview.appspot.com/134650043/
48 # lands and rolls. http://crbug.com/335824 48 # lands and rolls. http://crbug.com/335824
49 configs -= [ "//build/config/compiler:chromium_code" ] 49 configs -= [ "//build/config/compiler:chromium_code" ]
50 configs += [ "//build/config/compiler:no_chromium_code" ] 50 configs += [ "//build/config/compiler:no_chromium_code" ]
51 51
52 direct_dependent_configs = [ ":libphonenumber_config" ] 52 public_configs = [ ":libphonenumber_config" ]
53 53
54 public_deps = [
55 ":proto",
56 ]
54 deps = [ 57 deps = [
55 ":proto", 58 ":proto",
56 "//third_party/icu", 59 "//third_party/icu",
57 "//third_party/protobuf:protobuf_lite", 60 "//third_party/protobuf:protobuf_lite",
58 ] 61 ]
59
60 forward_dependent_configs_from = [ ":proto" ]
61 } 62 }
62 63
63 # Library used by clients that includes production metadata. 64 # Library used by clients that includes production metadata.
64 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber 65 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber
65 static_library("libphonenumber") { 66 static_library("libphonenumber") {
66 sources = [ 67 sources = [
67 # Comment next line and uncomment the line after, if complete metadata 68 # Comment next line and uncomment the line after, if complete metadata
68 # (with examples) is needed. 69 # (with examples) is needed.
69 "src/phonenumbers/lite_metadata.cc", 70 "src/phonenumbers/lite_metadata.cc",
70 #"src/phonenumbers/metadata.cc", 71 #"src/phonenumbers/metadata.cc",
71 ] 72 ]
72 73
73 deps = [ 74 public_deps = [
74 ":libphonenumber_without_metadata", 75 ":libphonenumber_without_metadata",
75 ] 76 ]
76 forward_dependent_configs_from = deps
77 } 77 }
78 78
79 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_unit tests 79 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_unit tests
80 test("libphonenumber_unittests") { 80 test("libphonenumber_unittests") {
81 sources = [ 81 sources = [
82 "src/phonenumbers/test_metadata.cc", 82 "src/phonenumbers/test_metadata.cc",
83 "src/test/phonenumbers/asyoutypeformatter_test.cc", 83 "src/test/phonenumbers/asyoutypeformatter_test.cc",
84 "src/test/phonenumbers/phonenumbermatch_test.cc", 84 "src/test/phonenumbers/phonenumbermatch_test.cc",
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 deps = [ 95 deps = [
96 ":libphonenumber_without_metadata", 96 ":libphonenumber_without_metadata",
97 "//base", 97 "//base",
98 "//base/test:run_all_unittests", 98 "//base/test:run_all_unittests",
99 "//base/third_party/dynamic_annotations", 99 "//base/third_party/dynamic_annotations",
100 "//third_party/icu", 100 "//third_party/icu",
101 "//testing/gmock", 101 "//testing/gmock",
102 "//testing/gtest", 102 "//testing/gtest",
103 ] 103 ]
104 } 104 }
OLDNEW
« no previous file with comments | « third_party/libjpeg/BUILD.gn ('k') | third_party/libpng/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698