blob: d5f485a6879b50905ac9f451df1205f0c8917595 [file] [log] [blame]
[email protected]ef8c3cf2012-01-24 04:37:291# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]2f80c312009-02-25 21:26:552# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
[email protected]ef4fa4072009-12-04 22:46:509 'includes': [
[email protected]99ff9932011-09-07 14:14:5410 '../build/win_precompile.gypi',
[email protected]ef4fa4072009-12-04 22:46:5011 'base.gypi',
12 ],
[email protected]2f80c312009-02-25 21:26:5513 'targets': [
14 {
[email protected]d34d79f2009-10-14 22:06:1415 'target_name': 'base_i18n',
[email protected]c743d4c72011-08-31 22:15:4816 'type': '<(component)',
[email protected]1d88ef32011-12-20 19:59:1017 'variables': {
18 'enable_wexit_time_destructors': 1,
19 'optimize': 'max',
20 },
[email protected]2f80c312009-02-25 21:26:5521 'dependencies': [
22 'base',
[email protected]c743d4c72011-08-31 22:15:4823 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]d34d79f2009-10-14 22:06:1424 '../third_party/icu/icu.gyp:icui18n',
25 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:5526 ],
[email protected]8f6f2022010-03-22 21:24:5727 'conditions': [
[email protected]79e2336c2011-05-12 18:18:3428 ['toolkit_uses_gtk==1', {
[email protected]8f6f2022010-03-22 21:24:5729 'dependencies': [
30 # i18n/rtl.cc uses gtk
31 '../build/linux/system.gyp:gtk',
32 ],
33 }],
34 ],
[email protected]2f80c312009-02-25 21:26:5535 'export_dependent_settings': [
36 'base',
37 ],
[email protected]c743d4c72011-08-31 22:15:4838 'defines': [
39 'BASE_I18N_IMPLEMENTATION',
40 ],
[email protected]d34d79f2009-10-14 22:06:1441 'sources': [
[email protected]c743d4c72011-08-31 22:15:4842 'i18n/base_i18n_export.h',
[email protected]14cd2e62011-02-24 09:20:1643 'i18n/bidi_line_iterator.cc',
44 'i18n/bidi_line_iterator.h',
[email protected]55954d892010-12-15 18:00:5445 'i18n/break_iterator.cc',
46 'i18n/break_iterator.h',
[email protected]0ca5c102010-08-23 14:30:2747 'i18n/char_iterator.cc',
48 'i18n/char_iterator.h',
[email protected]503d03872011-05-06 08:36:2649 'i18n/case_conversion.cc',
50 'i18n/case_conversion.h',
[email protected]d34d79f2009-10-14 22:06:1451 'i18n/file_util_icu.cc',
52 'i18n/file_util_icu.h',
[email protected]193c3512010-05-11 09:19:3053 'i18n/icu_encoding_detection.cc',
54 'i18n/icu_encoding_detection.h',
[email protected]d34d79f2009-10-14 22:06:1455 'i18n/icu_string_conversions.cc',
56 'i18n/icu_string_conversions.h',
57 'i18n/icu_util.cc',
58 'i18n/icu_util.h',
59 'i18n/number_formatting.cc',
60 'i18n/number_formatting.h',
[email protected]7cf1b6ce2010-03-20 06:37:0161 'i18n/rtl.cc',
62 'i18n/rtl.h',
[email protected]923402f32011-10-03 16:25:1963 'i18n/string_search.cc',
64 'i18n/string_search.h',
[email protected]d34d79f2009-10-14 22:06:1465 'i18n/time_formatting.cc',
66 'i18n/time_formatting.h',
[email protected]d34d79f2009-10-14 22:06:1467 ],
[email protected]2f80c312009-02-25 21:26:5568 },
69 {
[email protected]167d52b2011-04-04 22:42:4670 # This is the subset of files from base that should not be used with a
[email protected]23bb71f2011-04-21 22:22:1071 # dynamic library. Note that this library cannot depend on base because
72 # base depends on base_static.
[email protected]167d52b2011-04-04 22:42:4673 'target_name': 'base_static',
[email protected]5a547332011-05-19 23:18:5374 'type': 'static_library',
[email protected]1d88ef32011-12-20 19:59:1075 'variables': {
76 'enable_wexit_time_destructors': 1,
77 'optimize': 'max',
78 },
[email protected]e688d9c2011-09-15 21:17:3279 'toolsets': ['host', 'target'],
[email protected]167d52b2011-04-04 22:42:4680 'sources': [
[email protected]46fe10d62011-05-26 22:03:2881 'base_switches.cc',
82 'base_switches.h',
[email protected]167d52b2011-04-04 22:42:4683 'win/pe_image.cc',
84 'win/pe_image.h',
85 ],
86 'include_dirs': [
87 '..',
88 ],
89 },
90 {
91 # TODO(rvargas): Remove this when gyp finally supports a clean model.
92 # See bug 36232.
93 'target_name': 'base_static_win64',
[email protected]5a547332011-05-19 23:18:5394 'type': 'static_library',
[email protected]167d52b2011-04-04 22:42:4695 'sources': [
[email protected]46fe10d62011-05-26 22:03:2896 'base_switches.cc',
97 'base_switches.h',
[email protected]167d52b2011-04-04 22:42:4698 'win/pe_image.cc',
99 'win/pe_image.h',
100 ],
101 'include_dirs': [
102 '..',
103 ],
104 'configurations': {
105 'Common_Base': {
106 'msvs_target_platform': 'x64',
107 },
108 },
109 'defines': [
110 'NACL_WIN64',
111 ],
112 # TODO(rvargas): Bug 78117. Remove this.
113 'msvs_disabled_warnings': [
114 4244,
115 ],
116 },
117 {
[email protected]2f80c312009-02-25 21:26:55118 'target_name': 'base_unittests',
119 'type': 'executable',
120 'sources': [
[email protected]c7f475ed2009-09-08 17:25:40121 # Infrastructure files.
[email protected]fb895c62009-10-09 18:20:30122 'test/run_all_unittests.cc',
[email protected]c7f475ed2009-09-08 17:25:40123
124 # Tests.
[email protected]96e7ade2011-12-05 14:42:08125 'android/jni_android_unittest.cc',
[email protected]f98d7b92011-09-09 10:17:35126 'android/scoped_java_ref_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55127 'at_exit_unittest.cc',
128 'atomicops_unittest.cc',
[email protected]978df342009-11-24 06:21:53129 'base64_unittest.cc',
[email protected]c6944272012-01-06 22:12:28130 'bind_helpers_unittest.cc',
[email protected]b38d3572011-02-15 01:27:38131 'bind_unittest.cc',
[email protected]81814bce2011-09-10 03:03:00132 'bind_unittest.nc',
[email protected]6d1729e2009-11-18 23:08:39133 'bits_unittest.cc',
[email protected]08aa02762011-11-11 16:09:31134 'build_time_unittest.cc',
[email protected]2041cf342010-02-19 03:15:59135 'callback_unittest.cc',
[email protected]481915a772011-09-10 03:14:35136 'callback_unittest.nc',
[email protected]b77576f52011-11-24 04:12:04137 'cancelable_callback_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55138 'command_line_unittest.cc',
[email protected]14cd2e62011-02-24 09:20:16139 'cpu_unittest.cc',
[email protected]58580352010-10-26 04:07:50140 'debug/leak_tracker_unittest.cc',
141 'debug/stack_trace_unittest.cc',
[email protected]366ae242011-05-10 02:23:58142 'debug/trace_event_unittest.cc',
[email protected]58580352010-10-26 04:07:50143 'debug/trace_event_win_unittest.cc',
[email protected]ef73044e2010-03-11 15:25:54144 'dir_reader_posix_unittest.cc',
[email protected]76b90d312010-08-03 03:00:50145 'environment_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03146 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55147 'file_path_unittest.cc',
148 'file_util_unittest.cc',
149 'file_version_info_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:59150 'gmock_unittest.cc',
[email protected]925d5d602009-08-19 14:56:38151 'id_map_unittest.cc',
[email protected]55954d892010-12-15 18:00:54152 'i18n/break_iterator_unittest.cc',
[email protected]0ca5c102010-08-23 14:30:27153 'i18n/char_iterator_unittest.cc',
[email protected]503d03872011-05-06 08:36:26154 'i18n/case_conversion_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:30155 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:50156 'i18n/icu_string_conversions_unittest.cc',
[email protected]7a3b2632011-06-22 20:40:22157 'i18n/number_formatting_unittest.cc',
[email protected]7cf1b6ce2010-03-20 06:37:01158 'i18n/rtl_unittest.cc',
[email protected]258dca42011-09-21 00:17:19159 'i18n/string_search_unittest.cc',
[email protected]60e6c842011-05-30 11:45:43160 'i18n/time_formatting_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20161 'json/json_reader_unittest.cc',
[email protected]193f946b2011-12-22 18:31:47162 'json/json_value_converter_unittest.cc',
[email protected]8d77b632011-11-17 16:17:23163 'json/json_value_serializer_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20164 'json/json_writer_unittest.cc',
165 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55166 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:54167 'linked_list_unittest.cc',
[email protected]521b0c42010-10-01 23:02:36168 'logging_unittest.cc',
[email protected]28f56492011-10-19 00:36:56169 'mac/foundation_util_unittest.mm',
[email protected]0378bf42011-01-01 18:20:14170 'mac/mac_util_unittest.mm',
[email protected]10756c52011-04-20 22:30:35171 'mac/objc_property_releaser_unittest.mm',
[email protected]d47af2172011-12-01 23:56:17172 'mac/scoped_sending_event_unittest.mm',
[email protected]47f19be2011-04-25 23:54:07173 'md5_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15174 'memory/linked_ptr_unittest.cc',
[email protected]b4ae4442011-04-27 18:37:03175 'memory/mru_cache_unittest.cc',
[email protected]1dda9772011-07-22 13:22:23176 'memory/ref_counted_memory_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15177 'memory/ref_counted_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15178 'memory/scoped_ptr_unittest.cc',
[email protected]6e29d6f32012-01-25 00:33:05179 'memory/scoped_ptr_unittest.nc',
[email protected]e5721c182011-03-28 22:27:34180 'memory/scoped_vector_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15181 'memory/singleton_unittest.cc',
182 'memory/weak_ptr_unittest.cc',
[email protected]656475d2010-05-06 18:34:24183 'message_loop_proxy_impl_unittest.cc',
[email protected]c31af70db22011-08-18 23:13:01184 'message_loop_proxy_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55185 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44186 'message_pump_glib_unittest.cc',
[email protected]b4339c3a2011-05-13 16:19:23187 'message_pump_libevent_unittest.cc',
[email protected]835d7c82010-10-14 04:38:38188 'metrics/field_trial_unittest.cc',
189 'metrics/histogram_unittest.cc',
190 'metrics/stats_table_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55191 'observer_list_unittest.cc',
192 'path_service_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55193 'pickle_unittest.cc',
[email protected]3fb43ed12010-09-10 03:01:14194 'platform_file_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55195 'pr_time_unittest.cc',
196 'process_util_unittest.cc',
[email protected]9f958442010-03-19 18:42:41197 'process_util_unittest_mac.h',
198 'process_util_unittest_mac.mm',
[email protected]dbe5d2072011-11-08 17:09:21199 'profiler/tracked_time_unittest.cc',
[email protected]45644f62011-11-23 00:58:23200 'property_bag_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55201 'rand_util_unittest.cc',
[email protected]e0785902011-05-19 23:34:17202 'scoped_native_library_unittest.cc',
203 'scoped_temp_dir_unittest.cc',
[email protected]c2ad1e32009-11-04 19:29:58204 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55205 'shared_memory_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55206 'stack_container_unittest.cc',
[email protected]3c1304e22010-11-13 20:05:47207 'string16_unittest.cc',
[email protected]528c56d2010-07-30 19:28:44208 'string_number_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55209 'string_piece_unittest.cc',
[email protected]0477554f2010-01-21 19:29:25210 'string_split_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55211 'string_tokenizer_unittest.cc',
212 'string_util_unittest.cc',
[email protected]176ab802010-11-18 02:15:12213 'stringize_macros_unittest.cc',
[email protected]e6811ed52010-08-17 03:45:37214 'stringprintf_unittest.cc',
[email protected]44f9c952011-01-02 06:05:39215 'synchronization/cancellation_flag_unittest.cc',
[email protected]bc581a682011-01-01 23:16:20216 'synchronization/condition_variable_unittest.cc',
217 'synchronization/lock_unittest.cc',
[email protected]44f9c952011-01-02 06:05:39218 'synchronization/waitable_event_unittest.cc',
219 'synchronization/waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55220 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54221 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55222 'sys_string_conversions_unittest.cc',
[email protected]e41d7dd2011-05-18 07:29:56223 'system_monitor/system_monitor_unittest.cc',
[email protected]b38d3572011-02-15 01:27:38224 'template_util_unittest.cc',
[email protected]7a79dafb2011-10-29 03:16:52225 'test/trace_event_analyzer_unittest.cc',
[email protected]c9177502011-01-01 04:48:49226 'threading/non_thread_safe_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16227 'threading/platform_thread_unittest.cc',
[email protected]098def22012-01-01 05:42:34228 'threading/sequenced_worker_pool_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36229 'threading/simple_thread_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16230 'threading/thread_checker_unittest.cc',
[email protected]34b99632011-01-01 01:01:06231 'threading/thread_collision_warner_unittest.cc',
[email protected]1357c322010-12-30 22:18:56232 'threading/thread_local_storage_unittest.cc',
233 'threading/thread_local_unittest.cc',
[email protected]34b99632011-01-01 01:01:06234 'threading/thread_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36235 'threading/watchdog_unittest.cc',
236 'threading/worker_pool_posix_unittest.cc',
237 'threading/worker_pool_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55238 'time_unittest.cc',
239 'time_win_unittest.cc',
240 'timer_unittest.cc',
[email protected]0716cba2009-12-17 12:37:58241 'tools_sanity_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55242 'tracked_objects_unittest.cc',
243 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48244 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53245 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55246 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31247 'version_unittest.cc',
[email protected]99b7c57f2010-09-29 19:26:36248 'vlog_unittest.cc',
[email protected]f21ed6f2011-12-22 22:07:41249 'win/dllmain.cc',
[email protected]c43b0dc2011-12-03 04:31:13250 'win/enum_variant_unittest.cc',
[email protected]ba50d1922010-11-06 15:39:40251 'win/event_trace_consumer_unittest.cc',
252 'win/event_trace_controller_unittest.cc',
253 'win/event_trace_provider_unittest.cc',
[email protected]337ca072010-11-16 15:28:45254 'win/i18n_unittest.cc',
[email protected]c43b0dc2011-12-03 04:31:13255 'win/iunknown_impl_unittest.cc',
[email protected]a8d1ebbe2011-01-01 18:26:16256 'win/object_watcher_unittest.cc',
[email protected]2d6503982010-10-17 04:41:54257 'win/pe_image_unittest.cc',
258 'win/registry_unittest.cc',
[email protected]da00f002011-12-07 21:44:28259 'win/sampling_profiler_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05260 'win/scoped_bstr_unittest.cc',
261 'win/scoped_comptr_unittest.cc',
262 'win/scoped_variant_unittest.cc',
[email protected]a8e20582010-12-31 17:18:50263 'win/win_util_unittest.cc',
[email protected]ecb924c2011-03-17 00:34:09264 'win/wrapped_window_proc_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55265 ],
[email protected]2f80c312009-02-25 21:26:55266 'dependencies': [
267 'base',
[email protected]d34d79f2009-10-14 22:06:14268 'base_i18n',
[email protected]167d52b2011-04-04 22:42:46269 'base_static',
[email protected]6fa18d12010-08-16 04:18:41270 'test_support_base',
[email protected]23bb71f2011-04-21 22:22:10271 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ce3157102009-05-28 07:23:16272 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55273 '../testing/gtest.gyp:gtest',
[email protected]60e6c842011-05-30 11:45:43274 '../third_party/icu/icu.gyp:icui18n',
275 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:55276 ],
[email protected]81814bce2011-09-10 03:03:00277 'includes': ['../build/nocompile.gypi'],
278 'variables': {
279 # TODO(ajwong): Is there a way to autodetect this?
280 'module_dir': 'base'
281 },
[email protected]2f80c312009-02-25 21:26:55282 'conditions': [
[email protected]923402f32011-10-03 16:25:19283 ['OS == "android"', {
[email protected]923402f32011-10-03 16:25:19284 'sources!': [
[email protected]923402f32011-10-03 16:25:19285 # TODO(michaelbai): Removed the below once the fix upstreamed.
286 'memory/mru_cache_unittest.cc',
287 'process_util_unittest.cc',
288 'synchronization/cancellation_flag_unittest.cc',
289 # TODO(michaelbai): The below files are excluded because of the
290 # missing JNI and should be added back once JNI is ready.
[email protected]b5c911a02011-12-06 23:28:21291 'android/jni_android_unittest.cc',
[email protected]923402f32011-10-03 16:25:19292 'android/scoped_java_ref_unittest.cc',
293 'debug/stack_trace_unittest.cc',
294 ],
295 }],
[email protected]258dca42011-09-21 00:17:19296 ['use_glib==1', {
[email protected]8b03e8d2009-03-02 06:53:31297 'sources!': [
298 'file_version_info_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31299 ],
[email protected]63dc3782010-10-19 19:09:30300 'conditions': [
301 [ 'linux_use_tcmalloc==1', {
302 'dependencies': [
303 'allocator/allocator.gyp:allocator',
304 ],
305 },
306 ],
[email protected]258dca42011-09-21 00:17:19307 [ 'toolkit_uses_gtk==1', {
308 'sources': [
309 'nix/xdg_util_unittest.cc',
310 ],
311 'dependencies': [
312 '../build/linux/system.gyp:gtk',
313 ]
314 }],
[email protected]63dc3782010-10-19 19:09:30315 ],
[email protected]9d384032009-03-20 23:13:26316 'dependencies': [
[email protected]258dca42011-09-21 00:17:19317 '../build/linux/system.gyp:glib',
[email protected]638e9df42011-05-31 17:19:30318 '../build/linux/system.gyp:ssl',
[email protected]a97488f2009-09-17 21:37:19319 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26320 ],
[email protected]258dca42011-09-21 00:17:19321 }, { # use_glib!=1
[email protected]b44d5cc2009-06-15 10:30:44322 'sources!': [
323 'message_pump_glib_unittest.cc',
324 ]
[email protected]8b03e8d2009-03-02 06:53:31325 }],
[email protected]2f80c312009-02-25 21:26:55326 # This is needed to trigger the dll copy step on windows.
327 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31328 ['OS == "win"', {
329 'dependencies': [
[email protected]280629492009-09-09 06:49:08330 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31331 ],
332 'sources!': [
[email protected]ef73044e2010-03-11 15:25:54333 'dir_reader_posix_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03334 'file_descriptor_shuffle_unittest.cc',
[email protected]541c4db2010-12-30 18:29:28335 'threading/worker_pool_posix_unittest.cc',
[email protected]b4339c3a2011-05-13 16:19:23336 'message_pump_libevent_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31337 ],
338 }, { # OS != "win"
[email protected]92508df2011-08-04 22:23:55339 'dependencies': [
340 '../third_party/libevent/libevent.gyp:libevent'
341 ],
[email protected]ce0e72462010-10-16 03:46:05342 'sources/': [
343 ['exclude', '^win/'],
344 ],
[email protected]8b03e8d2009-03-02 06:53:31345 'sources!': [
[email protected]3381f172011-05-25 00:20:42346 'debug/trace_event_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31347 'time_win_unittest.cc',
[email protected]3381f172011-05-25 00:20:42348 'win/win_util_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31349 ],
350 }],
[email protected]2f80c312009-02-25 21:26:55351 ],
352 },
[email protected]e8ef09a2009-03-16 23:46:45353 {
[email protected]ddb9b332011-12-02 07:31:09354 'target_name': 'check_example',
355 'type': 'executable',
356 'sources': [
357 'check_example.cc',
358 ],
359 'dependencies': [
360 'base',
361 ],
362 },
363 {
[email protected]e8ef09a2009-03-16 23:46:45364 'target_name': 'test_support_base',
[email protected]5a547332011-05-19 23:18:53365 'type': 'static_library',
[email protected]e8ef09a2009-03-16 23:46:45366 'dependencies': [
367 'base',
[email protected]23bb71f2011-04-21 22:22:10368 'base_static',
[email protected]afa8020c2010-08-16 04:42:26369 'base_i18n',
[email protected]6fa18d12010-08-16 04:18:41370 '../testing/gmock.gyp:gmock',
371 '../testing/gtest.gyp:gtest',
[email protected]7d1ba9392009-08-03 18:35:06372 ],
[email protected]23bb71f2011-04-21 22:22:10373 'export_dependent_settings': [
374 'base',
375 ],
[email protected]afa8020c2010-08-16 04:42:26376 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34377 ['toolkit_uses_gtk==1', {
[email protected]afa8020c2010-08-16 04:42:26378 'dependencies': [
379 # test_suite initializes GTK.
380 '../build/linux/system.gyp:gtk',
381 ],
382 }],
[email protected]3ae445e82011-06-20 17:44:05383 ['os_posix==0', {
384 'sources!': [
385 'test/scoped_locale.cc',
386 'test/scoped_locale.h',
387 ],
388 }],
[email protected]c48aef92011-11-22 23:41:45389 ['os_bsd==1', {
[email protected]167ec822011-10-24 22:05:27390 'sources!': [
391 'test/test_file_util_linux.cc',
392 ],
393 }],
[email protected]afa8020c2010-08-16 04:42:26394 ],
[email protected]7d1ba9392009-08-03 18:35:06395 'sources': [
[email protected]bc052ef52010-10-10 02:42:32396 'perftimer.cc',
[email protected]a3668802010-12-18 01:18:29397 'test/mock_chrome_application_mac.h',
398 'test/mock_chrome_application_mac.mm',
[email protected]c4996f762011-06-28 14:29:06399 'test/mock_time_provider.cc',
400 'test/mock_time_provider.h',
[email protected]20e14912010-08-17 19:40:11401 'test/multiprocess_test.cc',
402 'test/multiprocess_test.h',
[email protected]99cc51e2010-10-10 00:21:35403 'test/perf_test_suite.cc',
[email protected]20e14912010-08-17 19:40:11404 'test/perf_test_suite.h',
[email protected]3ae445e82011-06-20 17:44:05405 'test/scoped_locale.cc',
406 'test/scoped_locale.h',
[email protected]fb895c62009-10-09 18:20:30407 'test/test_file_util.h',
408 'test/test_file_util_linux.cc',
409 'test/test_file_util_mac.cc',
410 'test/test_file_util_posix.cc',
411 'test/test_file_util_win.cc',
[email protected]a8f85882011-08-24 20:02:42412 'test/test_reg_util_win.cc',
413 'test/test_reg_util_win.h',
[email protected]6fa18d12010-08-16 04:18:41414 'test/test_suite.cc',
415 'test/test_suite.h',
[email protected]923402f32011-10-03 16:25:19416 'test/test_stub_android.cc',
[email protected]cbb9f50f2010-10-05 19:03:05417 'test/test_switches.cc',
418 'test/test_switches.h',
419 'test/test_timeouts.cc',
420 'test/test_timeouts.h',
[email protected]8aaae7b2011-06-28 06:43:20421 'test/thread_test_helper.cc',
422 'test/thread_test_helper.h',
[email protected]7a79dafb2011-10-29 03:16:52423 'test/trace_event_analyzer.cc',
424 'test/trace_event_analyzer.h',
[email protected]7d1ba9392009-08-03 18:35:06425 ],
[email protected]7d1ba9392009-08-03 18:35:06426 },
427 {
428 'target_name': 'test_support_perf',
[email protected]5a547332011-05-19 23:18:53429 'type': 'static_library',
[email protected]7d1ba9392009-08-03 18:35:06430 'dependencies': [
431 'base',
[email protected]e8ef09a2009-03-16 23:46:45432 '../testing/gtest.gyp:gtest',
433 ],
434 'sources': [
435 'perftimer.cc',
[email protected]fb895c62009-10-09 18:20:30436 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45437 ],
438 'direct_dependent_settings': {
439 'defines': [
440 'PERF_TEST',
441 ],
442 },
[email protected]9d384032009-03-20 23:13:26443 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34444 ['toolkit_uses_gtk==1', {
[email protected]9d384032009-03-20 23:13:26445 'dependencies': [
446 # Needed to handle the #include chain:
[email protected]fb895c62009-10-09 18:20:30447 # base/test/perf_test_suite.h
448 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26449 # gtk/gtk.h
450 '../build/linux/system.gyp:gtk',
451 ],
452 }],
453 ],
[email protected]e8ef09a2009-03-16 23:46:45454 },
[email protected]2f80c312009-02-25 21:26:55455 ],
456 'conditions': [
457 [ 'OS == "win"', {
458 'targets': [
459 {
460 'target_name': 'debug_message',
461 'type': 'executable',
462 'sources': [
463 'debug_message.cc',
464 ],
[email protected]3f8bfc362009-05-22 02:39:14465 'msvs_settings': {
466 'VCLinkerTool': {
467 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
468 },
469 },
[email protected]2f80c312009-02-25 21:26:55470 },
471 ],
472 }],
[email protected]2f80c312009-02-25 21:26:55473 ],
474}