1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
10 '../build/win_precompile.gypi',
15 'target_name': 'base_i18n',
16 'type': '<(component)',
19 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
20 '../third_party/icu/icu.gyp:icui18n',
21 '../third_party/icu/icu.gyp:icuuc',
24 ['toolkit_uses_gtk==1', {
26 # i18n/rtl.cc uses gtk
27 '../build/linux/system.gyp:gtk',
30 # TODO(michaelbai): This should be removed once icu supported
33 '../third_party/icu/icu.gyp:icui18n',
34 '../third_party/icu/icu.gyp:icuuc',
37 'i18n/base_i18n_export.h',
38 'i18n/bidi_line_iterator.cc',
39 'i18n/bidi_line_iterator.h',
40 'i18n/break_iterator.cc',
41 'i18n/break_iterator.h',
42 'i18n/char_iterator.cc',
43 'i18n/char_iterator.h',
44 'i18n/case_conversion.cc',
45 'i18n/case_conversion.h',
46 'i18n/file_util_icu.cc',
47 'i18n/file_util_icu.h',
48 'i18n/icu_encoding_detection.cc',
49 'i18n/icu_encoding_detection.h',
50 'i18n/icu_string_conversions.cc',
51 'i18n/icu_string_conversions.h',
54 'i18n/number_formatting.cc',
55 'i18n/number_formatting.h',
58 'i18n/string_search.cc',
59 'i18n/string_search.h',
60 'i18n/time_formatting.cc',
61 'i18n/time_formatting.h',
65 'export_dependent_settings': [
69 'BASE_I18N_IMPLEMENTATION',
72 'i18n/base_i18n_export.h',
73 'i18n/bidi_line_iterator.cc',
74 'i18n/bidi_line_iterator.h',
75 'i18n/break_iterator.cc',
76 'i18n/break_iterator.h',
77 'i18n/char_iterator.cc',
78 'i18n/char_iterator.h',
79 'i18n/case_conversion.cc',
80 'i18n/case_conversion.h',
81 'i18n/file_util_icu.cc',
82 'i18n/file_util_icu.h',
83 'i18n/icu_encoding_detection.cc',
84 'i18n/icu_encoding_detection.h',
85 'i18n/icu_string_conversions.cc',
86 'i18n/icu_string_conversions.h',
89 'i18n/number_formatting.cc',
90 'i18n/number_formatting.h',
93 'i18n/string_search.cc',
94 'i18n/string_search.h',
95 'i18n/time_formatting.cc',
96 'i18n/time_formatting.h',
100 # This is the subset of files from base that should not be used with a
101 # dynamic library. Note that this library cannot depend on base because
102 # base depends on base_static.
103 'target_name': 'base_static',
104 'type': 'static_library',
105 'toolsets': ['host', 'target'],
117 # TODO(rvargas): Remove this when gyp finally supports a clean model.
119 'target_name': 'base_static_win64',
120 'type': 'static_library',
132 'msvs_target_platform': 'x64',
138 # TODO(rvargas): Bug 78117. Remove this.
139 'msvs_disabled_warnings': [
144 'target_name': 'base_unittests',
145 'type': 'executable',
147 # Infrastructure files.
148 'test/run_all_unittests.cc',
151 'android/scoped_java_ref_unittest.cc',
152 'at_exit_unittest.cc',
153 'atomicops_unittest.cc',
154 'base64_unittest.cc',
158 'callback_unittest.cc',
159 'callback_unittest.nc',
160 'command_line_unittest.cc',
162 'debug/leak_tracker_unittest.cc',
163 'debug/stack_trace_unittest.cc',
164 'debug/trace_event_unittest.cc',
165 'debug/trace_event_win_unittest.cc',
166 'dir_reader_posix_unittest.cc',
167 'environment_unittest.cc',
168 'file_descriptor_shuffle_unittest.cc',
169 'file_path_unittest.cc',
170 'file_util_unittest.cc',
171 'file_version_info_unittest.cc',
173 'id_map_unittest.cc',
174 'i18n/break_iterator_unittest.cc',
175 'i18n/char_iterator_unittest.cc',
176 'i18n/case_conversion_unittest.cc',
177 'i18n/file_util_icu_unittest.cc',
178 'i18n/icu_string_conversions_unittest.cc',
179 'i18n/number_formatting_unittest.cc',
180 'i18n/rtl_unittest.cc',
181 'i18n/string_search_unittest.cc',
182 'i18n/time_formatting_unittest.cc',
183 'json/json_reader_unittest.cc',
184 'json/json_writer_unittest.cc',
185 'json/string_escape_unittest.cc',
186 'lazy_instance_unittest.cc',
187 'linked_list_unittest.cc',
188 'logging_unittest.cc',
189 'mac/foundation_util_unittest.mm',
190 'mac/mac_util_unittest.mm',
191 'mac/objc_property_releaser_unittest.mm',
193 'memory/linked_ptr_unittest.cc',
194 'memory/mru_cache_unittest.cc',
195 'memory/ref_counted_memory_unittest.cc',
196 'memory/ref_counted_unittest.cc',
197 'memory/scoped_ptr_unittest.cc',
198 'memory/scoped_vector_unittest.cc',
199 'memory/singleton_unittest.cc',
200 'memory/weak_ptr_unittest.cc',
201 'message_loop_proxy_impl_unittest.cc',
202 'message_loop_proxy_unittest.cc',
203 'message_loop_unittest.cc',
204 'message_pump_glib_unittest.cc',
205 'message_pump_libevent_unittest.cc',
206 'metrics/field_trial_unittest.cc',
207 'metrics/histogram_unittest.cc',
208 'metrics/stats_table_unittest.cc',
209 'observer_list_unittest.cc',
210 'path_service_unittest.cc',
211 'pickle_unittest.cc',
212 'platform_file_unittest.cc',
213 'pr_time_unittest.cc',
214 'process_util_unittest.cc',
215 'process_util_unittest_mac.h',
216 'process_util_unittest_mac.mm',
217 'rand_util_unittest.cc',
218 'scoped_native_library_unittest.cc',
219 'scoped_temp_dir_unittest.cc',
221 'shared_memory_unittest.cc',
222 'stack_container_unittest.cc',
223 'string16_unittest.cc',
224 'string_number_conversions_unittest.cc',
225 'string_piece_unittest.cc',
226 'string_split_unittest.cc',
227 'string_tokenizer_unittest.cc',
228 'string_util_unittest.cc',
229 'stringize_macros_unittest.cc',
230 'stringprintf_unittest.cc',
231 'synchronization/cancellation_flag_unittest.cc',
232 'synchronization/condition_variable_unittest.cc',
233 'synchronization/lock_unittest.cc',
234 'synchronization/waitable_event_unittest.cc',
235 'synchronization/waitable_event_watcher_unittest.cc',
236 'sys_info_unittest.cc',
237 'sys_string_conversions_mac_unittest.mm',
238 'sys_string_conversions_unittest.cc',
239 'system_monitor/system_monitor_unittest.cc',
240 'task_queue_unittest.cc',
242 'template_util_unittest.cc',
243 'threading/non_thread_safe_unittest.cc',
244 'threading/platform_thread_unittest.cc',
245 'threading/simple_thread_unittest.cc',
246 'threading/thread_checker_unittest.cc',
247 'threading/thread_collision_warner_unittest.cc',
248 'threading/thread_local_storage_unittest.cc',
249 'threading/thread_local_unittest.cc',
250 'threading/thread_unittest.cc',
251 'threading/watchdog_unittest.cc',
252 'threading/worker_pool_posix_unittest.cc',
253 'threading/worker_pool_unittest.cc',
255 'time_win_unittest.cc',
257 'tools_sanity_unittest.cc',
258 'tracked_objects_unittest.cc',
260 'utf_offset_string_conversions_unittest.cc',
261 'utf_string_conversions_unittest.cc',
262 'values_unittest.cc',
263 'version_unittest.cc',
265 'win/event_trace_consumer_unittest.cc',
266 'win/event_trace_controller_unittest.cc',
267 'win/event_trace_provider_unittest.cc',
268 'win/i18n_unittest.cc',
269 'win/object_watcher_unittest.cc',
270 'win/pe_image_unittest.cc',
271 'win/registry_unittest.cc',
272 'win/scoped_bstr_unittest.cc',
273 'win/scoped_comptr_unittest.cc',
274 'win/scoped_variant_unittest.cc',
275 'win/win_util_unittest.cc',
276 'win/wrapped_window_proc_unittest.cc',
283 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
284 '../testing/gmock.gyp:gmock',
285 '../testing/gtest.gyp:gtest',
286 '../third_party/icu/icu.gyp:icui18n',
287 '../third_party/icu/icu.gyp:icuuc',
289 'includes': ['../build/nocompile.gypi'],
291 # TODO(ajwong): Is there a way to autodetect this?
295 ['OS == "android"', {
296 # TODO(michaelbai): This should be removed once icu supported
298 '../third_party/icu/icu.gyp:icui18n',
299 '../third_party/icu/icu.gyp:icuuc',
302 # TODO(michaelbai): The belows are excluded because of the missing
303 # icu and should be added back once icu is ready.
304 'i18n/break_iterator_unittest.cc',
305 'i18n/char_iterator_unittest.cc',
306 'i18n/case_conversion_unittest.cc',
307 'i18n/file_util_icu_unittest.cc',
308 'i18n/icu_string_conversions_unittest.cc',
309 'i18n/number_formatting_unittest.cc',
310 'i18n/rtl_unittest.cc',
311 'i18n/string_search_unittest.cc',
312 'i18n/time_formatting_unittest.cc',
313 # TODO(michaelbai): Removed the below once the fix upstreamed.
314 'memory/mru_cache_unittest.cc',
315 'process_util_unittest.cc',
316 'synchronization/cancellation_flag_unittest.cc',
317 # TODO(michaelbai): The below files are excluded because of the
318 # missing JNI and should be added back once JNI is ready.
319 'android/scoped_java_ref_unittest.cc',
320 'debug/stack_trace_unittest.cc',
325 'file_version_info_unittest.cc',
328 [ 'linux_use_tcmalloc==1', {
330 'allocator/allocator.gyp:allocator',
334 ['gcc_version==44', {
335 # Avoid gcc 4.4 strict aliasing issues in stl_tree.h when
336 # building mru_cache_unittest.cc.
338 '-fno-strict-aliasing',
341 [ 'toolkit_uses_gtk==1', {
343 'nix/xdg_util_unittest.cc',
346 '../build/linux/system.gyp:gtk',
351 '../build/linux/system.gyp:glib',
352 '../build/linux/system.gyp:ssl',
353 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
357 'message_pump_glib_unittest.cc',
360 # This is needed to trigger the dll copy step on windows.
361 # TODO(mark): This should not be necessary.
364 '../third_party/icu/icu.gyp:icudata',
367 'dir_reader_posix_unittest.cc',
368 'file_descriptor_shuffle_unittest.cc',
369 'threading/worker_pool_posix_unittest.cc',
370 'message_pump_libevent_unittest.cc',
374 '../third_party/libevent/libevent.gyp:libevent'
377 ['exclude', '^win/'],
380 'debug/trace_event_win_unittest.cc',
381 'time_win_unittest.cc',
382 'win/win_util_unittest.cc',
388 'target_name': 'test_support_base',
389 'type': 'static_library',
394 '../testing/gmock.gyp:gmock',
395 '../testing/gtest.gyp:gtest',
397 'export_dependent_settings': [
401 ['toolkit_uses_gtk==1', {
403 # test_suite initializes GTK.
404 '../build/linux/system.gyp:gtk',
409 'test/scoped_locale.cc',
410 'test/scoped_locale.h',
415 'test/test_file_util_linux.cc',
421 'test/mock_chrome_application_mac.h',
422 'test/mock_chrome_application_mac.mm',
423 'test/mock_time_provider.cc',
424 'test/mock_time_provider.h',
425 'test/multiprocess_test.cc',
426 'test/multiprocess_test.h',
427 'test/perf_test_suite.cc',
428 'test/perf_test_suite.h',
429 'test/scoped_locale.cc',
430 'test/scoped_locale.h',
431 'test/test_file_util.h',
432 'test/test_file_util_linux.cc',
433 'test/test_file_util_mac.cc',
434 'test/test_file_util_posix.cc',
435 'test/test_file_util_win.cc',
436 'test/test_reg_util_win.cc',
437 'test/test_reg_util_win.h',
438 'test/test_suite.cc',
440 'test/test_stub_android.cc',
441 'test/test_switches.cc',
442 'test/test_switches.h',
443 'test/test_timeouts.cc',
444 'test/test_timeouts.h',
445 'test/thread_test_helper.cc',
446 'test/thread_test_helper.h',
450 'target_name': 'test_support_perf',
451 'type': 'static_library',
454 '../testing/gtest.gyp:gtest',
458 'test/run_all_perftests.cc',
460 'direct_dependent_settings': {
466 ['toolkit_uses_gtk==1', {
468 # Needed to handle the #include chain:
469 # base/test/perf_test_suite.h
470 # base/test/test_suite.h
472 '../build/linux/system.gyp:gtk',
482 'target_name': 'debug_message',
483 'type': 'executable',
489 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS