blob: f6a719278a32be7a064fa26ccf985a2155b38c1e [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',
[email protected]653bd5f032009-04-08 12:55:4915 'type': '<(library)',
[email protected]2f80c312009-02-25 21:26:5516 'dependencies': [
[email protected]280629492009-09-09 06:49:0817 '../third_party/icu/icu.gyp:icui18n',
18 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:5519 ],
[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',
[email protected]db7286d2009-04-10 16:36:3423 'crypto/cssm_init.cc',
24 'crypto/cssm_init.h',
[email protected]28ae8fe2009-06-05 18:25:0625 'crypto/rsa_private_key.h',
26 'crypto/rsa_private_key_win.cc',
27 'crypto/signature_creator.h',
28 'crypto/signature_creator_win.cc',
[email protected]db7286d2009-04-10 16:36:3429 'crypto/signature_verifier.h',
30 'crypto/signature_verifier_mac.cc',
31 'crypto/signature_verifier_nss.cc',
32 'crypto/signature_verifier_win.cc',
[email protected]2f80c312009-02-25 21:26:5533 'third_party/dmg_fp/dmg_fp.h',
34 'third_party/dmg_fp/dtoa.cc',
35 'third_party/dmg_fp/g_fmt.cc',
36 'third_party/nspr/prcpucfg.h',
37 'third_party/nspr/prcpucfg_win.h',
38 'third_party/nspr/prtime.cc',
39 'third_party/nspr/prtime.h',
40 'third_party/nspr/prtypes.h',
41 'third_party/nss/blapi.h',
42 'third_party/nss/blapit.h',
43 'third_party/nss/sha256.h',
44 'third_party/nss/sha512.cc',
45 'third_party/purify/pure.h',
46 'third_party/purify/pure_api.c',
[email protected]bff1ddf82009-05-16 04:30:0547 'third_party/xdg_mime/xdgmime.c',
48 'third_party/xdg_mime/xdgmime.h',
49 'third_party/xdg_mime/xdgmimealias.c',
50 'third_party/xdg_mime/xdgmimealias.h',
51 'third_party/xdg_mime/xdgmimecache.c',
52 'third_party/xdg_mime/xdgmimecache.h',
53 'third_party/xdg_mime/xdgmimeglob.c',
54 'third_party/xdg_mime/xdgmimeglob.h',
55 'third_party/xdg_mime/xdgmimeicon.c',
56 'third_party/xdg_mime/xdgmimeicon.h',
57 'third_party/xdg_mime/xdgmimeint.c',
58 'third_party/xdg_mime/xdgmimeint.h',
59 'third_party/xdg_mime/xdgmimemagic.c',
60 'third_party/xdg_mime/xdgmimemagic.h',
61 'third_party/xdg_mime/xdgmimeparent.c',
62 'third_party/xdg_mime/xdgmimeparent.h',
[email protected]2f80c312009-02-25 21:26:5563 'atomicops_internals_x86_gcc.cc',
64 'at_exit.cc',
65 'at_exit.h',
66 'atomic_ref_count.h',
67 'atomic_sequence_num.h',
68 'atomicops.h',
69 'atomicops_internals_x86_msvc.h',
70 'base_drag_source.cc',
71 'base_drag_source.h',
72 'base_drop_target.cc',
73 'base_drop_target.h',
74 'base_paths.cc',
75 'base_paths.h',
[email protected]08ef57ce2009-03-23 15:54:4376 'base_paths_linux.h',
[email protected]2f80c312009-02-25 21:26:5577 'base_paths_linux.cc',
[email protected]08ef57ce2009-03-23 15:54:4378 'base_paths_mac.h',
[email protected]2f80c312009-02-25 21:26:5579 'base_paths_mac.mm',
80 'base_paths_win.cc',
81 'base_paths_win.h',
82 'base_switches.cc',
83 'base_switches.h',
84 'basictypes.h',
85 'bzip2_error_handler.cc',
86 'clipboard.cc',
87 'clipboard.h',
88 'clipboard_linux.cc',
89 'clipboard_mac.mm',
90 'clipboard_util.cc',
91 'clipboard_util.h',
92 'clipboard_win.cc',
93 'command_line.cc',
94 'command_line.h',
95 'compiler_specific.h',
96 'condition_variable.h',
97 'condition_variable_posix.cc',
98 'condition_variable_win.cc',
99 'cpu.cc',
100 'cpu.h',
101 'data_pack.cc',
102 'debug_on_start.cc',
103 'debug_on_start.h',
104 'debug_util.cc',
105 'debug_util.h',
106 'debug_util_mac.cc',
107 'debug_util_posix.cc',
108 'debug_util_win.cc',
109 'directory_watcher.h',
[email protected]34c70c9f2009-03-18 14:35:58110 'directory_watcher_inotify.cc',
[email protected]e611fd662009-04-30 19:39:15111 'directory_watcher_mac.cc',
[email protected]2f80c312009-02-25 21:26:55112 'directory_watcher_win.cc',
[email protected]001b6942009-06-26 11:28:03113 'dynamic_annotations.h',
114 'dynamic_annotations.cc',
[email protected]2f80c312009-02-25 21:26:55115 'event_recorder.cc',
116 'event_recorder.h',
117 'event_recorder_stubs.cc',
118 'field_trial.cc',
119 'field_trial.h',
[email protected]3f04f2b2009-04-30 19:40:03120 'file_descriptor_shuffle.cc',
121 'file_descriptor_shuffle.h',
[email protected]2f80c312009-02-25 21:26:55122 'file_path.cc',
123 'file_path.h',
124 'file_util.cc',
125 'file_util.h',
[email protected]12adfaa72009-04-07 21:02:11126 'file_util_icu.cc',
[email protected]2f80c312009-02-25 21:26:55127 'file_util_linux.cc',
128 'file_util_mac.mm',
129 'file_util_posix.cc',
130 'file_util_win.cc',
131 'file_version_info.cc',
132 'file_version_info.h',
[email protected]2f80c312009-02-25 21:26:55133 'file_version_info_mac.mm',
134 'fix_wp64.h',
135 'float_util.h',
[email protected]08ef57ce2009-03-23 15:54:43136 'foundation_utils_mac.h',
[email protected]cc8f1462009-06-12 17:36:55137 'global_descriptors_posix.h',
138 'global_descriptors_posix.cc',
[email protected]2f80c312009-02-25 21:26:55139 'hash_tables.h',
140 'histogram.cc',
141 'histogram.h',
142 'hmac.h',
143 'hmac_mac.cc',
144 'hmac_nss.cc',
145 'hmac_win.cc',
146 'iat_patch.cc',
147 'iat_patch.h',
148 'icu_util.cc',
149 'icu_util.h',
[email protected]2f80c312009-02-25 21:26:55150 'idle_timer.cc',
151 'idle_timer.h',
152 'idle_timer_none.cc',
[email protected]925d5d602009-08-19 14:56:38153 'id_map.h',
[email protected]2f80c312009-02-25 21:26:55154 'image_util.cc',
155 'image_util.h',
156 'json_reader.cc',
157 'json_reader.h',
158 'json_writer.cc',
159 'json_writer.h',
160 'keyboard_codes.h',
161 'keyboard_codes_win.h',
162 'lazy_instance.cc',
163 'lazy_instance.h',
[email protected]48ca9012009-08-11 21:38:54164 'leak_tracker.h',
165 'linked_list.h',
[email protected]2f80c312009-02-25 21:26:55166 'linked_ptr.h',
[email protected]75ae5422009-04-21 17:20:10167 'linux_util.cc',
168 'linux_util.h',
[email protected]2f80c312009-02-25 21:26:55169 'lock.cc',
170 'lock.h',
171 'lock_impl.h',
172 'lock_impl_posix.cc',
173 'lock_impl_win.cc',
174 'logging.cc',
175 'logging.h',
[email protected]08ef57ce2009-03-23 15:54:43176 'mac_util.h',
[email protected]2f80c312009-02-25 21:26:55177 'mac_util.mm',
178 'md5.cc',
179 'md5.h',
180 'memory_debug.cc',
181 'memory_debug.h',
182 'message_loop.cc',
183 'message_loop.h',
184 'message_pump.h',
185 'message_pump_default.cc',
186 'message_pump_default.h',
187 'message_pump_glib.cc',
[email protected]08ef57ce2009-03-23 15:54:43188 'message_pump_glib.h',
[email protected]2f80c312009-02-25 21:26:55189 'message_pump_libevent.cc',
[email protected]08ef57ce2009-03-23 15:54:43190 'message_pump_libevent.h',
191 'message_pump_mac.h',
[email protected]2f80c312009-02-25 21:26:55192 'message_pump_mac.mm',
193 'message_pump_win.cc',
194 'message_pump_win.h',
[email protected]bff1ddf82009-05-16 04:30:05195 'mime_util.h',
196 'mime_util_linux.cc',
[email protected]f38e25f2009-04-21 00:56:07197 'native_library.h',
198 'native_library_linux.cc',
199 'native_library_mac.mm',
200 'native_library_win.cc',
[email protected]2f80c312009-02-25 21:26:55201 'non_thread_safe.cc',
202 'non_thread_safe.h',
203 'nss_init.cc',
[email protected]db7286d2009-04-10 16:36:34204 'nss_init.h',
[email protected]15bf8712009-08-27 00:55:02205 'nullable_string16.h',
[email protected]2f80c312009-02-25 21:26:55206 'object_watcher.cc',
207 'object_watcher.h',
208 'observer_list.h',
209 'observer_list_threadsafe.h',
210 'path_service.cc',
211 'path_service.h',
212 'pe_image.cc',
213 'pe_image.h',
214 'pickle.cc',
215 'pickle.h',
216 'platform_file.h',
217 'platform_file_win.cc',
218 'platform_file_posix.cc',
219 'platform_thread.h',
220 'platform_thread_mac.mm',
221 'platform_thread_posix.cc',
222 'platform_thread_win.cc',
223 'port.h',
[email protected]9b2217562009-03-09 21:26:28224 'profiler.cc',
225 'profiler.h',
[email protected]2f80c312009-02-25 21:26:55226 'process.h',
227 'process_posix.cc',
228 'process_util.h',
229 'process_util_linux.cc',
230 'process_util_mac.mm',
231 'process_util_posix.cc',
232 'process_util_win.cc',
233 'process_win.cc',
234 'rand_util.cc',
235 'rand_util.h',
236 'rand_util_posix.cc',
237 'rand_util_win.cc',
238 'ref_counted.cc',
239 'ref_counted.h',
240 'registry.cc',
241 'registry.h',
242 'resource_util.cc',
243 'resource_util.h',
244 'revocable_store.cc',
245 'revocable_store.h',
246 'scoped_bstr_win.cc',
247 'scoped_bstr_win.h',
[email protected]08ef57ce2009-03-23 15:54:43248 'scoped_cftyperef.h',
[email protected]2f80c312009-02-25 21:26:55249 'scoped_clipboard_writer.cc',
250 'scoped_clipboard_writer.h',
251 'scoped_comptr_win.h',
252 'scoped_handle.h',
253 'scoped_handle_win.h',
254 'scoped_nsautorelease_pool.h',
255 'scoped_nsautorelease_pool.mm',
[email protected]9a556e32009-06-09 17:39:34256 'scoped_nsdisable_screen_updates.h',
[email protected]08ef57ce2009-03-23 15:54:43257 'scoped_nsobject.h',
[email protected]2f80c312009-02-25 21:26:55258 'scoped_ptr.h',
259 'scoped_temp_dir.cc',
260 'scoped_temp_dir.h',
[email protected]e00d39192009-03-19 04:22:28261 'scoped_variant_win.cc',
262 'scoped_variant_win.h',
[email protected]807204142009-05-05 03:31:44263 'scoped_vector.h',
[email protected]2f80c312009-02-25 21:26:55264 'sha2.cc',
265 'sha2.h',
266 'shared_memory.h',
267 'shared_memory_posix.cc',
268 'shared_memory_win.cc',
269 'simple_thread.cc',
270 'simple_thread.h',
271 'singleton.h',
272 'spin_wait.h',
273 'stack_container.h',
274 'stats_counters.h',
275 'stats_table.cc',
276 'stats_table.h',
[email protected]807204142009-05-05 03:31:44277 'stl_util-inl.h',
[email protected]2f80c312009-02-25 21:26:55278 'string16.cc',
279 'string16.h',
280 'string_escape.cc',
281 'string_escape.h',
282 'string_piece.cc',
283 'string_piece.h',
284 'string_tokenizer.h',
285 'string_util.cc',
286 'string_util.h',
287 'string_util_icu.cc',
288 'string_util_win.h',
289 'sys_info.h',
[email protected]61b8ad72009-07-22 00:35:18290 'sys_info_chromeos.cc',
[email protected]2f80c312009-02-25 21:26:55291 'sys_info_mac.cc',
292 'sys_info_posix.cc',
293 'sys_info_win.cc',
294 'sys_string_conversions.h',
295 'sys_string_conversions_linux.cc',
296 'sys_string_conversions_mac.mm',
297 'sys_string_conversions_win.cc',
298 'system_monitor.cc',
299 'system_monitor.h',
300 'system_monitor_posix.cc',
301 'system_monitor_win.cc',
302 'task.h',
[email protected]2f80c312009-02-25 21:26:55303 'thread.cc',
304 'thread.h',
305 'thread_collision_warner.cc',
306 'thread_collision_warner.h',
307 'thread_local.h',
308 'thread_local_posix.cc',
309 'thread_local_storage.h',
310 'thread_local_storage_posix.cc',
311 'thread_local_storage_win.cc',
312 'thread_local_win.cc',
313 'time.cc',
314 'time.h',
315 'time_format.cc',
316 'time_format.h',
317 'time_mac.cc',
318 'time_posix.cc',
319 'time_win.cc',
320 'timer.cc',
321 'timer.h',
322 'trace_event.cc',
323 'trace_event.h',
324 'tracked.cc',
325 'tracked.h',
326 'tracked_objects.cc',
327 'tracked_objects.h',
328 'tuple.h',
[email protected]cc8f1462009-06-12 17:36:55329 'unix_domain_socket_posix.cc',
[email protected]2f80c312009-02-25 21:26:55330 'values.cc',
331 'values.h',
332 'version.cc',
333 'version.h',
334 'waitable_event.h',
335 'waitable_event_posix.cc',
336 'waitable_event_watcher.h',
337 'waitable_event_watcher_posix.cc',
338 'waitable_event_watcher_win.cc',
339 'waitable_event_win.cc',
340 'watchdog.cc',
341 'watchdog.h',
[email protected]3125d6462009-09-01 20:50:17342 'weak_ptr.h',
[email protected]2f80c312009-02-25 21:26:55343 'win_util.cc',
344 'win_util.h',
345 'windows_message_list.h',
346 'wmi_util.cc',
347 'wmi_util.h',
348 'word_iterator.cc',
349 'word_iterator.h',
[email protected]2f80c312009-02-25 21:26:55350 'worker_pool.h',
[email protected]5846da02009-03-06 20:35:45351 'worker_pool_linux.cc',
[email protected]250103f2009-03-24 23:41:53352 'worker_pool_linux.h',
[email protected]2f80c312009-02-25 21:26:55353 'worker_pool_mac.mm',
[email protected]5846da02009-03-06 20:35:45354 'worker_pool_win.cc',
[email protected]2f80c312009-02-25 21:26:55355 ],
356 'include_dirs': [
357 '..',
358 ],
359 'direct_dependent_settings': {
360 'include_dirs': [
361 '..',
362 ],
363 },
364 # These warnings are needed for the files in third_party\dmg_fp.
365 'msvs_disabled_warnings': [
366 4244, 4554, 4018, 4102,
367 ],
368 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46369 [ 'OS == "linux" or OS == "freebsd"', {
[email protected]b7b0676f2009-08-26 21:53:46370 'variables' : {
371 'linux_use_tcmalloc%': 0,
372 },
[email protected]61b8ad72009-07-22 00:35:18373 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'],
[email protected]2f80c312009-02-25 21:26:55374 ['exclude', '\\.mm?$' ] ],
375 'sources!': [
376 # Linux has an implementation of idle_timer that depends
377 # on XScreenSaver, but it's unclear if we want it yet,
378 # so use idle_timer_none.cc instead.
379 'idle_timer.cc',
380 ],
[email protected]61b8ad72009-07-22 00:35:18381 'conditions': [
382 [ 'chromeos==1', {
383 'sources/': [ ['include', '_chromeos\\.cc$'] ]
384 },
385 ],
[email protected]b7b0676f2009-08-26 21:53:46386 [ 'linux_use_tcmalloc==1', {
387 'dependencies': [
388 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
389 ],
390 },
391 ],
[email protected]61b8ad72009-07-22 00:35:18392 ],
[email protected]9d384032009-03-20 23:13:26393 'dependencies': [
[email protected]198d68d2009-06-04 16:08:16394 '../build/util/build_util.gyp:lastchange',
[email protected]9d384032009-03-20 23:13:26395 '../build/linux/system.gyp:gtk',
396 '../build/linux/system.gyp:nss',
397 ],
398 'cflags': [
399 '-Wno-write-strings',
400 ],
[email protected]ac594d32009-09-07 18:29:35401 'link_settings': {
402 'libraries': [
403 # We need rt for clock_gettime().
404 '-lrt',
405 ],
406 },
[email protected]faabcf42009-05-18 21:12:34407 'export_dependent_settings': [
408 '../build/linux/system.gyp:gtk',
409 ],
[email protected]2f80c312009-02-25 21:26:55410 },
[email protected]fb66f9d2009-09-07 16:39:46411 { # else: OS != "linux" && OS != "freebsd"
[email protected]bff1ddf82009-05-16 04:30:05412 'sources/': [
413 ['exclude', '/xdg_mime/'],
414 ],
[email protected]2f80c312009-02-25 21:26:55415 'sources!': [
[email protected]db7286d2009-04-10 16:36:34416 'crypto/signature_verifier_nss.cc',
[email protected]2f80c312009-02-25 21:26:55417 'atomicops_internals_x86_gcc.cc',
[email protected]34c70c9f2009-03-18 14:35:58418 'directory_watcher_inotify.cc',
[email protected]2f80c312009-02-25 21:26:55419 'hmac_nss.cc',
420 'idle_timer_none.cc',
[email protected]75ae5422009-04-21 17:20:10421 'linux_util.cc',
[email protected]2f80c312009-02-25 21:26:55422 'message_pump_glib.cc',
423 'nss_init.cc',
[email protected]db7286d2009-04-10 16:36:34424 'nss_init.h',
[email protected]2f80c312009-02-25 21:26:55425 'time_posix.cc',
426 ],
427 }
428 ],
[email protected]398a3162009-03-18 23:19:10429 [ 'GENERATOR == "quentin"', {
430 # Quentin builds don't have a recent enough glibc to include the
431 # inotify headers
432 'sources!': [
433 'directory_watcher_inotify.cc',
434 ],
435 'sources': [
436 'directory_watcher_stub.cc',
437 ],
438 },
439 ],
[email protected]fb66f9d2009-09-07 16:39:46440 [ 'OS == "freebsd"', {
441 'sources!': [
442 'directory_watcher_inotify.cc',
443 ],
444 'sources': [
445 'directory_watcher_stub.cc',
446 ],
447 },
448 ],
[email protected]2f80c312009-02-25 21:26:55449 [ 'OS == "mac"', {
[email protected]61b8ad72009-07-22 00:35:18450 'sources/': [ ['exclude', '_(linux|win|chromeos)\\.cc$'] ],
[email protected]2f80c312009-02-25 21:26:55451 'sources!': [
[email protected]2f80c312009-02-25 21:26:55452 ],
453 'link_settings': {
454 'libraries': [
455 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
456 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
457 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
458 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
[email protected]db7286d2009-04-10 16:36:34459 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
[email protected]2f80c312009-02-25 21:26:55460 ],
461 },
462 },
[email protected]db7286d2009-04-10 16:36:34463 { # else: OS != "mac"
464 'sources!': [
465 'crypto/cssm_init.cc',
466 'crypto/cssm_init.h',
467 ],
468 }
[email protected]2f80c312009-02-25 21:26:55469 ],
470 [ 'OS == "win"', {
[email protected]f0953deb2009-08-07 20:57:16471 'include_dirs': [
472 '../chrome/third_party/wtl/include',
473 ],
[email protected]61b8ad72009-07-22 00:35:18474 'sources/': [ ['exclude', '_(linux|mac|posix|chromeos)\\.cc$'],
[email protected]2f80c312009-02-25 21:26:55475 ['exclude', '\\.mm?$' ] ],
[email protected]f0953deb2009-08-07 20:57:16476 'sources': [
477 'window_impl.cc',
478 'window_impl.h',
479 ],
[email protected]2f80c312009-02-25 21:26:55480 'sources!': [
[email protected]b8e1f95c2009-02-26 15:25:44481 'data_pack.cc',
[email protected]2f80c312009-02-25 21:26:55482 'event_recorder_stubs.cc',
[email protected]3f04f2b2009-04-30 19:40:03483 'file_descriptor_shuffle.cc',
[email protected]2f80c312009-02-25 21:26:55484 'message_pump_libevent.cc',
485 'string16.cc',
486 ],
487 },
488 { # else: OS != "win"
489 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
490 'sources!': [
491 'third_party/purify/pure_api.c',
492 'base_drag_source.cc',
493 'base_drop_target.cc',
494 'cpu.cc',
495 'clipboard_util.cc',
496 'debug_on_start.cc',
497 'event_recorder.cc',
498 'file_version_info.cc',
499 'iat_patch.cc',
500 'image_util.cc',
501 'object_watcher.cc',
502 'pe_image.cc',
503 'registry.cc',
504 'resource_util.cc',
505 'win_util.cc',
506 'wmi_util.cc',
507 ],
508 },
509 ],
510 ],
511 },
512 {
513 'target_name': 'base_gfx',
[email protected]653bd5f032009-04-08 12:55:49514 'type': '<(library)',
[email protected]0d54d2e2009-03-10 22:25:54515 'msvs_guid': 'A508ADD3-CECE-4E0F-8448-2F5E454DF551',
[email protected]2f80c312009-02-25 21:26:55516 'sources': [
[email protected]c9e8ab92009-07-24 20:35:28517 'gfx/blit.cc',
518 'gfx/blit.h',
[email protected]2f80c312009-02-25 21:26:55519 'gfx/gdi_util.cc',
520 'gfx/gdi_util.h',
[email protected]6639f5c2009-04-24 01:59:32521 'gfx/gtk_native_view_id_manager.cc',
522 'gfx/gtk_native_view_id_manager.h',
[email protected]40c3f522009-03-06 21:33:46523 'gfx/gtk_util.cc',
524 'gfx/gtk_util.h',
[email protected]2f80c312009-02-25 21:26:55525 'gfx/jpeg_codec.cc',
526 'gfx/jpeg_codec.h',
527 'gfx/native_theme.cc',
528 'gfx/native_theme.h',
529 'gfx/native_widget_types.h',
[email protected]6639f5c2009-04-24 01:59:32530 'gfx/native_widget_types_gtk.cc',
[email protected]2f80c312009-02-25 21:26:55531 'gfx/png_decoder.cc',
532 'gfx/png_decoder.h',
533 'gfx/png_encoder.cc',
534 'gfx/png_encoder.h',
535 'gfx/point.cc',
536 'gfx/point.h',
537 'gfx/rect.cc',
538 'gfx/rect.h',
539 'gfx/size.cc',
540 'gfx/size.h',
541 ],
542 'mac_framework_dirs': [
543 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
544 ],
545 'dependencies': [
546 'base',
547 '../skia/skia.gyp:skia',
548 '../third_party/libjpeg/libjpeg.gyp:libjpeg',
549 '../third_party/libpng/libpng.gyp:libpng',
550 '../third_party/zlib/zlib.gyp:zlib',
551 ],
552 'export_dependent_settings': [
553 'base',
554 ],
555 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46556 ['OS == "linux" or OS == "freebsd"', {
[email protected]9d384032009-03-20 23:13:26557 'dependencies': [
558 '../build/linux/system.gyp:gtk',
559 ],
560 }],
[email protected]2f80c312009-02-25 21:26:55561 [ 'OS != "win"', { 'sources!': [
[email protected]40c3f522009-03-06 21:33:46562 'gfx/gdi_util.cc',
563 'gfx/native_theme.cc',
[email protected]9e450f22009-03-10 23:12:16564 ],
[email protected]40c3f522009-03-06 21:33:46565 }],
[email protected]fb66f9d2009-09-07 16:39:46566 [ 'OS != "linux" and OS != "freebsd"', { 'sources!': [
[email protected]6639f5c2009-04-24 01:59:32567 'gfx/gtk_native_view_id_manager.cc',
[email protected]40c3f522009-03-06 21:33:46568 'gfx/gtk_util.cc',
[email protected]6639f5c2009-04-24 01:59:32569 'gfx/native_widget_types_gtk.cc',
[email protected]9e450f22009-03-10 23:12:16570 ],
[email protected]2f80c312009-02-25 21:26:55571 }],
572 ],
573 },
574 {
575 'target_name': 'base_unittests',
576 'type': 'executable',
[email protected]9e450f22009-03-10 23:12:16577 'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC',
[email protected]2f80c312009-02-25 21:26:55578 'sources': [
[email protected]c7f475ed2009-09-08 17:25:40579 # Infrastructure files.
580 'multiprocess_test.h',
581 'run_all_unittests.cc',
582 'test_suite.h',
583
584 # Tests.
[email protected]2f80c312009-02-25 21:26:55585 'at_exit_unittest.cc',
586 'atomicops_unittest.cc',
587 'clipboard_unittest.cc',
588 'command_line_unittest.cc',
589 'condition_variable_unittest.cc',
[email protected]28ae8fe2009-06-05 18:25:06590 'crypto/rsa_private_key_unittest.cc',
591 'crypto/signature_creator_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:56592 'crypto/signature_verifier_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55593 'data_pack_unittest.cc',
[email protected]96fd0032009-04-24 00:13:08594 'debug_util_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55595 'directory_watcher_unittest.cc',
596 'field_trial_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03597 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55598 'file_path_unittest.cc',
599 'file_util_unittest.cc',
600 'file_version_info_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:56601 'gfx/jpeg_codec_unittest.cc',
602 'gfx/native_theme_unittest.cc',
603 'gfx/png_codec_unittest.cc',
604 'gfx/rect_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:59605 'gmock_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55606 'histogram_unittest.cc',
607 'hmac_unittest.cc',
608 'idletimer_unittest.cc',
[email protected]925d5d602009-08-19 14:56:38609 'id_map_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55610 'json_reader_unittest.cc',
611 'json_writer_unittest.cc',
612 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:54613 'leak_tracker_unittest.cc',
614 'linked_list_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55615 'linked_ptr_unittest.cc',
616 'mac_util_unittest.cc',
617 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44618 'message_pump_glib_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55619 'object_watcher_unittest.cc',
620 'observer_list_unittest.cc',
621 'path_service_unittest.cc',
622 'pe_image_unittest.cc',
623 'pickle_unittest.cc',
624 'pr_time_unittest.cc',
625 'process_util_unittest.cc',
626 'rand_util_unittest.cc',
627 'ref_counted_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55628 'scoped_bstr_win_unittest.cc',
629 'scoped_comptr_win_unittest.cc',
630 'scoped_ptr_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31631 'scoped_temp_dir_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28632 'scoped_variant_win_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55633 'sha2_unittest.cc',
634 'shared_memory_unittest.cc',
635 'simple_thread_unittest.cc',
636 'singleton_unittest.cc',
637 'stack_container_unittest.cc',
638 'stats_table_unittest.cc',
639 'string_escape_unittest.cc',
640 'string_piece_unittest.cc',
641 'string_tokenizer_unittest.cc',
642 'string_util_unittest.cc',
643 'sys_info_unittest.cc',
644 'sys_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55645 'system_monitor_unittest.cc',
[email protected]5b6c1a802009-07-17 18:14:47646 'task_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55647 'thread_collision_warner_unittest.cc',
648 'thread_local_storage_unittest.cc',
649 'thread_local_unittest.cc',
650 'thread_unittest.cc',
651 'time_unittest.cc',
652 'time_win_unittest.cc',
653 'timer_unittest.cc',
654 'tracked_objects_unittest.cc',
655 'tuple_unittest.cc',
656 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31657 'version_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55658 'waitable_event_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31659 'waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55660 'watchdog_unittest.cc',
[email protected]3125d6462009-09-01 20:50:17661 'weak_ptr_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55662 'win_util_unittest.cc',
663 'wmi_util_unittest.cc',
664 'word_iterator_unittest.cc',
665 'worker_pool_unittest.cc',
666 ],
667 'include_dirs': [
668 # word_iterator.h (used by word_iterator_unittest.cc) leaks an ICU
669 # #include for unicode/uchar.h. This should probably be cleaned up.
[email protected]280629492009-09-09 06:49:08670 '../third_party/icu/public/common',
[email protected]2f80c312009-02-25 21:26:55671 ],
672 'dependencies': [
673 'base',
674 'base_gfx',
675 '../skia/skia.gyp:skia',
[email protected]ce3157102009-05-28 07:23:16676 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55677 '../testing/gtest.gyp:gtest',
678 ],
679 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46680 ['OS == "linux" or OS == "freebsd"', {
[email protected]8b03e8d2009-03-02 06:53:31681 'sources!': [
682 'file_version_info_unittest.cc',
683 # Linux has an implementation of idle_timer, but it's unclear
684 # if we want it yet, so leave it 'unported' for now.
685 'idletimer_unittest.cc',
[email protected]2d4f7b42009-04-03 20:21:52686 'worker_pool_linux_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31687 ],
[email protected]9d384032009-03-20 23:13:26688 'dependencies': [
689 '../build/linux/system.gyp:gtk',
[email protected]db7286d2009-04-10 16:36:34690 '../build/linux/system.gyp:nss',
[email protected]9d384032009-03-20 23:13:26691 ],
[email protected]fb66f9d2009-09-07 16:39:46692 }, { # OS != "linux" and OS != "freebsd"
[email protected]b44d5cc2009-06-15 10:30:44693 'sources!': [
694 'message_pump_glib_unittest.cc',
695 ]
[email protected]8b03e8d2009-03-02 06:53:31696 }],
[email protected]e611fd662009-04-30 19:39:15697 ['OS != "mac"', {
[email protected]8b03e8d2009-03-02 06:53:31698 'sources!': [
699 'mac_util_unittest.cc',
700 ],
701 }],
[email protected]2f80c312009-02-25 21:26:55702 # This is needed to trigger the dll copy step on windows.
703 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31704 ['OS == "win"', {
705 'dependencies': [
[email protected]280629492009-09-09 06:49:08706 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31707 ],
708 'sources!': [
709 'data_pack_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03710 'file_descriptor_shuffle_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31711 ],
712 }, { # OS != "win"
713 'sources!': [
[email protected]28ae8fe2009-06-05 18:25:06714 'crypto/rsa_private_key_unittest.cc',
715 'crypto/signature_creator_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31716 'gfx/native_theme_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31717 'object_watcher_unittest.cc',
718 'pe_image_unittest.cc',
719 'scoped_bstr_win_unittest.cc',
720 'scoped_comptr_win_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28721 'scoped_variant_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31722 'system_monitor_unittest.cc',
723 'time_win_unittest.cc',
724 'win_util_unittest.cc',
725 'wmi_util_unittest.cc',
726 ],
727 }],
[email protected]2f80c312009-02-25 21:26:55728 ],
729 },
[email protected]e8ef09a2009-03-16 23:46:45730 {
731 'target_name': 'test_support_base',
[email protected]653bd5f032009-04-08 12:55:49732 'type': '<(library)',
[email protected]e8ef09a2009-03-16 23:46:45733 'dependencies': [
734 'base',
[email protected]7d1ba9392009-08-03 18:35:06735 ],
736 'sources': [
737 'test_file_util.h',
738 'test_file_util_linux.cc',
739 'test_file_util_mac.cc',
740 'test_file_util_posix.cc',
741 'test_file_util_win.cc',
742 ],
743 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46744 [ 'OS == "linux" or OS == "freebsd"', {
[email protected]7d1ba9392009-08-03 18:35:06745 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'],
746 ['exclude', '\\.mm?$' ] ],
747 'conditions': [
748 [ 'chromeos==1', {
749 'sources/': [ ['include', '_chromeos\\.cc$'] ]
750 },
751 ],
752 ],
753 },
754 ],
755 [ 'OS == "mac"', {
756 'sources/': [ ['exclude', '_(linux|win|chromeos)\\.cc$'] ],
757 },
758 ],
759 [ 'OS == "win"', {
760 'sources/': [ ['exclude', '_(linux|mac|posix|chromeos)\\.cc$'],
761 ['exclude', '\\.mm?$' ] ],
762 },
763 ],
764 ],
765 },
766 {
767 'target_name': 'test_support_perf',
768 'type': '<(library)',
769 'dependencies': [
770 'base',
[email protected]e8ef09a2009-03-16 23:46:45771 '../testing/gtest.gyp:gtest',
772 ],
773 'sources': [
774 'perftimer.cc',
775 'run_all_perftests.cc',
776 ],
777 'direct_dependent_settings': {
778 'defines': [
779 'PERF_TEST',
780 ],
781 },
[email protected]9d384032009-03-20 23:13:26782 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46783 ['OS == "linux" or OS == "freebsd"', {
[email protected]9d384032009-03-20 23:13:26784 'dependencies': [
785 # Needed to handle the #include chain:
786 # base/perf_test_suite.h
787 # base/test_suite.h
788 # gtk/gtk.h
789 '../build/linux/system.gyp:gtk',
790 ],
791 }],
792 ],
[email protected]e8ef09a2009-03-16 23:46:45793 },
[email protected]2f80c312009-02-25 21:26:55794 ],
795 'conditions': [
796 [ 'OS == "win"', {
797 'targets': [
798 {
799 'target_name': 'debug_message',
800 'type': 'executable',
801 'sources': [
802 'debug_message.cc',
803 ],
[email protected]3f8bfc362009-05-22 02:39:14804 'msvs_settings': {
805 'VCLinkerTool': {
806 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
807 },
808 },
[email protected]2f80c312009-02-25 21:26:55809 },
810 ],
811 }],
[email protected]fb66f9d2009-09-07 16:39:46812 [ 'OS == "linux" or OS == "freebsd"', {
[email protected]24a0e29c2009-07-29 23:02:55813 'targets': [
814 {
815 'target_name': 'linux_versioninfo',
816 'type': '<(library)',
817 'sources': [
818 'file_version_info_linux.cc',
819 ],
820 'include_dirs': [
821 '..',
822 '<(SHARED_INTERMEDIATE_DIR)',
823 ],
824 'actions': [
825 {
826 'action_name': 'linux_version',
827 'variables': {
828 'lastchange_path':
829 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
830 'version_py_path': '../chrome/tools/build/version.py',
831 'version_path': '../chrome/VERSION',
832 'template_input_path': 'file_version_info_linux.h.version',
833 },
834 'conditions': [
835 [ 'branding == "Chrome"', {
836 'variables': {
837 'branding_path':
838 '../chrome/app/theme/google_chrome/BRANDING',
839 },
840 }, { # else branding!="Chrome"
841 'variables': {
842 'branding_path':
843 '../chrome/app/theme/chromium/BRANDING',
844 },
845 }],
846 ],
847 'inputs': [
848 '<(template_input_path)',
849 '<(version_path)',
850 '<(branding_path)',
851 '<(lastchange_path)',
852 ],
853 'outputs': [
854 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
855 ],
856 'action': [
857 'python',
858 '<(version_py_path)',
859 '-f', '<(version_path)',
860 '-f', '<(branding_path)',
861 '-f', '<(lastchange_path)',
862 '<(template_input_path)',
863 '<@(_outputs)',
864 ],
865 'message': 'Generating version information',
866 },
867 ],
868 },
869 ],
870 }],
[email protected]2f80c312009-02-25 21:26:55871 ],
872}