OLD | NEW |
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 'dist/cpp/src', | 8 'dist/cpp/src', |
9 'dist/cpp/test', | 9 'dist/cpp/test', |
10 # The libphonenumber source (and test code) expects the | 10 # The libphonenumber source (and test code) expects the |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 # GN version: //third_party/libphonenumber:libphonenumber_unittests | 121 # GN version: //third_party/libphonenumber:libphonenumber_unittests |
122 'target_name': 'libphonenumber_unittests', | 122 'target_name': 'libphonenumber_unittests', |
123 'type': 'executable', | 123 'type': 'executable', |
124 'sources': [ | 124 'sources': [ |
125 'dist/cpp/src/phonenumbers/test_metadata.cc', | 125 'dist/cpp/src/phonenumbers/test_metadata.cc', |
126 'dist/cpp/test/phonenumbers/asyoutypeformatter_test.cc', | 126 'dist/cpp/test/phonenumbers/asyoutypeformatter_test.cc', |
127 'dist/cpp/test/phonenumbers/phonenumbermatch_test.cc', | 127 'dist/cpp/test/phonenumbers/phonenumbermatch_test.cc', |
128 'dist/cpp/test/phonenumbers/phonenumbermatcher_test.cc', | 128 'dist/cpp/test/phonenumbers/phonenumbermatcher_test.cc', |
129 'dist/cpp/test/phonenumbers/phonenumberutil_test.cc', | 129 'dist/cpp/test/phonenumbers/phonenumberutil_test.cc', |
130 'dist/cpp/test/phonenumbers/regexp_adapter_test.cc', | 130 'dist/cpp/test/phonenumbers/regexp_adapter_test.cc', |
131 'dist/cpp/test/phonenumbers/regexp_cache_test.cc', | |
132 'dist/cpp/test/phonenumbers/stringutil_test.cc', | 131 'dist/cpp/test/phonenumbers/stringutil_test.cc', |
133 'dist/cpp/test/phonenumbers/test_util.cc', | 132 'dist/cpp/test/phonenumbers/test_util.cc', |
134 'dist/cpp/test/phonenumbers/unicodestring_test.cc', | 133 'dist/cpp/test/phonenumbers/unicodestring_test.cc', |
135 'dist/cpp/test/phonenumbers/utf/unicodetext_test.cc', | |
136 ], | 134 ], |
137 'dependencies': [ | 135 'dependencies': [ |
138 '../icu/icu.gyp:icui18n', | 136 '../icu/icu.gyp:icui18n', |
139 '../icu/icu.gyp:icuuc', | 137 '../icu/icu.gyp:icuuc', |
140 '../../base/base.gyp:run_all_unittests', | 138 '../../base/base.gyp:run_all_unittests', |
141 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami
c_annotations', | 139 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami
c_annotations', |
142 '../../testing/gmock.gyp:gmock', | 140 '../../testing/gmock.gyp:gmock', |
143 '../../testing/gtest.gyp:gtest', | 141 '../../testing/gtest.gyp:gtest', |
144 'libphonenumber_without_metadata', | 142 'libphonenumber_without_metadata', |
145 ], | 143 ], |
146 'variables': { | 144 'variables': { |
147 'clang_warning_flags': [ | 145 'clang_warning_flags': [ |
148 # https://github.com/googlei18n/libphonenumber/pull/741 | 146 # https://github.com/googlei18n/libphonenumber/pull/741 |
149 '-Wno-unused-private-field', | 147 '-Wno-unused-private-field', |
150 ], | 148 ], |
151 }, | 149 }, |
152 'conditions': [ | 150 'conditions': [ |
153 ['OS=="win"', { | 151 ['OS=="win"', { |
154 'action': [ | 152 'action': [ |
155 '/wo4309', | 153 '/wo4309', |
156 ], | 154 ], |
157 }], | 155 }], |
158 # libphonenumber needs to fix their ODR violations. http://crbug.com/45602
1 | 156 # libphonenumber needs to fix their ODR violations. http://crbug.com/45602
1 |
159 ['OS=="linux"', { | 157 ['OS=="linux"', { |
160 'ldflags!': [ | 158 'ldflags!': [ |
161 '-Wl,--detect-odr-violations', | 159 '-Wl,--detect-odr-violations', |
162 ], | 160 ], |
163 }], | 161 }], |
164 ], | 162 ], |
165 }], | 163 }] |
166 'conditions': [ | |
167 ['test_isolation_mode != "noop"', { | |
168 'targets': [ | |
169 { | |
170 'target_name': 'libphonenumber_unittests_run', | |
171 'type': 'none', | |
172 'dependencies': [ | |
173 'libphonenumber_unittests', | |
174 ], | |
175 'includes': [ | |
176 '../../build/isolate.gypi', | |
177 ], | |
178 'sources': [ | |
179 'libphonenumber_unittests.isolate', | |
180 ], | |
181 }, | |
182 ], | |
183 }, { | |
184 }], | |
185 ], | |
186 } | 164 } |
OLD | NEW |