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

Side by Side Diff: third_party/libphonenumber/libphonenumber.gyp

Issue 10412031: Roll libphonenumber r456 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « third_party/libphonenumber/README.chromium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'include_dirs': [ 7 'include_dirs': [
8 '../..', # add it first, so src/base headers are used instead of the ones 8 '../..', # add it first, so src/base headers are used instead of the ones
9 # brought with the library as cc files would be taken from the 9 # brought with the library as cc files would be taken from the
10 # main chrome tree as well. 10 # main chrome tree as well.
11 'src', 11 'src',
12 'src/test', 12 'src/test',
13 # The libphonenumber source (and test code) expects the 13 # The libphonenumber source (and test code) expects the
14 # generated protocol headers to be available with "phonenumbers" include 14 # generated protocol headers to be available with "phonenumbers" include
15 # path, e.g. #include "phonenumbers/foo.pb.h". 15 # path, e.g. #include "phonenumbers/foo.pb.h".
16 '<(SHARED_INTERMEDIATE_DIR)/protoc_out/third_party/libphonenumber', 16 '<(SHARED_INTERMEDIATE_DIR)/protoc_out/third_party/libphonenumber',
17 ], 17 ],
18 'defines': [ 18 'defines': [
19 'USE_HASH_MAP=1', 19 'USE_HASH_MAP=1',
20 'USE_GOOGLE_BASE=1', 20 'USE_GOOGLE_BASE=1',
21 'USE_ICU_REGEXP=1', 21 'USE_ICU_REGEXP=1',
22 ], 22 ],
23 }, 23 },
24 'includes': [ 24 'includes': [
25 '../../build/win_precompile.gypi', 25 '../../build/win_precompile.gypi',
26 ], 26 ],
27 'targets': [{ 27 'targets': [{
28 'target_name': 'libphonenumber', 28 # Build a library without metadata so that we can use it with both testing
29 # and production metadata. This library should not be used by clients.
30 'target_name': 'libphonenumber_without_metadata',
29 'type': 'static_library', 31 'type': 'static_library',
30 'dependencies': [ 32 'dependencies': [
31 '../icu/icu.gyp:icui18n', 33 '../icu/icu.gyp:icui18n',
32 '../icu/icu.gyp:icuuc', 34 '../icu/icu.gyp:icuuc',
33 '../../base/base.gyp:base', 35 '../../base/base.gyp:base',
34 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations', 36 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations',
35 ], 37 ],
36 'sources': [ 38 'sources': [
37 'src/phonenumbers/asyoutypeformatter.cc', 39 'src/phonenumbers/asyoutypeformatter.cc',
38 'src/phonenumbers/default_logger.cc', 40 'src/phonenumbers/default_logger.cc',
39 # Comment next line and uncomment the line after, if complete metadata
40 # (with examples) is needed.
41 'src/phonenumbers/lite_metadata.cc',
42 #'src/phonenumbers/metadata.cc',
43 'src/phonenumbers/logger.cc', 41 'src/phonenumbers/logger.cc',
44 'src/phonenumbers/phonenumber.cc', 42 'src/phonenumbers/phonenumber.cc',
45 'src/phonenumbers/phonenumbermatch.cc', 43 'src/phonenumbers/phonenumbermatch.cc',
46 'src/phonenumbers/phonenumbermatcher.cc', 44 'src/phonenumbers/phonenumbermatcher.cc',
47 'src/phonenumbers/phonenumberutil.cc', 45 'src/phonenumbers/phonenumberutil.cc',
48 'src/phonenumbers/regexp_adapter_icu.cc', 46 'src/phonenumbers/regexp_adapter_icu.cc',
49 'src/phonenumbers/regexp_cache.cc', 47 'src/phonenumbers/regexp_cache.cc',
48 'src/phonenumbers/string_byte_sink.cc',
50 'src/phonenumbers/stringutil.cc', 49 'src/phonenumbers/stringutil.cc',
51 'src/phonenumbers/unicodestring.cc', 50 'src/phonenumbers/unicodestring.cc',
52 'src/phonenumbers/utf/rune.c', 51 'src/phonenumbers/utf/rune.c',
53 'src/phonenumbers/utf/unicodetext.cc', 52 'src/phonenumbers/utf/unicodetext.cc',
54 'src/phonenumbers/utf/unilib.cc', 53 'src/phonenumbers/utf/unilib.cc',
55 'src/resources/phonemetadata.proto', 54 'src/resources/phonemetadata.proto',
56 'src/resources/phonenumber.proto', 55 'src/resources/phonenumber.proto',
57 ], 56 ],
58 'direct_dependent_settings': {
59 'include_dirs': [
60 '<(SHARED_INTERMEDIATE_DIR)/protoc_out/third_party/libphonenumber',
61 ],
62 },
63 'variables': { 57 'variables': {
64 'proto_in_dir': 'src/resources', 58 'proto_in_dir': 'src/resources',
65 'proto_out_dir': 'third_party/libphonenumber/phonenumbers', 59 'proto_out_dir': 'third_party/libphonenumber/phonenumbers',
66 }, 60 },
67 'includes': [ '../../build/protoc.gypi' ], 61 'includes': [ '../../build/protoc.gypi' ],
68 'conditions': [ 62 'conditions': [
69 ['OS=="win"', { 63 ['OS=="win"', {
70 'action': [ 64 'action': [
71 '/wo4309', 65 '/wo4309',
72 ], 66 ],
73 }], 67 }],
74 ], 68 ],
75 }, 69 },
70 # Library used by clients that includes production metadata.
Ilya Sherman 2012/05/25 19:56:08 nit: Please move this line immediately above the "
Philippe 2012/05/29 07:47:47 Done.
71 {
72 'target_name': 'libphonenumber',
73 'type': 'static_library',
74 'dependencies': [
75 'libphonenumber_without_metadata',
76 ],
77 'sources': [
78 # Comment next line and uncomment the line after, if complete metadata
79 # (with examples) is needed.
80 'src/phonenumbers/lite_metadata.cc',
81 #'src/phonenumbers/metadata.cc',
82 ],
83 'direct_dependent_settings': {
84 'include_dirs': [
85 '<(SHARED_INTERMEDIATE_DIR)/protoc_out/third_party/libphonenumber',
86 ],
87 },
88 },
76 { 89 {
77 'target_name': 'libphonenumber_unittests', 90 'target_name': 'libphonenumber_unittests',
78 'type': 'executable', 91 'type': 'executable',
79 'sources': [ 92 'sources': [
80 'src/phonenumbers/test_metadata.cc', 93 'src/phonenumbers/test_metadata.cc',
81 'src/test/phonenumbers/asyoutypeformatter_test.cc', 94 'src/test/phonenumbers/asyoutypeformatter_test.cc',
82 'src/test/phonenumbers/phonenumbermatch_test.cc', 95 'src/test/phonenumbers/phonenumbermatch_test.cc',
83 'src/test/phonenumbers/phonenumbermatcher_test.cc', 96 'src/test/phonenumbers/phonenumbermatcher_test.cc',
84 'src/test/phonenumbers/phonenumberutil_test.cc', 97 'src/test/phonenumbers/phonenumberutil_test.cc',
85 'src/test/phonenumbers/regexp_adapter_test.cc', 98 'src/test/phonenumbers/regexp_adapter_test.cc',
86 'src/test/phonenumbers/stringutil_test.cc', 99 'src/test/phonenumbers/stringutil_test.cc',
87 'src/test/phonenumbers/test_util.cc', 100 'src/test/phonenumbers/test_util.cc',
88 'src/test/phonenumbers/unicodestring_test.cc', 101 'src/test/phonenumbers/unicodestring_test.cc',
89 ], 102 ],
90 'dependencies': [ 103 'dependencies': [
91 '../icu/icu.gyp:icui18n', 104 '../icu/icu.gyp:icui18n',
92 '../icu/icu.gyp:icuuc', 105 '../icu/icu.gyp:icuuc',
93 '../../base/base.gyp:base', 106 '../../base/base.gyp:base',
94 '../../base/base.gyp:run_all_unittests', 107 '../../base/base.gyp:run_all_unittests',
95 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations', 108 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations',
96 '../../testing/gmock.gyp:gmock', 109 '../../testing/gmock.gyp:gmock',
97 '../../testing/gtest.gyp:gtest', 110 '../../testing/gtest.gyp:gtest',
98 'libphonenumber', 111 'libphonenumber_without_metadata',
99 ], 112 ],
100 'conditions': [ 113 'conditions': [
101 ['OS=="win"', { 114 ['OS=="win"', {
102 'action': [ 115 'action': [
103 '/wo4309', 116 '/wo4309',
104 ], 117 ],
105 }], 118 }],
106 ], 119 ],
107 }] 120 }]
108 } 121 }
OLDNEW
« no previous file with comments | « third_party/libphonenumber/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698