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("//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", |
11 ] | 11 ] |
12 proto_in_dir = "src/resources" | |
13 proto_out_dir = "third_party/libphonenumber/phonenumbers" | 12 proto_out_dir = "third_party/libphonenumber/phonenumbers" |
14 } | 13 } |
15 | 14 |
16 config("libphonenumber_config") { | 15 config("libphonenumber_config") { |
17 include_dirs = [ | 16 include_dirs = [ |
18 "src", | 17 "src", |
19 "$root_gen_dir/protoc_out/third_party/libphonenumber", | 18 "$root_gen_dir/third_party/libphonenumber", |
20 ] | 19 ] |
21 defines = [ "I18N_PHONENUMBERS_USE_ICU_REGEXP=1" ] | 20 defines = [ "I18N_PHONENUMBERS_USE_ICU_REGEXP=1" ] |
22 if (!is_android) { | 21 if (!is_android) { |
23 defines += [ "I18N_PHONENUMBERS_NO_THREAD_SAFETY=1" ] | 22 defines += [ "I18N_PHONENUMBERS_NO_THREAD_SAFETY=1" ] |
24 } | 23 } |
25 } | 24 } |
26 | 25 |
27 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_with
out_metadata | 26 # GYP version: third_party/libphonenumber/libphonenumber.gyp:libphonenumber_with
out_metadata |
28 static_library("libphonenumber_without_metadata") { | 27 static_library("libphonenumber_without_metadata") { |
29 sources = [ | 28 sources = [ |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 deps = [ | 90 deps = [ |
92 ":libphonenumber_without_metadata", | 91 ":libphonenumber_without_metadata", |
93 "//base", | 92 "//base", |
94 "//base/test:run_all_unittests", | 93 "//base/test:run_all_unittests", |
95 "//base/third_party/dynamic_annotations", | 94 "//base/third_party/dynamic_annotations", |
96 "//third_party/icu", | 95 "//third_party/icu", |
97 "//testing/gmock", | 96 "//testing/gmock", |
98 "//testing/gtest", | 97 "//testing/gtest", |
99 ] | 98 ] |
100 } | 99 } |
OLD | NEW |