blob: ee56c9631fdc4471b7e37901fa9cf1c3da967d41 [file] [log] [blame]
[email protected]2f80c312009-02-25 21:26:551# Copyright (c) 2009 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.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
9 'includes': [
10 '../build/common.gypi',
11 ],
12 'targets': [
13 {
14 'target_name': 'base',
15 'type': 'static_library',
16 'dependencies': [
17 '../third_party/icu38/icu38.gyp:icui18n',
18 '../third_party/icu38/icu38.gyp:icuuc',
19 ],
[email protected]0d54d2e2009-03-10 22:25:5420 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
[email protected]2f80c312009-02-25 21:26:5521 'sources': [
22 '../build/build_config.h',
23 'third_party/dmg_fp/dmg_fp.h',
24 'third_party/dmg_fp/dtoa.cc',
25 'third_party/dmg_fp/g_fmt.cc',
26 'third_party/nspr/prcpucfg.h',
27 'third_party/nspr/prcpucfg_win.h',
28 'third_party/nspr/prtime.cc',
29 'third_party/nspr/prtime.h',
30 'third_party/nspr/prtypes.h',
31 'third_party/nss/blapi.h',
32 'third_party/nss/blapit.h',
33 'third_party/nss/sha256.h',
34 'third_party/nss/sha512.cc',
35 'third_party/purify/pure.h',
36 'third_party/purify/pure_api.c',
37 'atomicops_internals_x86_gcc.cc',
38 'at_exit.cc',
39 'at_exit.h',
40 'atomic_ref_count.h',
41 'atomic_sequence_num.h',
42 'atomicops.h',
43 'atomicops_internals_x86_msvc.h',
44 'base_drag_source.cc',
45 'base_drag_source.h',
46 'base_drop_target.cc',
47 'base_drop_target.h',
48 'base_paths.cc',
49 'base_paths.h',
[email protected]08ef57ce2009-03-23 15:54:4350 'base_paths_linux.h',
[email protected]2f80c312009-02-25 21:26:5551 'base_paths_linux.cc',
[email protected]08ef57ce2009-03-23 15:54:4352 'base_paths_mac.h',
[email protected]2f80c312009-02-25 21:26:5553 'base_paths_mac.mm',
54 'base_paths_win.cc',
55 'base_paths_win.h',
56 'base_switches.cc',
57 'base_switches.h',
58 'basictypes.h',
59 'bzip2_error_handler.cc',
60 'clipboard.cc',
61 'clipboard.h',
62 'clipboard_linux.cc',
63 'clipboard_mac.mm',
64 'clipboard_util.cc',
65 'clipboard_util.h',
66 'clipboard_win.cc',
67 'command_line.cc',
68 'command_line.h',
69 'compiler_specific.h',
70 'condition_variable.h',
71 'condition_variable_posix.cc',
72 'condition_variable_win.cc',
73 'cpu.cc',
74 'cpu.h',
75 'data_pack.cc',
76 'debug_on_start.cc',
77 'debug_on_start.h',
78 'debug_util.cc',
79 'debug_util.h',
80 'debug_util_mac.cc',
81 'debug_util_posix.cc',
82 'debug_util_win.cc',
83 'directory_watcher.h',
[email protected]34c70c9f2009-03-18 14:35:5884 'directory_watcher_inotify.cc',
[email protected]2f80c312009-02-25 21:26:5585 'directory_watcher_win.cc',
86 'event_recorder.cc',
87 'event_recorder.h',
88 'event_recorder_stubs.cc',
89 'field_trial.cc',
90 'field_trial.h',
91 'file_path.cc',
92 'file_path.h',
93 'file_util.cc',
94 'file_util.h',
95 'file_util_linux.cc',
96 'file_util_mac.mm',
97 'file_util_posix.cc',
98 'file_util_win.cc',
99 'file_version_info.cc',
100 'file_version_info.h',
101 'file_version_info_linux.cc',
102 'file_version_info_mac.mm',
103 'fix_wp64.h',
104 'float_util.h',
[email protected]08ef57ce2009-03-23 15:54:43105 'foundation_utils_mac.h',
[email protected]2f80c312009-02-25 21:26:55106 'hash_tables.h',
107 'histogram.cc',
108 'histogram.h',
109 'hmac.h',
110 'hmac_mac.cc',
111 'hmac_nss.cc',
112 'hmac_win.cc',
113 'iat_patch.cc',
114 'iat_patch.h',
115 'icu_util.cc',
116 'icu_util.h',
117 'id_map.h',
118 'idle_timer.cc',
119 'idle_timer.h',
120 'idle_timer_none.cc',
121 'image_util.cc',
122 'image_util.h',
123 'json_reader.cc',
124 'json_reader.h',
125 'json_writer.cc',
126 'json_writer.h',
127 'keyboard_codes.h',
128 'keyboard_codes_win.h',
129 'lazy_instance.cc',
130 'lazy_instance.h',
131 'linked_ptr.h',
132 'lock.cc',
133 'lock.h',
134 'lock_impl.h',
135 'lock_impl_posix.cc',
136 'lock_impl_win.cc',
137 'logging.cc',
138 'logging.h',
[email protected]08ef57ce2009-03-23 15:54:43139 'mac_util.h',
[email protected]2f80c312009-02-25 21:26:55140 'mac_util.mm',
141 'md5.cc',
142 'md5.h',
143 'memory_debug.cc',
144 'memory_debug.h',
145 'message_loop.cc',
146 'message_loop.h',
147 'message_pump.h',
148 'message_pump_default.cc',
149 'message_pump_default.h',
150 'message_pump_glib.cc',
[email protected]08ef57ce2009-03-23 15:54:43151 'message_pump_glib.h',
[email protected]2f80c312009-02-25 21:26:55152 'message_pump_libevent.cc',
[email protected]08ef57ce2009-03-23 15:54:43153 'message_pump_libevent.h',
154 'message_pump_mac.h',
[email protected]2f80c312009-02-25 21:26:55155 'message_pump_mac.mm',
156 'message_pump_win.cc',
157 'message_pump_win.h',
158 'non_thread_safe.cc',
159 'non_thread_safe.h',
160 'nss_init.cc',
161 'object_watcher.cc',
162 'object_watcher.h',
163 'observer_list.h',
164 'observer_list_threadsafe.h',
165 'path_service.cc',
166 'path_service.h',
167 'pe_image.cc',
168 'pe_image.h',
169 'pickle.cc',
170 'pickle.h',
171 'platform_file.h',
172 'platform_file_win.cc',
173 'platform_file_posix.cc',
174 'platform_thread.h',
175 'platform_thread_mac.mm',
176 'platform_thread_posix.cc',
177 'platform_thread_win.cc',
178 'port.h',
[email protected]9b2217562009-03-09 21:26:28179 'profiler.cc',
180 'profiler.h',
[email protected]2f80c312009-02-25 21:26:55181 'process.h',
182 'process_posix.cc',
183 'process_util.h',
184 'process_util_linux.cc',
185 'process_util_mac.mm',
186 'process_util_posix.cc',
187 'process_util_win.cc',
188 'process_win.cc',
189 'rand_util.cc',
190 'rand_util.h',
191 'rand_util_posix.cc',
192 'rand_util_win.cc',
193 'ref_counted.cc',
194 'ref_counted.h',
195 'registry.cc',
196 'registry.h',
197 'resource_util.cc',
198 'resource_util.h',
199 'revocable_store.cc',
200 'revocable_store.h',
201 'scoped_bstr_win.cc',
202 'scoped_bstr_win.h',
[email protected]08ef57ce2009-03-23 15:54:43203 'scoped_cftyperef.h',
[email protected]2f80c312009-02-25 21:26:55204 'scoped_clipboard_writer.cc',
205 'scoped_clipboard_writer.h',
206 'scoped_comptr_win.h',
207 'scoped_handle.h',
208 'scoped_handle_win.h',
209 'scoped_nsautorelease_pool.h',
210 'scoped_nsautorelease_pool.mm',
[email protected]08ef57ce2009-03-23 15:54:43211 'scoped_nsobject.h',
[email protected]2f80c312009-02-25 21:26:55212 'scoped_ptr.h',
213 'scoped_temp_dir.cc',
214 'scoped_temp_dir.h',
[email protected]e00d39192009-03-19 04:22:28215 'scoped_variant_win.cc',
216 'scoped_variant_win.h',
[email protected]2f80c312009-02-25 21:26:55217 'sha2.cc',
218 'sha2.h',
219 'shared_memory.h',
220 'shared_memory_posix.cc',
221 'shared_memory_win.cc',
222 'simple_thread.cc',
223 'simple_thread.h',
224 'singleton.h',
225 'spin_wait.h',
226 'stack_container.h',
227 'stats_counters.h',
228 'stats_table.cc',
229 'stats_table.h',
230 'string16.cc',
231 'string16.h',
232 'string_escape.cc',
233 'string_escape.h',
234 'string_piece.cc',
235 'string_piece.h',
236 'string_tokenizer.h',
237 'string_util.cc',
238 'string_util.h',
239 'string_util_icu.cc',
240 'string_util_win.h',
241 'sys_info.h',
242 'sys_info_mac.cc',
243 'sys_info_posix.cc',
244 'sys_info_win.cc',
245 'sys_string_conversions.h',
246 'sys_string_conversions_linux.cc',
247 'sys_string_conversions_mac.mm',
248 'sys_string_conversions_win.cc',
249 'system_monitor.cc',
250 'system_monitor.h',
251 'system_monitor_posix.cc',
252 'system_monitor_win.cc',
253 'task.h',
254 'test_file_util.h',
255 'test_file_util_linux.cc',
256 'test_file_util_mac.cc',
[email protected]2c80a4892009-03-10 16:40:45257 'test_file_util_posix.cc',
[email protected]2f80c312009-02-25 21:26:55258 'test_file_util_win.cc',
259 'thread.cc',
260 'thread.h',
261 'thread_collision_warner.cc',
262 'thread_collision_warner.h',
263 'thread_local.h',
264 'thread_local_posix.cc',
265 'thread_local_storage.h',
266 'thread_local_storage_posix.cc',
267 'thread_local_storage_win.cc',
268 'thread_local_win.cc',
269 'time.cc',
270 'time.h',
271 'time_format.cc',
272 'time_format.h',
273 'time_mac.cc',
274 'time_posix.cc',
275 'time_win.cc',
276 'timer.cc',
277 'timer.h',
278 'trace_event.cc',
279 'trace_event.h',
280 'tracked.cc',
281 'tracked.h',
282 'tracked_objects.cc',
283 'tracked_objects.h',
284 'tuple.h',
285 'values.cc',
286 'values.h',
287 'version.cc',
288 'version.h',
289 'waitable_event.h',
290 'waitable_event_posix.cc',
291 'waitable_event_watcher.h',
292 'waitable_event_watcher_posix.cc',
293 'waitable_event_watcher_win.cc',
294 'waitable_event_win.cc',
295 'watchdog.cc',
296 'watchdog.h',
297 'win_util.cc',
298 'win_util.h',
299 'windows_message_list.h',
300 'wmi_util.cc',
301 'wmi_util.h',
302 'word_iterator.cc',
303 'word_iterator.h',
[email protected]2f80c312009-02-25 21:26:55304 'worker_pool.h',
[email protected]5846da02009-03-06 20:35:45305 'worker_pool_linux.cc',
[email protected]250103f2009-03-24 23:41:53306 'worker_pool_linux.h',
[email protected]2f80c312009-02-25 21:26:55307 'worker_pool_mac.mm',
[email protected]5846da02009-03-06 20:35:45308 'worker_pool_win.cc',
[email protected]2f80c312009-02-25 21:26:55309 ],
310 'include_dirs': [
311 '..',
312 ],
313 'direct_dependent_settings': {
314 'include_dirs': [
315 '..',
316 ],
317 },
318 # These warnings are needed for the files in third_party\dmg_fp.
319 'msvs_disabled_warnings': [
320 4244, 4554, 4018, 4102,
321 ],
322 'conditions': [
323 [ 'OS == "linux"', {
[email protected]6d4da122009-03-24 18:03:55324 'actions': [
325 {
326 'action_name': 'linux_version',
327 'variables': {
[email protected]8a0098f2009-03-24 20:07:45328 'template_input_path': 'file_version_info_linux.h.version',
329 'template_output_path':
[email protected]7d5d73f2009-03-24 21:19:55330 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
[email protected]6d4da122009-03-24 18:03:55331 },
332 'inputs': [
333 '<(template_input_path)',
334 '../chrome/VERSION',
335 '../chrome/tools/build/linux/version.sh',
336 ],
337 'conditions': [
338 [ 'branding == "Chrome"', {
339 'inputs': ['../chrome/app/theme/google_chrome/BRANDING']
340 }, { # else branding!="Chrome"
341 'inputs': ['../chrome/app/theme/chromium/BRANDING']
342 }],
343 ],
344 'outputs': [
[email protected]8a0098f2009-03-24 20:07:45345 # Use a non-existant output so this action always runs and
346 # generates version information, e.g. to capture revision
347 # changes, which aren't captured by file dependencies.
[email protected]7d5d73f2009-03-24 21:19:55348 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.bogus',
[email protected]6d4da122009-03-24 18:03:55349 ],
350 'action': [
351 '../chrome/tools/build/linux/version.sh',
[email protected]8a0098f2009-03-24 20:07:45352 '<(template_input_path)', '<(template_output_path)',
[email protected]6d4da122009-03-24 18:03:55353 ],
354 },
355 ],
356 'include_dirs': [
[email protected]7d5d73f2009-03-24 21:19:55357 '<(SHARED_INTERMEDIATE_DIR)',
[email protected]6d4da122009-03-24 18:03:55358 ],
[email protected]2f80c312009-02-25 21:26:55359 'sources/': [ ['exclude', '_(mac|win)\\.cc$'],
360 ['exclude', '\\.mm?$' ] ],
361 'sources!': [
362 # Linux has an implementation of idle_timer that depends
363 # on XScreenSaver, but it's unclear if we want it yet,
364 # so use idle_timer_none.cc instead.
365 'idle_timer.cc',
366 ],
[email protected]9d384032009-03-20 23:13:26367 'dependencies': [
368 '../build/linux/system.gyp:gtk',
369 '../build/linux/system.gyp:nss',
370 ],
371 'cflags': [
372 '-Wno-write-strings',
373 ],
374 'link_settings': {
375 'libraries': [
376 # We need rt for clock_gettime().
377 '-lrt',
378 ],
379 },
[email protected]2f80c312009-02-25 21:26:55380 },
381 { # else: OS != "linux"
382 'sources!': [
383 'atomicops_internals_x86_gcc.cc',
[email protected]34c70c9f2009-03-18 14:35:58384 'directory_watcher_inotify.cc',
[email protected]2f80c312009-02-25 21:26:55385 'hmac_nss.cc',
386 'idle_timer_none.cc',
387 'message_pump_glib.cc',
388 'nss_init.cc',
389 'time_posix.cc',
390 ],
391 }
392 ],
[email protected]398a3162009-03-18 23:19:10393 [ 'GENERATOR == "quentin"', {
394 # Quentin builds don't have a recent enough glibc to include the
395 # inotify headers
396 'sources!': [
397 'directory_watcher_inotify.cc',
398 ],
399 'sources': [
400 'directory_watcher_stub.cc',
401 ],
402 },
403 ],
[email protected]2f80c312009-02-25 21:26:55404 [ 'OS == "mac"', {
405 'sources/': [ ['exclude', '_(linux|win)\\.cc$'] ],
406 'sources!': [
[email protected]2f80c312009-02-25 21:26:55407 ],
408 'link_settings': {
409 'libraries': [
410 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
411 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
412 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
413 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
414 ],
415 },
416 },
417 ],
418 [ 'OS == "win"', {
419 'sources/': [ ['exclude', '_(linux|mac|posix)\\.cc$'],
420 ['exclude', '\\.mm?$' ] ],
421 'sources!': [
[email protected]b8e1f95c2009-02-26 15:25:44422 'data_pack.cc',
[email protected]2f80c312009-02-25 21:26:55423 'event_recorder_stubs.cc',
424 'message_pump_libevent.cc',
425 'string16.cc',
426 ],
427 },
428 { # else: OS != "win"
429 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
430 'sources!': [
431 'third_party/purify/pure_api.c',
432 'base_drag_source.cc',
433 'base_drop_target.cc',
434 'cpu.cc',
435 'clipboard_util.cc',
436 'debug_on_start.cc',
437 'event_recorder.cc',
438 'file_version_info.cc',
439 'iat_patch.cc',
440 'image_util.cc',
441 'object_watcher.cc',
442 'pe_image.cc',
443 'registry.cc',
444 'resource_util.cc',
445 'win_util.cc',
446 'wmi_util.cc',
447 ],
448 },
449 ],
450 ],
451 },
452 {
453 'target_name': 'base_gfx',
454 'type': 'static_library',
[email protected]0d54d2e2009-03-10 22:25:54455 'msvs_guid': 'A508ADD3-CECE-4E0F-8448-2F5E454DF551',
[email protected]2f80c312009-02-25 21:26:55456 'sources': [
457 'gfx/gdi_util.cc',
458 'gfx/gdi_util.h',
[email protected]40c3f522009-03-06 21:33:46459 'gfx/gtk_util.cc',
460 'gfx/gtk_util.h',
[email protected]2f80c312009-02-25 21:26:55461 'gfx/jpeg_codec.cc',
462 'gfx/jpeg_codec.h',
463 'gfx/native_theme.cc',
464 'gfx/native_theme.h',
465 'gfx/native_widget_types.h',
466 'gfx/platform_canvas.h',
467 'gfx/platform_canvas_linux.h',
468 'gfx/platform_canvas_mac.h',
469 'gfx/platform_device_linux.h',
470 'gfx/platform_device_mac.h',
471 'gfx/png_decoder.cc',
472 'gfx/png_decoder.h',
473 'gfx/png_encoder.cc',
474 'gfx/png_encoder.h',
475 'gfx/point.cc',
476 'gfx/point.h',
477 'gfx/rect.cc',
478 'gfx/rect.h',
479 'gfx/size.cc',
480 'gfx/size.h',
481 ],
482 'mac_framework_dirs': [
483 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
484 ],
485 'dependencies': [
486 'base',
487 '../skia/skia.gyp:skia',
488 '../third_party/libjpeg/libjpeg.gyp:libjpeg',
489 '../third_party/libpng/libpng.gyp:libpng',
490 '../third_party/zlib/zlib.gyp:zlib',
491 ],
492 'export_dependent_settings': [
493 'base',
494 ],
495 'conditions': [
[email protected]9d384032009-03-20 23:13:26496 ['OS == "linux"', {
497 'dependencies': [
498 '../build/linux/system.gyp:gtk',
499 ],
500 }],
[email protected]2f80c312009-02-25 21:26:55501 [ 'OS != "win"', { 'sources!': [
[email protected]40c3f522009-03-06 21:33:46502 'gfx/gdi_util.cc',
503 'gfx/native_theme.cc',
[email protected]9e450f22009-03-10 23:12:16504 ],
[email protected]40c3f522009-03-06 21:33:46505 }],
506 [ 'OS != "linux"', { 'sources!': [
507 'gfx/gtk_util.cc',
[email protected]9e450f22009-03-10 23:12:16508 ],
[email protected]2f80c312009-02-25 21:26:55509 }],
510 ],
511 },
512 {
513 'target_name': 'base_unittests',
514 'type': 'executable',
[email protected]9e450f22009-03-10 23:12:16515 'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC',
[email protected]2f80c312009-02-25 21:26:55516 'sources': [
517 'gfx/jpeg_codec_unittest.cc',
518 'gfx/native_theme_unittest.cc',
519 'gfx/png_codec_unittest.cc',
520 'gfx/rect_unittest.cc',
521 'at_exit_unittest.cc',
522 'atomicops_unittest.cc',
523 'clipboard_unittest.cc',
524 'command_line_unittest.cc',
525 'condition_variable_unittest.cc',
526 'data_pack_unittest.cc',
527 'directory_watcher_unittest.cc',
528 'field_trial_unittest.cc',
529 'file_path_unittest.cc',
530 'file_util_unittest.cc',
531 'file_version_info_unittest.cc',
532 'histogram_unittest.cc',
533 'hmac_unittest.cc',
534 'idletimer_unittest.cc',
535 'json_reader_unittest.cc',
536 'json_writer_unittest.cc',
537 'lazy_instance_unittest.cc',
538 'linked_ptr_unittest.cc',
539 'mac_util_unittest.cc',
540 'message_loop_unittest.cc',
541 'object_watcher_unittest.cc',
542 'observer_list_unittest.cc',
543 'path_service_unittest.cc',
544 'pe_image_unittest.cc',
545 'pickle_unittest.cc',
546 'pr_time_unittest.cc',
547 'process_util_unittest.cc',
548 'rand_util_unittest.cc',
549 'ref_counted_unittest.cc',
550 'run_all_unittests.cc',
551 'scoped_bstr_win_unittest.cc',
552 'scoped_comptr_win_unittest.cc',
553 'scoped_ptr_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31554 'scoped_temp_dir_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28555 'scoped_variant_win_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55556 'sha2_unittest.cc',
557 'shared_memory_unittest.cc',
558 'simple_thread_unittest.cc',
559 'singleton_unittest.cc',
560 'stack_container_unittest.cc',
561 'stats_table_unittest.cc',
562 'string_escape_unittest.cc',
563 'string_piece_unittest.cc',
564 'string_tokenizer_unittest.cc',
565 'string_util_unittest.cc',
566 'sys_info_unittest.cc',
567 'sys_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55568 'system_monitor_unittest.cc',
569 'thread_collision_warner_unittest.cc',
570 'thread_local_storage_unittest.cc',
571 'thread_local_unittest.cc',
572 'thread_unittest.cc',
573 'time_unittest.cc',
574 'time_win_unittest.cc',
575 'timer_unittest.cc',
576 'tracked_objects_unittest.cc',
577 'tuple_unittest.cc',
578 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31579 'version_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55580 'waitable_event_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31581 'waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55582 'watchdog_unittest.cc',
583 'win_util_unittest.cc',
584 'wmi_util_unittest.cc',
585 'word_iterator_unittest.cc',
586 'worker_pool_unittest.cc',
587 ],
588 'include_dirs': [
589 # word_iterator.h (used by word_iterator_unittest.cc) leaks an ICU
590 # #include for unicode/uchar.h. This should probably be cleaned up.
591 '../third_party/icu38/public/common',
592 ],
593 'dependencies': [
594 'base',
595 'base_gfx',
596 '../skia/skia.gyp:skia',
597 '../testing/gtest.gyp:gtest',
598 ],
599 'conditions': [
[email protected]8b03e8d2009-03-02 06:53:31600 ['OS == "linux"', {
601 'sources!': [
602 'file_version_info_unittest.cc',
603 # Linux has an implementation of idle_timer, but it's unclear
604 # if we want it yet, so leave it 'unported' for now.
605 'idletimer_unittest.cc',
[email protected]2d4f7b42009-04-03 20:21:52606 'worker_pool_linux_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31607 ],
[email protected]9d384032009-03-20 23:13:26608 'dependencies': [
609 '../build/linux/system.gyp:gtk',
610 ],
[email protected]8b03e8d2009-03-02 06:53:31611 }],
[email protected]2d4f7b42009-04-03 20:21:52612 ['OS == "mac"', {
613 'sources!': [
614 'directory_watcher_unittest.cc',
615 ],
616 }, { # OS != "mac"
[email protected]8b03e8d2009-03-02 06:53:31617 'sources!': [
618 'mac_util_unittest.cc',
619 ],
620 }],
[email protected]2f80c312009-02-25 21:26:55621 # This is needed to trigger the dll copy step on windows.
622 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31623 ['OS == "win"', {
624 'dependencies': [
625 '../third_party/icu38/icu38.gyp:icudata',
626 ],
627 'sources!': [
628 'data_pack_unittest.cc',
629 ],
630 }, { # OS != "win"
631 'sources!': [
632 'gfx/native_theme_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31633 'object_watcher_unittest.cc',
634 'pe_image_unittest.cc',
635 'scoped_bstr_win_unittest.cc',
636 'scoped_comptr_win_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28637 'scoped_variant_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31638 'system_monitor_unittest.cc',
639 'time_win_unittest.cc',
640 'win_util_unittest.cc',
641 'wmi_util_unittest.cc',
642 ],
643 }],
[email protected]2f80c312009-02-25 21:26:55644 ],
645 },
[email protected]e8ef09a2009-03-16 23:46:45646 {
647 'target_name': 'test_support_base',
648 'type': 'static_library',
649 'dependencies': [
650 'base',
651 '../testing/gtest.gyp:gtest',
652 ],
653 'sources': [
654 'perftimer.cc',
655 'run_all_perftests.cc',
656 ],
657 'direct_dependent_settings': {
658 'defines': [
659 'PERF_TEST',
660 ],
661 },
[email protected]9d384032009-03-20 23:13:26662 'conditions': [
663 ['OS == "linux"', {
664 'dependencies': [
665 # Needed to handle the #include chain:
666 # base/perf_test_suite.h
667 # base/test_suite.h
668 # gtk/gtk.h
669 '../build/linux/system.gyp:gtk',
670 ],
671 }],
672 ],
[email protected]e8ef09a2009-03-16 23:46:45673 },
[email protected]2f80c312009-02-25 21:26:55674 ],
675 'conditions': [
676 [ 'OS == "win"', {
677 'targets': [
678 {
679 'target_name': 'debug_message',
680 'type': 'executable',
681 'sources': [
682 'debug_message.cc',
683 ],
684 },
685 ],
686 }],
687 ],
688}