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

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: Fix build error on Android 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': [
33 '../../base/base.gyp:base',
34 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations',
31 '../icu/icu.gyp:icui18n', 35 '../icu/icu.gyp:icui18n',
32 '../icu/icu.gyp:icuuc', 36 '../icu/icu.gyp:icuuc',
33 '../../base/base.gyp:base', 37 '../protobuf/protobuf.gyp:protobuf_lite',
34 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations',
35 ], 38 ],
36 'sources': [ 39 'sources': [
37 'src/phonenumbers/asyoutypeformatter.cc', 40 'src/phonenumbers/asyoutypeformatter.cc',
38 'src/phonenumbers/default_logger.cc', 41 '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', 42 'src/phonenumbers/logger.cc',
44 'src/phonenumbers/phonenumber.cc', 43 'src/phonenumbers/phonenumber.cc',
45 'src/phonenumbers/phonenumbermatch.cc', 44 'src/phonenumbers/phonenumbermatch.cc',
46 'src/phonenumbers/phonenumbermatcher.cc', 45 'src/phonenumbers/phonenumbermatcher.cc',
47 'src/phonenumbers/phonenumberutil.cc', 46 'src/phonenumbers/phonenumberutil.cc',
48 'src/phonenumbers/regexp_adapter_icu.cc', 47 'src/phonenumbers/regexp_adapter_icu.cc',
49 'src/phonenumbers/regexp_cache.cc', 48 'src/phonenumbers/regexp_cache.cc',
49 'src/phonenumbers/string_byte_sink.cc',
50 'src/phonenumbers/stringutil.cc', 50 'src/phonenumbers/stringutil.cc',
51 'src/phonenumbers/unicodestring.cc', 51 'src/phonenumbers/unicodestring.cc',
52 'src/phonenumbers/utf/rune.c', 52 'src/phonenumbers/utf/rune.c',
53 'src/phonenumbers/utf/unicodetext.cc', 53 'src/phonenumbers/utf/unicodetext.cc',
54 'src/phonenumbers/utf/unilib.cc', 54 'src/phonenumbers/utf/unilib.cc',
55 'src/resources/phonemetadata.proto', 55 'src/resources/phonemetadata.proto',
56 'src/resources/phonenumber.proto', 56 'src/resources/phonenumber.proto',
57 ], 57 ],
58 'variables': {
59 'proto_in_dir': 'src/resources',
60 'proto_out_dir': 'third_party/libphonenumber/phonenumbers',
61 },
62 'includes': [ '../../build/protoc.gypi' ],
58 'direct_dependent_settings': { 63 'direct_dependent_settings': {
59 'include_dirs': [ 64 'include_dirs': [
60 '<(SHARED_INTERMEDIATE_DIR)/protoc_out/third_party/libphonenumber', 65 '<(SHARED_INTERMEDIATE_DIR)/protoc_out/third_party/libphonenumber',
61 'src', 66 'src',
62 ], 67 ],
63 }, 68 },
64 'variables': {
65 'proto_in_dir': 'src/resources',
66 'proto_out_dir': 'third_party/libphonenumber/phonenumbers',
67 },
68 'includes': [ '../../build/protoc.gypi' ],
69 'conditions': [ 69 'conditions': [
70 ['OS=="win"', { 70 ['OS=="win"', {
71 'action': [ 71 'action': [
72 '/wo4309', 72 '/wo4309',
73 ], 73 ],
74 }], 74 }],
75 ], 75 ],
76 }, 76 },
77 { 77 {
78 # Library used by clients that includes production metadata.
79 'target_name': 'libphonenumber',
80 'type': 'static_library',
81 'dependencies': [
82 'libphonenumber_without_metadata',
83 ],
84 'export_dependent_settings': [
85 'libphonenumber_without_metadata',
86 ],
87 'sources': [
88 # Comment next line and uncomment the line after, if complete metadata
89 # (with examples) is needed.
90 'src/phonenumbers/lite_metadata.cc',
91 #'src/phonenumbers/metadata.cc',
92 ],
93 },
94 {
78 'target_name': 'libphonenumber_unittests', 95 'target_name': 'libphonenumber_unittests',
79 'type': 'executable', 96 'type': 'executable',
80 'sources': [ 97 'sources': [
81 'src/phonenumbers/test_metadata.cc', 98 'src/phonenumbers/test_metadata.cc',
82 'src/test/phonenumbers/asyoutypeformatter_test.cc', 99 'src/test/phonenumbers/asyoutypeformatter_test.cc',
83 'src/test/phonenumbers/phonenumbermatch_test.cc', 100 'src/test/phonenumbers/phonenumbermatch_test.cc',
84 'src/test/phonenumbers/phonenumbermatcher_test.cc', 101 'src/test/phonenumbers/phonenumbermatcher_test.cc',
85 'src/test/phonenumbers/phonenumberutil_test.cc', 102 'src/test/phonenumbers/phonenumberutil_test.cc',
86 'src/test/phonenumbers/regexp_adapter_test.cc', 103 'src/test/phonenumbers/regexp_adapter_test.cc',
87 'src/test/phonenumbers/stringutil_test.cc', 104 'src/test/phonenumbers/stringutil_test.cc',
88 'src/test/phonenumbers/test_util.cc', 105 'src/test/phonenumbers/test_util.cc',
89 'src/test/phonenumbers/unicodestring_test.cc', 106 'src/test/phonenumbers/unicodestring_test.cc',
90 ], 107 ],
91 'dependencies': [ 108 'dependencies': [
92 '../icu/icu.gyp:icui18n', 109 '../icu/icu.gyp:icui18n',
93 '../icu/icu.gyp:icuuc', 110 '../icu/icu.gyp:icuuc',
94 '../../base/base.gyp:base', 111 '../../base/base.gyp:base',
95 '../../base/base.gyp:run_all_unittests', 112 '../../base/base.gyp:run_all_unittests',
96 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations', 113 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations',
97 '../../testing/gmock.gyp:gmock', 114 '../../testing/gmock.gyp:gmock',
98 '../../testing/gtest.gyp:gtest', 115 '../../testing/gtest.gyp:gtest',
99 'libphonenumber', 116 'libphonenumber_without_metadata',
100 ], 117 ],
101 'conditions': [ 118 'conditions': [
102 ['OS=="win"', { 119 ['OS=="win"', {
103 'action': [ 120 'action': [
104 '/wo4309', 121 '/wo4309',
105 ], 122 ],
106 }], 123 }],
107 ], 124 ],
108 }] 125 }]
109 } 126 }
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