blob: 0ad3f164eb0c768a83d537b6bebd2fb217692578 [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 },
[email protected]2f80c312009-02-25 21:26:559 'targets': [
10 {
11 'target_name': 'base',
[email protected]653bd5f032009-04-08 12:55:4912 'type': '<(library)',
[email protected]2f80c312009-02-25 21:26:5513 'dependencies': [
[email protected]280629492009-09-09 06:49:0814 '../third_party/icu/icu.gyp:icui18n',
15 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:5516 ],
[email protected]0d54d2e2009-03-10 22:25:5417 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
[email protected]2f80c312009-02-25 21:26:5518 'sources': [
19 '../build/build_config.h',
[email protected]db7286d2009-04-10 16:36:3420 'crypto/cssm_init.cc',
21 'crypto/cssm_init.h',
[email protected]28ae8fe2009-06-05 18:25:0622 'crypto/rsa_private_key.h',
[email protected]0691bdf42009-10-02 21:05:0123 'crypto/rsa_private_key_mac.cc',
[email protected]71a9f842009-09-24 01:21:1224 'crypto/rsa_private_key_nss.cc',
[email protected]28ae8fe2009-06-05 18:25:0625 'crypto/rsa_private_key_win.cc',
26 'crypto/signature_creator.h',
[email protected]e90ed8a2009-10-06 18:55:3527 'crypto/signature_creator_mac.cc',
[email protected]71a9f842009-09-24 01:21:1228 'crypto/signature_creator_nss.cc',
[email protected]28ae8fe2009-06-05 18:25:0629 'crypto/signature_creator_win.cc',
[email protected]db7286d2009-04-10 16:36:3430 'crypto/signature_verifier.h',
31 'crypto/signature_verifier_mac.cc',
32 'crypto/signature_verifier_nss.cc',
33 'crypto/signature_verifier_win.cc',
[email protected]2f80c312009-02-25 21:26:5534 'third_party/dmg_fp/dmg_fp.h',
35 'third_party/dmg_fp/dtoa.cc',
36 'third_party/dmg_fp/g_fmt.cc',
37 'third_party/nspr/prcpucfg.h',
38 'third_party/nspr/prcpucfg_win.h',
39 'third_party/nspr/prtime.cc',
40 'third_party/nspr/prtime.h',
41 'third_party/nspr/prtypes.h',
42 'third_party/nss/blapi.h',
43 'third_party/nss/blapit.h',
44 'third_party/nss/sha256.h',
45 'third_party/nss/sha512.cc',
46 'third_party/purify/pure.h',
47 'third_party/purify/pure_api.c',
[email protected]bff1ddf82009-05-16 04:30:0548 'third_party/xdg_mime/xdgmime.c',
49 'third_party/xdg_mime/xdgmime.h',
50 'third_party/xdg_mime/xdgmimealias.c',
51 'third_party/xdg_mime/xdgmimealias.h',
52 'third_party/xdg_mime/xdgmimecache.c',
53 'third_party/xdg_mime/xdgmimecache.h',
54 'third_party/xdg_mime/xdgmimeglob.c',
55 'third_party/xdg_mime/xdgmimeglob.h',
56 'third_party/xdg_mime/xdgmimeicon.c',
57 'third_party/xdg_mime/xdgmimeicon.h',
58 'third_party/xdg_mime/xdgmimeint.c',
59 'third_party/xdg_mime/xdgmimeint.h',
60 'third_party/xdg_mime/xdgmimemagic.c',
61 'third_party/xdg_mime/xdgmimemagic.h',
62 'third_party/xdg_mime/xdgmimeparent.c',
63 'third_party/xdg_mime/xdgmimeparent.h',
[email protected]2f80c312009-02-25 21:26:5564 'atomicops_internals_x86_gcc.cc',
65 'at_exit.cc',
66 'at_exit.h',
67 'atomic_ref_count.h',
68 'atomic_sequence_num.h',
69 'atomicops.h',
70 'atomicops_internals_x86_msvc.h',
71 'base_drag_source.cc',
72 'base_drag_source.h',
73 'base_drop_target.cc',
74 'base_drop_target.h',
75 'base_paths.cc',
76 'base_paths.h',
[email protected]08ef57ce2009-03-23 15:54:4377 'base_paths_linux.h',
[email protected]2f80c312009-02-25 21:26:5578 'base_paths_linux.cc',
[email protected]08ef57ce2009-03-23 15:54:4379 'base_paths_mac.h',
[email protected]2f80c312009-02-25 21:26:5580 'base_paths_mac.mm',
81 'base_paths_win.cc',
82 'base_paths_win.h',
83 'base_switches.cc',
84 'base_switches.h',
85 'basictypes.h',
86 'bzip2_error_handler.cc',
[email protected]e798e1922009-09-17 20:43:0687 'cocoa_protocols_mac.h',
[email protected]2f80c312009-02-25 21:26:5588 'command_line.cc',
89 'command_line.h',
90 'compiler_specific.h',
91 'condition_variable.h',
92 'condition_variable_posix.cc',
93 'condition_variable_win.cc',
94 'cpu.cc',
95 'cpu.h',
96 'data_pack.cc',
97 'debug_on_start.cc',
98 'debug_on_start.h',
99 'debug_util.cc',
100 'debug_util.h',
101 'debug_util_mac.cc',
102 'debug_util_posix.cc',
103 'debug_util_win.cc',
104 'directory_watcher.h',
[email protected]34c70c9f2009-03-18 14:35:58105 'directory_watcher_inotify.cc',
[email protected]e611fd662009-04-30 19:39:15106 'directory_watcher_mac.cc',
[email protected]2f80c312009-02-25 21:26:55107 'directory_watcher_win.cc',
[email protected]001b6942009-06-26 11:28:03108 'dynamic_annotations.h',
109 'dynamic_annotations.cc',
[email protected]2f80c312009-02-25 21:26:55110 'event_recorder.cc',
111 'event_recorder.h',
112 'event_recorder_stubs.cc',
113 'field_trial.cc',
114 'field_trial.h',
[email protected]3f04f2b2009-04-30 19:40:03115 'file_descriptor_shuffle.cc',
116 'file_descriptor_shuffle.h',
[email protected]2f80c312009-02-25 21:26:55117 'file_path.cc',
118 'file_path.h',
119 'file_util.cc',
120 'file_util.h',
[email protected]12adfaa72009-04-07 21:02:11121 'file_util_icu.cc',
[email protected]2f80c312009-02-25 21:26:55122 'file_util_linux.cc',
123 'file_util_mac.mm',
124 'file_util_posix.cc',
125 'file_util_win.cc',
126 'file_version_info.cc',
127 'file_version_info.h',
[email protected]2f80c312009-02-25 21:26:55128 'file_version_info_mac.mm',
129 'fix_wp64.h',
130 'float_util.h',
[email protected]08ef57ce2009-03-23 15:54:43131 'foundation_utils_mac.h',
[email protected]cc8f1462009-06-12 17:36:55132 'global_descriptors_posix.h',
133 'global_descriptors_posix.cc',
[email protected]2f80c312009-02-25 21:26:55134 'hash_tables.h',
135 'histogram.cc',
136 'histogram.h',
137 'hmac.h',
138 'hmac_mac.cc',
139 'hmac_nss.cc',
140 'hmac_win.cc',
[email protected]2973ab52009-10-02 23:29:19141 'i18n/string_conversions.cc',
142 'i18n/string_conversions.h',
[email protected]2f80c312009-02-25 21:26:55143 'iat_patch.cc',
144 'iat_patch.h',
145 'icu_util.cc',
146 'icu_util.h',
[email protected]925d5d602009-08-19 14:56:38147 'id_map.h',
[email protected]2f80c312009-02-25 21:26:55148 'image_util.cc',
149 'image_util.h',
150 'json_reader.cc',
151 'json_reader.h',
152 'json_writer.cc',
153 'json_writer.h',
[email protected]c566c6102009-09-25 23:15:41154 'keyboard_code_conversion_gtk.cc',
155 'keyboard_code_conversion_gtk.h',
[email protected]2f80c312009-02-25 21:26:55156 'keyboard_codes.h',
157 'keyboard_codes_win.h',
[email protected]c566c6102009-09-25 23:15:41158 'keyboard_codes_posix.h',
[email protected]2f80c312009-02-25 21:26:55159 'lazy_instance.cc',
160 'lazy_instance.h',
[email protected]48ca9012009-08-11 21:38:54161 'leak_tracker.h',
162 'linked_list.h',
[email protected]2f80c312009-02-25 21:26:55163 'linked_ptr.h',
[email protected]75ae5422009-04-21 17:20:10164 'linux_util.cc',
165 'linux_util.h',
[email protected]2f80c312009-02-25 21:26:55166 'lock.cc',
167 'lock.h',
168 'lock_impl.h',
169 'lock_impl_posix.cc',
170 'lock_impl_win.cc',
171 'logging.cc',
172 'logging.h',
[email protected]08ef57ce2009-03-23 15:54:43173 'mac_util.h',
[email protected]2f80c312009-02-25 21:26:55174 'mac_util.mm',
175 'md5.cc',
176 'md5.h',
177 'memory_debug.cc',
178 'memory_debug.h',
179 'message_loop.cc',
180 'message_loop.h',
181 'message_pump.h',
182 'message_pump_default.cc',
183 'message_pump_default.h',
184 'message_pump_glib.cc',
[email protected]08ef57ce2009-03-23 15:54:43185 'message_pump_glib.h',
[email protected]2f80c312009-02-25 21:26:55186 'message_pump_libevent.cc',
[email protected]08ef57ce2009-03-23 15:54:43187 'message_pump_libevent.h',
188 'message_pump_mac.h',
[email protected]2f80c312009-02-25 21:26:55189 'message_pump_mac.mm',
190 'message_pump_win.cc',
191 'message_pump_win.h',
[email protected]bff1ddf82009-05-16 04:30:05192 'mime_util.h',
193 'mime_util_linux.cc',
[email protected]f38e25f2009-04-21 00:56:07194 'native_library.h',
195 'native_library_linux.cc',
196 'native_library_mac.mm',
197 'native_library_win.cc',
[email protected]2f80c312009-02-25 21:26:55198 'non_thread_safe.cc',
199 'non_thread_safe.h',
[email protected]3075a7f2009-10-05 19:07:34200 'nsimage_cache_mac.h',
201 'nsimage_cache_mac.mm',
[email protected]2f80c312009-02-25 21:26:55202 'nss_init.cc',
[email protected]db7286d2009-04-10 16:36:34203 'nss_init.h',
[email protected]15bf8712009-08-27 00:55:02204 'nullable_string16.h',
[email protected]2f80c312009-02-25 21:26:55205 'object_watcher.cc',
206 'object_watcher.h',
207 'observer_list.h',
208 'observer_list_threadsafe.h',
209 'path_service.cc',
210 'path_service.h',
211 'pe_image.cc',
212 'pe_image.h',
213 'pickle.cc',
214 'pickle.h',
215 'platform_file.h',
216 'platform_file_win.cc',
217 'platform_file_posix.cc',
218 'platform_thread.h',
219 'platform_thread_mac.mm',
220 'platform_thread_posix.cc',
221 'platform_thread_win.cc',
222 'port.h',
[email protected]9b2217562009-03-09 21:26:28223 'profiler.cc',
224 'profiler.h',
[email protected]2f80c312009-02-25 21:26:55225 'process.h',
226 'process_posix.cc',
227 'process_util.h',
228 'process_util_linux.cc',
229 'process_util_mac.mm',
230 'process_util_posix.cc',
231 'process_util_win.cc',
232 'process_win.cc',
233 'rand_util.cc',
234 'rand_util.h',
235 'rand_util_posix.cc',
236 'rand_util_win.cc',
237 'ref_counted.cc',
238 'ref_counted.h',
239 'registry.cc',
240 'registry.h',
241 'resource_util.cc',
242 'resource_util.h',
[email protected]2f80c312009-02-25 21:26:55243 'scoped_bstr_win.cc',
244 'scoped_bstr_win.h',
[email protected]08ef57ce2009-03-23 15:54:43245 'scoped_cftyperef.h',
[email protected]2f80c312009-02-25 21:26:55246 'scoped_comptr_win.h',
247 'scoped_handle.h',
248 'scoped_handle_win.h',
249 'scoped_nsautorelease_pool.h',
250 'scoped_nsautorelease_pool.mm',
[email protected]9a556e32009-06-09 17:39:34251 'scoped_nsdisable_screen_updates.h',
[email protected]08ef57ce2009-03-23 15:54:43252 'scoped_nsobject.h',
[email protected]2f80c312009-02-25 21:26:55253 'scoped_ptr.h',
254 'scoped_temp_dir.cc',
255 'scoped_temp_dir.h',
[email protected]e00d39192009-03-19 04:22:28256 'scoped_variant_win.cc',
257 'scoped_variant_win.h',
[email protected]807204142009-05-05 03:31:44258 'scoped_vector.h',
[email protected]7f113f32009-09-10 18:02:17259 'setproctitle_linux.c',
260 'setproctitle_linux.h',
[email protected]2f80c312009-02-25 21:26:55261 'sha2.cc',
262 'sha2.h',
263 'shared_memory.h',
264 'shared_memory_posix.cc',
265 'shared_memory_win.cc',
266 'simple_thread.cc',
267 'simple_thread.h',
268 'singleton.h',
269 'spin_wait.h',
270 'stack_container.h',
271 'stats_counters.h',
272 'stats_table.cc',
273 'stats_table.h',
[email protected]807204142009-05-05 03:31:44274 'stl_util-inl.h',
[email protected]2f80c312009-02-25 21:26:55275 'string16.cc',
276 'string16.h',
277 'string_escape.cc',
278 'string_escape.h',
279 'string_piece.cc',
280 'string_piece.h',
281 'string_tokenizer.h',
282 'string_util.cc',
283 'string_util.h',
284 'string_util_icu.cc',
285 'string_util_win.h',
286 'sys_info.h',
[email protected]61b8ad72009-07-22 00:35:18287 'sys_info_chromeos.cc',
[email protected]2f80c312009-02-25 21:26:55288 'sys_info_mac.cc',
289 'sys_info_posix.cc',
290 'sys_info_win.cc',
291 'sys_string_conversions.h',
292 'sys_string_conversions_linux.cc',
293 'sys_string_conversions_mac.mm',
294 'sys_string_conversions_win.cc',
295 'system_monitor.cc',
296 'system_monitor.h',
297 'system_monitor_posix.cc',
298 'system_monitor_win.cc',
299 'task.h',
[email protected]2f80c312009-02-25 21:26:55300 'thread.cc',
301 'thread.h',
302 'thread_collision_warner.cc',
303 'thread_collision_warner.h',
304 'thread_local.h',
305 'thread_local_posix.cc',
306 'thread_local_storage.h',
307 'thread_local_storage_posix.cc',
308 'thread_local_storage_win.cc',
309 'thread_local_win.cc',
310 'time.cc',
311 'time.h',
312 'time_format.cc',
313 'time_format.h',
314 'time_mac.cc',
315 'time_posix.cc',
316 'time_win.cc',
317 'timer.cc',
318 'timer.h',
319 'trace_event.cc',
320 'trace_event.h',
321 'tracked.cc',
322 'tracked.h',
323 'tracked_objects.cc',
324 'tracked_objects.h',
325 'tuple.h',
[email protected]cc8f1462009-06-12 17:36:55326 'unix_domain_socket_posix.cc',
[email protected]2f80c312009-02-25 21:26:55327 'values.cc',
328 'values.h',
329 'version.cc',
330 'version.h',
331 'waitable_event.h',
332 'waitable_event_posix.cc',
333 'waitable_event_watcher.h',
334 'waitable_event_watcher_posix.cc',
335 'waitable_event_watcher_win.cc',
336 'waitable_event_win.cc',
337 'watchdog.cc',
338 'watchdog.h',
[email protected]3125d6462009-09-01 20:50:17339 'weak_ptr.h',
[email protected]2f80c312009-02-25 21:26:55340 'win_util.cc',
341 'win_util.h',
342 'windows_message_list.h',
343 'wmi_util.cc',
344 'wmi_util.h',
345 'word_iterator.cc',
346 'word_iterator.h',
[email protected]2f80c312009-02-25 21:26:55347 'worker_pool.h',
[email protected]5846da02009-03-06 20:35:45348 'worker_pool_linux.cc',
[email protected]250103f2009-03-24 23:41:53349 'worker_pool_linux.h',
[email protected]2f80c312009-02-25 21:26:55350 'worker_pool_mac.mm',
[email protected]5846da02009-03-06 20:35:45351 'worker_pool_win.cc',
[email protected]2f80c312009-02-25 21:26:55352 ],
353 'include_dirs': [
354 '..',
355 ],
356 'direct_dependent_settings': {
357 'include_dirs': [
358 '..',
359 ],
360 },
361 # These warnings are needed for the files in third_party\dmg_fp.
362 'msvs_disabled_warnings': [
363 4244, 4554, 4018, 4102,
364 ],
365 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46366 [ 'OS == "linux" or OS == "freebsd"', {
[email protected]b7b0676f2009-08-26 21:53:46367 'variables' : {
368 'linux_use_tcmalloc%': 0,
369 },
[email protected]61b8ad72009-07-22 00:35:18370 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'],
[email protected]2f80c312009-02-25 21:26:55371 ['exclude', '\\.mm?$' ] ],
[email protected]61b8ad72009-07-22 00:35:18372 'conditions': [
373 [ 'chromeos==1', {
374 'sources/': [ ['include', '_chromeos\\.cc$'] ]
375 },
376 ],
[email protected]b7b0676f2009-08-26 21:53:46377 [ 'linux_use_tcmalloc==1', {
378 'dependencies': [
379 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
380 ],
381 },
382 ],
[email protected]61b8ad72009-07-22 00:35:18383 ],
[email protected]9d384032009-03-20 23:13:26384 'dependencies': [
[email protected]198d68d2009-06-04 16:08:16385 '../build/util/build_util.gyp:lastchange',
[email protected]9d384032009-03-20 23:13:26386 '../build/linux/system.gyp:gtk',
387 '../build/linux/system.gyp:nss',
388 ],
389 'cflags': [
390 '-Wno-write-strings',
391 ],
[email protected]7f113f32009-09-10 18:02:17392 'link_settings': {
393 'libraries': [
[email protected]ac594d32009-09-07 18:29:35394 # We need rt for clock_gettime().
395 '-lrt',
396 ],
397 },
[email protected]faabcf42009-05-18 21:12:34398 'export_dependent_settings': [
399 '../build/linux/system.gyp:gtk',
400 ],
[email protected]2f80c312009-02-25 21:26:55401 },
[email protected]fb66f9d2009-09-07 16:39:46402 { # else: OS != "linux" && OS != "freebsd"
[email protected]bff1ddf82009-05-16 04:30:05403 'sources/': [
404 ['exclude', '/xdg_mime/'],
405 ],
[email protected]2f80c312009-02-25 21:26:55406 'sources!': [
[email protected]71a9f842009-09-24 01:21:12407 'crypto/rsa_private_key_nss.cc',
408 'crypto/signature_creator_nss.cc',
[email protected]db7286d2009-04-10 16:36:34409 'crypto/signature_verifier_nss.cc',
[email protected]2f80c312009-02-25 21:26:55410 'atomicops_internals_x86_gcc.cc',
[email protected]34c70c9f2009-03-18 14:35:58411 'directory_watcher_inotify.cc',
[email protected]2f80c312009-02-25 21:26:55412 'hmac_nss.cc',
[email protected]75ae5422009-04-21 17:20:10413 'linux_util.cc',
[email protected]2f80c312009-02-25 21:26:55414 'message_pump_glib.cc',
415 'nss_init.cc',
[email protected]db7286d2009-04-10 16:36:34416 'nss_init.h',
[email protected]2f80c312009-02-25 21:26:55417 'time_posix.cc',
418 ],
[email protected]7f113f32009-09-10 18:02:17419 },
420 ],
421 [ 'OS != "linux"', {
422 'sources!': [
423 # Not automatically excluded by the *linux.cc rules.
424 'setproctitle_linux.c',
425 'setproctitle_linux.h',
426 ],
427 },
[email protected]2f80c312009-02-25 21:26:55428 ],
[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]c566c6102009-09-25 23:15:41450 'sources/': [ ['exclude', '_(linux|gtk|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]c566c6102009-09-25 23:15:41474 'sources/': [ ['exclude', '_(linux|gtk|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',
[email protected]2f80c312009-02-25 21:26:55495 'debug_on_start.cc',
496 'event_recorder.cc',
497 'file_version_info.cc',
498 'iat_patch.cc',
499 'image_util.cc',
500 'object_watcher.cc',
501 'pe_image.cc',
502 'registry.cc',
503 'resource_util.cc',
504 'win_util.cc',
505 'wmi_util.cc',
506 ],
507 },
508 ],
509 ],
510 },
511 {
512 'target_name': 'base_gfx',
[email protected]653bd5f032009-04-08 12:55:49513 'type': '<(library)',
[email protected]0d54d2e2009-03-10 22:25:54514 'msvs_guid': 'A508ADD3-CECE-4E0F-8448-2F5E454DF551',
[email protected]2f80c312009-02-25 21:26:55515 'sources': [
[email protected]c9e8ab92009-07-24 20:35:28516 'gfx/blit.cc',
517 'gfx/blit.h',
[email protected]2f80c312009-02-25 21:26:55518 'gfx/gdi_util.cc',
519 'gfx/gdi_util.h',
[email protected]6639f5c2009-04-24 01:59:32520 'gfx/gtk_native_view_id_manager.cc',
521 'gfx/gtk_native_view_id_manager.h',
[email protected]40c3f522009-03-06 21:33:46522 'gfx/gtk_util.cc',
523 'gfx/gtk_util.h',
[email protected]2f80c312009-02-25 21:26:55524 'gfx/native_theme.cc',
525 'gfx/native_theme.h',
526 'gfx/native_widget_types.h',
[email protected]6639f5c2009-04-24 01:59:32527 'gfx/native_widget_types_gtk.cc',
[email protected]2f80c312009-02-25 21:26:55528 'gfx/point.cc',
529 'gfx/point.h',
530 'gfx/rect.cc',
531 'gfx/rect.h',
532 'gfx/size.cc',
533 'gfx/size.h',
534 ],
535 'mac_framework_dirs': [
536 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
537 ],
538 'dependencies': [
539 'base',
540 '../skia/skia.gyp:skia',
[email protected]2f80c312009-02-25 21:26:55541 ],
542 'export_dependent_settings': [
543 'base',
544 ],
545 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46546 ['OS == "linux" or OS == "freebsd"', {
[email protected]9d384032009-03-20 23:13:26547 'dependencies': [
548 '../build/linux/system.gyp:gtk',
549 ],
550 }],
[email protected]2f80c312009-02-25 21:26:55551 [ 'OS != "win"', { 'sources!': [
[email protected]40c3f522009-03-06 21:33:46552 'gfx/gdi_util.cc',
553 'gfx/native_theme.cc',
[email protected]9e450f22009-03-10 23:12:16554 ],
[email protected]40c3f522009-03-06 21:33:46555 }],
[email protected]fb66f9d2009-09-07 16:39:46556 [ 'OS != "linux" and OS != "freebsd"', { 'sources!': [
[email protected]6639f5c2009-04-24 01:59:32557 'gfx/gtk_native_view_id_manager.cc',
[email protected]40c3f522009-03-06 21:33:46558 'gfx/gtk_util.cc',
[email protected]6639f5c2009-04-24 01:59:32559 'gfx/native_widget_types_gtk.cc',
[email protected]9e450f22009-03-10 23:12:16560 ],
[email protected]2f80c312009-02-25 21:26:55561 }],
562 ],
563 },
564 {
565 'target_name': 'base_unittests',
566 'type': 'executable',
[email protected]9e450f22009-03-10 23:12:16567 'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC',
[email protected]2f80c312009-02-25 21:26:55568 'sources': [
[email protected]c7f475ed2009-09-08 17:25:40569 # Infrastructure files.
570 'multiprocess_test.h',
571 'run_all_unittests.cc',
572 'test_suite.h',
573
574 # Tests.
[email protected]2f80c312009-02-25 21:26:55575 'at_exit_unittest.cc',
576 'atomicops_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55577 'command_line_unittest.cc',
578 'condition_variable_unittest.cc',
[email protected]28ae8fe2009-06-05 18:25:06579 'crypto/rsa_private_key_unittest.cc',
580 'crypto/signature_creator_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:56581 'crypto/signature_verifier_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55582 'data_pack_unittest.cc',
[email protected]96fd0032009-04-24 00:13:08583 'debug_util_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55584 'directory_watcher_unittest.cc',
585 'field_trial_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03586 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55587 'file_path_unittest.cc',
588 'file_util_unittest.cc',
589 'file_version_info_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:56590 'gfx/native_theme_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:56591 'gfx/rect_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:59592 'gmock_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55593 'histogram_unittest.cc',
594 'hmac_unittest.cc',
[email protected]925d5d602009-08-19 14:56:38595 'id_map_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55596 'json_reader_unittest.cc',
597 'json_writer_unittest.cc',
598 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:54599 'leak_tracker_unittest.cc',
600 'linked_list_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55601 'linked_ptr_unittest.cc',
602 'mac_util_unittest.cc',
603 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44604 'message_pump_glib_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55605 'object_watcher_unittest.cc',
606 'observer_list_unittest.cc',
607 'path_service_unittest.cc',
608 'pe_image_unittest.cc',
609 'pickle_unittest.cc',
610 'pr_time_unittest.cc',
611 'process_util_unittest.cc',
612 'rand_util_unittest.cc',
613 'ref_counted_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55614 'scoped_bstr_win_unittest.cc',
615 'scoped_comptr_win_unittest.cc',
616 'scoped_ptr_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31617 'scoped_temp_dir_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28618 'scoped_variant_win_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55619 'sha2_unittest.cc',
620 'shared_memory_unittest.cc',
621 'simple_thread_unittest.cc',
622 'singleton_unittest.cc',
623 'stack_container_unittest.cc',
624 'stats_table_unittest.cc',
625 'string_escape_unittest.cc',
626 'string_piece_unittest.cc',
627 'string_tokenizer_unittest.cc',
628 'string_util_unittest.cc',
629 'sys_info_unittest.cc',
630 'sys_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55631 'system_monitor_unittest.cc',
[email protected]5b6c1a802009-07-17 18:14:47632 'task_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55633 'thread_collision_warner_unittest.cc',
634 'thread_local_storage_unittest.cc',
635 'thread_local_unittest.cc',
636 'thread_unittest.cc',
637 'time_unittest.cc',
638 'time_win_unittest.cc',
639 'timer_unittest.cc',
640 'tracked_objects_unittest.cc',
641 'tuple_unittest.cc',
642 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31643 'version_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55644 'waitable_event_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31645 'waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55646 'watchdog_unittest.cc',
[email protected]3125d6462009-09-01 20:50:17647 'weak_ptr_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55648 'win_util_unittest.cc',
649 'wmi_util_unittest.cc',
650 'word_iterator_unittest.cc',
651 'worker_pool_unittest.cc',
652 ],
653 'include_dirs': [
654 # word_iterator.h (used by word_iterator_unittest.cc) leaks an ICU
655 # #include for unicode/uchar.h. This should probably be cleaned up.
[email protected]280629492009-09-09 06:49:08656 '../third_party/icu/public/common',
[email protected]2f80c312009-02-25 21:26:55657 ],
658 'dependencies': [
659 'base',
660 'base_gfx',
661 '../skia/skia.gyp:skia',
[email protected]ce3157102009-05-28 07:23:16662 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55663 '../testing/gtest.gyp:gtest',
664 ],
665 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46666 ['OS == "linux" or OS == "freebsd"', {
[email protected]8b03e8d2009-03-02 06:53:31667 'sources!': [
668 'file_version_info_unittest.cc',
[email protected]2d4f7b42009-04-03 20:21:52669 'worker_pool_linux_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31670 ],
[email protected]9d384032009-03-20 23:13:26671 'dependencies': [
672 '../build/linux/system.gyp:gtk',
[email protected]db7286d2009-04-10 16:36:34673 '../build/linux/system.gyp:nss',
[email protected]a97488f2009-09-17 21:37:19674 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26675 ],
[email protected]fb66f9d2009-09-07 16:39:46676 }, { # OS != "linux" and OS != "freebsd"
[email protected]b44d5cc2009-06-15 10:30:44677 'sources!': [
678 'message_pump_glib_unittest.cc',
679 ]
[email protected]8b03e8d2009-03-02 06:53:31680 }],
[email protected]e90ed8a2009-10-06 18:55:35681 ['OS != "mac"', {
[email protected]8b03e8d2009-03-02 06:53:31682 'sources!': [
683 'mac_util_unittest.cc',
684 ],
685 }],
[email protected]2f80c312009-02-25 21:26:55686 # This is needed to trigger the dll copy step on windows.
687 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31688 ['OS == "win"', {
689 'dependencies': [
[email protected]280629492009-09-09 06:49:08690 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31691 ],
692 'sources!': [
693 'data_pack_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03694 'file_descriptor_shuffle_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31695 ],
696 }, { # OS != "win"
697 'sources!': [
698 'gfx/native_theme_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31699 'object_watcher_unittest.cc',
700 'pe_image_unittest.cc',
701 'scoped_bstr_win_unittest.cc',
702 'scoped_comptr_win_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28703 'scoped_variant_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31704 'system_monitor_unittest.cc',
705 'time_win_unittest.cc',
706 'win_util_unittest.cc',
707 'wmi_util_unittest.cc',
708 ],
709 }],
[email protected]2f80c312009-02-25 21:26:55710 ],
711 },
[email protected]e8ef09a2009-03-16 23:46:45712 {
713 'target_name': 'test_support_base',
[email protected]653bd5f032009-04-08 12:55:49714 'type': '<(library)',
[email protected]e8ef09a2009-03-16 23:46:45715 'dependencies': [
716 'base',
[email protected]7d1ba9392009-08-03 18:35:06717 ],
718 'sources': [
719 'test_file_util.h',
720 'test_file_util_linux.cc',
721 'test_file_util_mac.cc',
722 'test_file_util_posix.cc',
723 'test_file_util_win.cc',
724 ],
725 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46726 [ 'OS == "linux" or OS == "freebsd"', {
[email protected]7d1ba9392009-08-03 18:35:06727 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'],
728 ['exclude', '\\.mm?$' ] ],
729 'conditions': [
730 [ 'chromeos==1', {
731 'sources/': [ ['include', '_chromeos\\.cc$'] ]
732 },
733 ],
734 ],
735 },
736 ],
737 [ 'OS == "mac"', {
738 'sources/': [ ['exclude', '_(linux|win|chromeos)\\.cc$'] ],
739 },
740 ],
741 [ 'OS == "win"', {
742 'sources/': [ ['exclude', '_(linux|mac|posix|chromeos)\\.cc$'],
743 ['exclude', '\\.mm?$' ] ],
744 },
745 ],
746 ],
747 },
748 {
749 'target_name': 'test_support_perf',
750 'type': '<(library)',
751 'dependencies': [
752 'base',
[email protected]e8ef09a2009-03-16 23:46:45753 '../testing/gtest.gyp:gtest',
754 ],
755 'sources': [
756 'perftimer.cc',
757 'run_all_perftests.cc',
758 ],
759 'direct_dependent_settings': {
760 'defines': [
761 'PERF_TEST',
762 ],
763 },
[email protected]9d384032009-03-20 23:13:26764 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46765 ['OS == "linux" or OS == "freebsd"', {
[email protected]9d384032009-03-20 23:13:26766 'dependencies': [
767 # Needed to handle the #include chain:
768 # base/perf_test_suite.h
769 # base/test_suite.h
770 # gtk/gtk.h
771 '../build/linux/system.gyp:gtk',
772 ],
773 }],
774 ],
[email protected]e8ef09a2009-03-16 23:46:45775 },
[email protected]2f80c312009-02-25 21:26:55776 ],
777 'conditions': [
778 [ 'OS == "win"', {
779 'targets': [
780 {
781 'target_name': 'debug_message',
782 'type': 'executable',
783 'sources': [
784 'debug_message.cc',
785 ],
[email protected]3f8bfc362009-05-22 02:39:14786 'msvs_settings': {
787 'VCLinkerTool': {
788 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
789 },
790 },
[email protected]2f80c312009-02-25 21:26:55791 },
792 ],
793 }],
[email protected]fb66f9d2009-09-07 16:39:46794 [ 'OS == "linux" or OS == "freebsd"', {
[email protected]24a0e29c2009-07-29 23:02:55795 'targets': [
796 {
797 'target_name': 'linux_versioninfo',
798 'type': '<(library)',
799 'sources': [
800 'file_version_info_linux.cc',
801 ],
802 'include_dirs': [
803 '..',
804 '<(SHARED_INTERMEDIATE_DIR)',
805 ],
806 'actions': [
807 {
808 'action_name': 'linux_version',
809 'variables': {
810 'lastchange_path':
811 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
812 'version_py_path': '../chrome/tools/build/version.py',
813 'version_path': '../chrome/VERSION',
814 'template_input_path': 'file_version_info_linux.h.version',
815 },
816 'conditions': [
817 [ 'branding == "Chrome"', {
818 'variables': {
819 'branding_path':
820 '../chrome/app/theme/google_chrome/BRANDING',
821 },
822 }, { # else branding!="Chrome"
823 'variables': {
824 'branding_path':
825 '../chrome/app/theme/chromium/BRANDING',
826 },
827 }],
828 ],
829 'inputs': [
830 '<(template_input_path)',
831 '<(version_path)',
832 '<(branding_path)',
833 '<(lastchange_path)',
834 ],
835 'outputs': [
836 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
837 ],
838 'action': [
839 'python',
840 '<(version_py_path)',
841 '-f', '<(version_path)',
842 '-f', '<(branding_path)',
843 '-f', '<(lastchange_path)',
844 '<(template_input_path)',
845 '<@(_outputs)',
846 ],
847 'message': 'Generating version information',
848 },
849 ],
850 },
851 ],
852 }],
[email protected]2f80c312009-02-25 21:26:55853 ],
854}
[email protected]f5c990c2009-10-06 03:02:38855
856# Local Variables:
857# tab-width:2
858# indent-tabs-mode:nil
859# End:
860# vim: set expandtab tabstop=2 shiftwidth=2: