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', |
131 'dist/cpp/test/phonenumbers/stringutil_test.cc', | 132 'dist/cpp/test/phonenumbers/stringutil_test.cc', |
132 'dist/cpp/test/phonenumbers/test_util.cc', | 133 'dist/cpp/test/phonenumbers/test_util.cc', |
133 'dist/cpp/test/phonenumbers/unicodestring_test.cc', | 134 'dist/cpp/test/phonenumbers/unicodestring_test.cc', |
| 135 'dist/cpp/test/phonenumbers/utf/unicodetext_test.cc', |
134 ], | 136 ], |
135 'dependencies': [ | 137 'dependencies': [ |
136 '../icu/icu.gyp:icui18n', | 138 '../icu/icu.gyp:icui18n', |
137 '../icu/icu.gyp:icuuc', | 139 '../icu/icu.gyp:icuuc', |
138 '../../base/base.gyp:run_all_unittests', | 140 '../../base/base.gyp:run_all_unittests', |
139 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami
c_annotations', | 141 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami
c_annotations', |
140 '../../testing/gmock.gyp:gmock', | 142 '../../testing/gmock.gyp:gmock', |
141 '../../testing/gtest.gyp:gtest', | 143 '../../testing/gtest.gyp:gtest', |
142 'libphonenumber_without_metadata', | 144 'libphonenumber_without_metadata', |
143 ], | 145 ], |
144 'variables': { | 146 'variables': { |
145 'clang_warning_flags': [ | 147 'clang_warning_flags': [ |
146 # https://github.com/googlei18n/libphonenumber/pull/741 | 148 # https://github.com/googlei18n/libphonenumber/pull/741 |
147 '-Wno-unused-private-field', | 149 '-Wno-unused-private-field', |
148 ], | 150 ], |
149 }, | 151 }, |
150 'conditions': [ | 152 'conditions': [ |
151 ['OS=="win"', { | 153 ['OS=="win"', { |
152 'action': [ | 154 'action': [ |
153 '/wo4309', | 155 '/wo4309', |
154 ], | 156 ], |
155 }], | 157 }], |
156 # libphonenumber needs to fix their ODR violations. http://crbug.com/45602
1 | 158 # libphonenumber needs to fix their ODR violations. http://crbug.com/45602
1 |
157 ['OS=="linux"', { | 159 ['OS=="linux"', { |
158 'ldflags!': [ | 160 'ldflags!': [ |
159 '-Wl,--detect-odr-violations', | 161 '-Wl,--detect-odr-violations', |
160 ], | 162 ], |
161 }], | 163 }], |
162 ], | 164 ], |
163 }] | 165 }], |
| 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 ], |
164 } | 186 } |
OLD | NEW |