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

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

Issue 365793002: Add lots of GN targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/BUILD.gn ('k') | third_party/mt19937ar/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 (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 'src', 8 'src',
9 'src/test', 9 'src/test',
10 # The libphonenumber source (and test code) expects the 10 # The libphonenumber source (and test code) expects the
(...skipping 17 matching lines...) Expand all
28 ], 28 ],
29 }], 29 }],
30 ], 30 ],
31 }, 31 },
32 'includes': [ 32 'includes': [
33 '../../build/win_precompile.gypi', 33 '../../build/win_precompile.gypi',
34 ], 34 ],
35 'targets': [{ 35 'targets': [{
36 # Build a library without metadata so that we can use it with both testing 36 # Build a library without metadata so that we can use it with both testing
37 # and production metadata. This library should not be used by clients. 37 # and production metadata. This library should not be used by clients.
38 # GN version: //third_party/libphonenumber:libphonenumber_without_metadata
38 'target_name': 'libphonenumber_without_metadata', 39 'target_name': 'libphonenumber_without_metadata',
39 'type': 'static_library', 40 'type': 'static_library',
40 'dependencies': [ 41 'dependencies': [
41 '../icu/icu.gyp:icui18n', 42 '../icu/icu.gyp:icui18n',
42 '../icu/icu.gyp:icuuc', 43 '../icu/icu.gyp:icuuc',
43 '../protobuf/protobuf.gyp:protobuf_lite', 44 '../protobuf/protobuf.gyp:protobuf_lite',
44 ], 45 ],
45 'sources': [ 46 'sources': [
46 'src/phonenumbers/asyoutypeformatter.cc', 47 'src/phonenumbers/asyoutypeformatter.cc',
47 'src/phonenumbers/base/strings/string_piece.cc', 48 'src/phonenumbers/base/strings/string_piece.cc',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 'conditions': [ 87 'conditions': [
87 ['OS=="win"', { 88 ['OS=="win"', {
88 'action': [ 89 'action': [
89 '/wo4309', 90 '/wo4309',
90 ], 91 ],
91 }], 92 }],
92 ], 93 ],
93 }, 94 },
94 { 95 {
95 # Library used by clients that includes production metadata. 96 # Library used by clients that includes production metadata.
97 # GN version: //third_party/libphonenumber
96 'target_name': 'libphonenumber', 98 'target_name': 'libphonenumber',
97 'type': 'static_library', 99 'type': 'static_library',
98 'dependencies': [ 100 'dependencies': [
99 'libphonenumber_without_metadata', 101 'libphonenumber_without_metadata',
100 ], 102 ],
101 'export_dependent_settings': [ 103 'export_dependent_settings': [
102 'libphonenumber_without_metadata', 104 'libphonenumber_without_metadata',
103 ], 105 ],
104 'sources': [ 106 'sources': [
105 # Comment next line and uncomment the line after, if complete metadata 107 # Comment next line and uncomment the line after, if complete metadata
106 # (with examples) is needed. 108 # (with examples) is needed.
107 'src/phonenumbers/lite_metadata.cc', 109 'src/phonenumbers/lite_metadata.cc',
108 #'src/phonenumbers/metadata.cc', 110 #'src/phonenumbers/metadata.cc',
109 ], 111 ],
110 }, 112 },
111 { 113 {
114 # GN version: //third_party/libphonenumber:libphonenumber_unittests
112 'target_name': 'libphonenumber_unittests', 115 'target_name': 'libphonenumber_unittests',
113 'type': 'executable', 116 'type': 'executable',
114 'sources': [ 117 'sources': [
115 'src/phonenumbers/test_metadata.cc', 118 'src/phonenumbers/test_metadata.cc',
116 'src/test/phonenumbers/asyoutypeformatter_test.cc', 119 'src/test/phonenumbers/asyoutypeformatter_test.cc',
117 'src/test/phonenumbers/phonenumbermatch_test.cc', 120 'src/test/phonenumbers/phonenumbermatch_test.cc',
118 'src/test/phonenumbers/phonenumbermatcher_test.cc', 121 'src/test/phonenumbers/phonenumbermatcher_test.cc',
119 'src/test/phonenumbers/phonenumberutil_test.cc', 122 'src/test/phonenumbers/phonenumberutil_test.cc',
120 'src/test/phonenumbers/regexp_adapter_test.cc', 123 'src/test/phonenumbers/regexp_adapter_test.cc',
121 'src/test/phonenumbers/stringutil_test.cc', 124 'src/test/phonenumbers/stringutil_test.cc',
(...skipping 11 matching lines...) Expand all
133 ], 136 ],
134 'conditions': [ 137 'conditions': [
135 ['OS=="win"', { 138 ['OS=="win"', {
136 'action': [ 139 'action': [
137 '/wo4309', 140 '/wo4309',
138 ], 141 ],
139 }], 142 }],
140 ], 143 ],
141 }] 144 }]
142 } 145 }
OLDNEW
« no previous file with comments | « third_party/libphonenumber/BUILD.gn ('k') | third_party/mt19937ar/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698