blob: ca7182981291f5ca1eb51e47a5f2b5ddf66ea20f [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]0d54d2e2009-03-10 22:25:5413 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
[email protected]2f80c312009-02-25 21:26:5514 'sources': [
15 '../build/build_config.h',
[email protected]db7286d2009-04-10 16:36:3416 'crypto/cssm_init.cc',
17 'crypto/cssm_init.h',
[email protected]28ae8fe2009-06-05 18:25:0618 'crypto/rsa_private_key.h',
[email protected]308379a52009-10-07 02:46:3119 'crypto/rsa_private_key.cc',
[email protected]0691bdf42009-10-02 21:05:0120 'crypto/rsa_private_key_mac.cc',
[email protected]71a9f842009-09-24 01:21:1221 'crypto/rsa_private_key_nss.cc',
[email protected]28ae8fe2009-06-05 18:25:0622 'crypto/rsa_private_key_win.cc',
23 'crypto/signature_creator.h',
[email protected]e90ed8a2009-10-06 18:55:3524 'crypto/signature_creator_mac.cc',
[email protected]71a9f842009-09-24 01:21:1225 'crypto/signature_creator_nss.cc',
[email protected]28ae8fe2009-06-05 18:25:0626 'crypto/signature_creator_win.cc',
[email protected]db7286d2009-04-10 16:36:3427 'crypto/signature_verifier.h',
28 'crypto/signature_verifier_mac.cc',
29 'crypto/signature_verifier_nss.cc',
30 'crypto/signature_verifier_win.cc',
[email protected]2f80c312009-02-25 21:26:5531 'third_party/dmg_fp/dmg_fp.h',
32 'third_party/dmg_fp/dtoa.cc',
33 'third_party/dmg_fp/g_fmt.cc',
[email protected]047a03f2009-10-07 02:10:2034 'third_party/icu/icu_utf.cc',
35 'third_party/icu/icu_utf.h',
[email protected]2f80c312009-02-25 21:26:5536 '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',
[email protected]1c9cc402009-10-16 13:09:1166 'atomic_flag.h',
67 'atomic_flag.cc',
[email protected]2f80c312009-02-25 21:26:5568 'atomic_ref_count.h',
69 'atomic_sequence_num.h',
70 'atomicops.h',
71 'atomicops_internals_x86_msvc.h',
72 'base_drag_source.cc',
73 'base_drag_source.h',
74 'base_drop_target.cc',
75 'base_drop_target.h',
76 'base_paths.cc',
77 'base_paths.h',
[email protected]08ef57ce2009-03-23 15:54:4378 'base_paths_linux.h',
[email protected]2f80c312009-02-25 21:26:5579 'base_paths_linux.cc',
[email protected]08ef57ce2009-03-23 15:54:4380 'base_paths_mac.h',
[email protected]2f80c312009-02-25 21:26:5581 'base_paths_mac.mm',
82 'base_paths_win.cc',
83 'base_paths_win.h',
84 'base_switches.cc',
85 'base_switches.h',
86 'basictypes.h',
[email protected]6d1729e2009-11-18 23:08:3987 'bits.h',
[email protected]2f80c312009-02-25 21:26:5588 'bzip2_error_handler.cc',
[email protected]aaa47ee2009-11-05 21:53:0189 'chrome_application_mac.h',
90 'chrome_application_mac.mm',
[email protected]e798e1922009-09-17 20:43:0691 'cocoa_protocols_mac.h',
[email protected]2f80c312009-02-25 21:26:5592 'command_line.cc',
93 'command_line.h',
94 'compiler_specific.h',
95 'condition_variable.h',
96 'condition_variable_posix.cc',
97 'condition_variable_win.cc',
98 'cpu.cc',
99 'cpu.h',
100 'data_pack.cc',
101 'debug_on_start.cc',
102 'debug_on_start.h',
103 'debug_util.cc',
104 'debug_util.h',
105 'debug_util_mac.cc',
106 'debug_util_posix.cc',
107 'debug_util_win.cc',
108 'directory_watcher.h',
[email protected]34c70c9f2009-03-18 14:35:58109 'directory_watcher_inotify.cc',
[email protected]e611fd662009-04-30 19:39:15110 'directory_watcher_mac.cc',
[email protected]2f80c312009-02-25 21:26:55111 'directory_watcher_win.cc',
[email protected]001b6942009-06-26 11:28:03112 'dynamic_annotations.h',
113 'dynamic_annotations.cc',
[email protected]2f80c312009-02-25 21:26:55114 'event_recorder.cc',
115 'event_recorder.h',
116 'event_recorder_stubs.cc',
117 'field_trial.cc',
118 'field_trial.h',
[email protected]3f04f2b2009-04-30 19:40:03119 'file_descriptor_shuffle.cc',
120 'file_descriptor_shuffle.h',
[email protected]2f80c312009-02-25 21:26:55121 'file_path.cc',
122 'file_path.h',
123 'file_util.cc',
124 'file_util.h',
125 'file_util_linux.cc',
126 'file_util_mac.mm',
127 'file_util_posix.cc',
128 'file_util_win.cc',
129 'file_version_info.cc',
130 'file_version_info.h',
[email protected]2f80c312009-02-25 21:26:55131 'file_version_info_mac.mm',
132 'fix_wp64.h',
133 'float_util.h',
[email protected]08ef57ce2009-03-23 15:54:43134 'foundation_utils_mac.h',
[email protected]d34d79f2009-10-14 22:06:14135 'gfx/point.cc',
136 'gfx/point.h',
137 'gfx/rect.cc',
138 'gfx/rect.h',
139 'gfx/size.cc',
140 'gfx/size.h',
[email protected]cc8f1462009-06-12 17:36:55141 'global_descriptors_posix.h',
142 'global_descriptors_posix.cc',
[email protected]2f80c312009-02-25 21:26:55143 'hash_tables.h',
144 'histogram.cc',
145 'histogram.h',
146 'hmac.h',
147 'hmac_mac.cc',
148 'hmac_nss.cc',
149 'hmac_win.cc',
150 'iat_patch.cc',
151 'iat_patch.h',
[email protected]925d5d602009-08-19 14:56:38152 'id_map.h',
[email protected]2f80c312009-02-25 21:26:55153 'image_util.cc',
154 'image_util.h',
[email protected]93d49d72009-10-23 20:00:20155 'json/json_reader.cc',
156 'json/json_reader.h',
157 'json/json_writer.cc',
158 'json/json_writer.h',
159 'json/string_escape.cc',
160 'json/string_escape.h',
[email protected]047a03f2009-10-07 02:10:20161 'keyboard_code_conversion_gtk.cc',
162 'keyboard_code_conversion_gtk.h',
[email protected]2f80c312009-02-25 21:26:55163 'keyboard_codes.h',
164 'keyboard_codes_win.h',
[email protected]c566c6102009-09-25 23:15:41165 'keyboard_codes_posix.h',
[email protected]2f80c312009-02-25 21:26:55166 'lazy_instance.cc',
167 'lazy_instance.h',
[email protected]5ca274432009-11-11 21:58:28168 'leak_annotations.h',
[email protected]48ca9012009-08-11 21:38:54169 'leak_tracker.h',
170 'linked_list.h',
[email protected]2f80c312009-02-25 21:26:55171 'linked_ptr.h',
[email protected]75ae5422009-04-21 17:20:10172 'linux_util.cc',
173 'linux_util.h',
[email protected]2f80c312009-02-25 21:26:55174 'lock.cc',
175 'lock.h',
176 'lock_impl.h',
177 'lock_impl_posix.cc',
178 'lock_impl_win.cc',
179 'logging.cc',
180 'logging.h',
[email protected]08ef57ce2009-03-23 15:54:43181 'mac_util.h',
[email protected]2f80c312009-02-25 21:26:55182 'mac_util.mm',
183 'md5.cc',
184 'md5.h',
185 'memory_debug.cc',
186 'memory_debug.h',
187 'message_loop.cc',
188 'message_loop.h',
189 'message_pump.h',
190 'message_pump_default.cc',
191 'message_pump_default.h',
192 'message_pump_glib.cc',
[email protected]08ef57ce2009-03-23 15:54:43193 'message_pump_glib.h',
[email protected]2f80c312009-02-25 21:26:55194 'message_pump_libevent.cc',
[email protected]08ef57ce2009-03-23 15:54:43195 'message_pump_libevent.h',
196 'message_pump_mac.h',
[email protected]2f80c312009-02-25 21:26:55197 'message_pump_mac.mm',
198 'message_pump_win.cc',
199 'message_pump_win.h',
[email protected]bff1ddf82009-05-16 04:30:05200 'mime_util.h',
201 'mime_util_linux.cc',
[email protected]f38e25f2009-04-21 00:56:07202 'native_library.h',
203 'native_library_linux.cc',
204 'native_library_mac.mm',
205 'native_library_win.cc',
[email protected]2f80c312009-02-25 21:26:55206 'non_thread_safe.cc',
207 'non_thread_safe.h',
[email protected]3075a7f2009-10-05 19:07:34208 'nsimage_cache_mac.h',
209 'nsimage_cache_mac.mm',
[email protected]2f80c312009-02-25 21:26:55210 'nss_init.cc',
[email protected]db7286d2009-04-10 16:36:34211 'nss_init.h',
[email protected]15bf8712009-08-27 00:55:02212 'nullable_string16.h',
[email protected]2f80c312009-02-25 21:26:55213 'object_watcher.cc',
214 'object_watcher.h',
215 'observer_list.h',
216 'observer_list_threadsafe.h',
217 'path_service.cc',
218 'path_service.h',
219 'pe_image.cc',
220 'pe_image.h',
221 'pickle.cc',
222 'pickle.h',
223 'platform_file.h',
224 'platform_file_win.cc',
225 'platform_file_posix.cc',
226 'platform_thread.h',
227 'platform_thread_mac.mm',
228 'platform_thread_posix.cc',
229 'platform_thread_win.cc',
230 'port.h',
[email protected]9b2217562009-03-09 21:26:28231 'profiler.cc',
232 'profiler.h',
[email protected]2f80c312009-02-25 21:26:55233 'process.h',
[email protected]276aa6a2009-10-29 17:43:44234 'process_linux.cc',
[email protected]2f80c312009-02-25 21:26:55235 'process_posix.cc',
236 'process_util.h',
237 'process_util_linux.cc',
238 'process_util_mac.mm',
239 'process_util_posix.cc',
240 'process_util_win.cc',
241 'process_win.cc',
242 'rand_util.cc',
243 'rand_util.h',
244 'rand_util_posix.cc',
245 'rand_util_win.cc',
246 'ref_counted.cc',
247 'ref_counted.h',
[email protected]6de27992009-10-19 17:04:46248 'ref_counted_memory.h',
[email protected]2f80c312009-02-25 21:26:55249 'registry.cc',
250 'registry.h',
251 'resource_util.cc',
252 'resource_util.h',
[email protected]d8617a62009-10-09 23:52:20253 'safe_strerror_posix.cc',
254 'safe_strerror_posix.h',
[email protected]fd220e602009-11-14 01:02:37255 'scoped_bool.h',
[email protected]2f80c312009-02-25 21:26:55256 'scoped_bstr_win.cc',
257 'scoped_bstr_win.h',
[email protected]08ef57ce2009-03-23 15:54:43258 'scoped_cftyperef.h',
[email protected]2f80c312009-02-25 21:26:55259 'scoped_comptr_win.h',
260 'scoped_handle.h',
[email protected]a3406972009-11-04 05:05:48261 'scoped_handle_gtk.h',
[email protected]2f80c312009-02-25 21:26:55262 'scoped_handle_win.h',
263 'scoped_nsautorelease_pool.h',
264 'scoped_nsautorelease_pool.mm',
[email protected]9a556e32009-06-09 17:39:34265 'scoped_nsdisable_screen_updates.h',
[email protected]08ef57ce2009-03-23 15:54:43266 'scoped_nsobject.h',
[email protected]2f80c312009-02-25 21:26:55267 'scoped_ptr.h',
268 'scoped_temp_dir.cc',
269 'scoped_temp_dir.h',
[email protected]e00d39192009-03-19 04:22:28270 'scoped_variant_win.cc',
271 'scoped_variant_win.h',
[email protected]807204142009-05-05 03:31:44272 'scoped_vector.h',
[email protected]7f113f32009-09-10 18:02:17273 'setproctitle_linux.c',
274 'setproctitle_linux.h',
[email protected]c2ad1e32009-11-04 19:29:58275 'sha1.cc',
276 'sha1.h',
[email protected]2f80c312009-02-25 21:26:55277 'sha2.cc',
278 'sha2.h',
279 'shared_memory.h',
280 'shared_memory_posix.cc',
281 'shared_memory_win.cc',
282 'simple_thread.cc',
283 'simple_thread.h',
284 'singleton.h',
285 'spin_wait.h',
286 'stack_container.h',
287 'stats_counters.h',
288 'stats_table.cc',
289 'stats_table.h',
[email protected]807204142009-05-05 03:31:44290 'stl_util-inl.h',
[email protected]2f80c312009-02-25 21:26:55291 'string16.cc',
292 'string16.h',
[email protected]2f80c312009-02-25 21:26:55293 'string_piece.cc',
294 'string_piece.h',
295 'string_tokenizer.h',
296 'string_util.cc',
297 'string_util.h',
[email protected]2f80c312009-02-25 21:26:55298 'string_util_win.h',
299 'sys_info.h',
[email protected]61b8ad72009-07-22 00:35:18300 'sys_info_chromeos.cc',
[email protected]2f80c312009-02-25 21:26:55301 'sys_info_mac.cc',
302 'sys_info_posix.cc',
303 'sys_info_win.cc',
304 'sys_string_conversions.h',
305 'sys_string_conversions_linux.cc',
306 'sys_string_conversions_mac.mm',
307 'sys_string_conversions_win.cc',
308 'system_monitor.cc',
309 'system_monitor.h',
310 'system_monitor_posix.cc',
311 'system_monitor_win.cc',
312 'task.h',
[email protected]2f80c312009-02-25 21:26:55313 'thread.cc',
314 'thread.h',
315 'thread_collision_warner.cc',
316 'thread_collision_warner.h',
317 'thread_local.h',
318 'thread_local_posix.cc',
319 'thread_local_storage.h',
320 'thread_local_storage_posix.cc',
321 'thread_local_storage_win.cc',
322 'thread_local_win.cc',
323 'time.cc',
324 'time.h',
[email protected]2f80c312009-02-25 21:26:55325 'time_mac.cc',
326 'time_posix.cc',
327 'time_win.cc',
328 'timer.cc',
329 'timer.h',
330 'trace_event.cc',
331 'trace_event.h',
332 'tracked.cc',
333 'tracked.h',
334 'tracked_objects.cc',
335 'tracked_objects.h',
336 'tuple.h',
[email protected]b9f93832009-11-13 19:27:48337 'utf_offset_string_conversions.cc',
338 'utf_offset_string_conversions.h',
339 'utf_string_conversion_utils.cc',
340 'utf_string_conversion_utils.h',
[email protected]047a03f2009-10-07 02:10:20341 'utf_string_conversions.cc',
342 'utf_string_conversions.h',
[email protected]cc8f1462009-06-12 17:36:55343 'unix_domain_socket_posix.cc',
[email protected]2f80c312009-02-25 21:26:55344 'values.cc',
345 'values.h',
346 'version.cc',
347 'version.h',
348 'waitable_event.h',
349 'waitable_event_posix.cc',
350 'waitable_event_watcher.h',
351 'waitable_event_watcher_posix.cc',
352 'waitable_event_watcher_win.cc',
353 'waitable_event_win.cc',
354 'watchdog.cc',
355 'watchdog.h',
[email protected]3125d6462009-09-01 20:50:17356 'weak_ptr.h',
[email protected]2f80c312009-02-25 21:26:55357 'win_util.cc',
358 'win_util.h',
359 'windows_message_list.h',
360 'wmi_util.cc',
361 'wmi_util.h',
[email protected]2f80c312009-02-25 21:26:55362 'worker_pool.h',
[email protected]5846da02009-03-06 20:35:45363 'worker_pool_linux.cc',
[email protected]250103f2009-03-24 23:41:53364 'worker_pool_linux.h',
[email protected]49aeee52009-10-26 19:58:13365 'worker_pool_mac.h',
[email protected]2f80c312009-02-25 21:26:55366 'worker_pool_mac.mm',
[email protected]5846da02009-03-06 20:35:45367 'worker_pool_win.cc',
[email protected]2f80c312009-02-25 21:26:55368 ],
369 'include_dirs': [
370 '..',
371 ],
372 'direct_dependent_settings': {
373 'include_dirs': [
374 '..',
375 ],
376 },
377 # These warnings are needed for the files in third_party\dmg_fp.
378 'msvs_disabled_warnings': [
379 4244, 4554, 4018, 4102,
380 ],
[email protected]d34d79f2009-10-14 22:06:14381 'mac_framework_dirs': [
382 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
383 ],
[email protected]2f80c312009-02-25 21:26:55384 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46385 [ 'OS == "linux" or OS == "freebsd"', {
[email protected]61b8ad72009-07-22 00:35:18386 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'],
[email protected]2f80c312009-02-25 21:26:55387 ['exclude', '\\.mm?$' ] ],
[email protected]45350972009-11-17 06:42:28388 'variables' : {
389 'linux_use_heapchecker%' : 0,
390 },
[email protected]61b8ad72009-07-22 00:35:18391 'conditions': [
[email protected]a678f3f2009-10-12 23:58:03392 [ 'chromeos==1 or toolkit_views==1', {
[email protected]61b8ad72009-07-22 00:35:18393 'sources/': [ ['include', '_chromeos\\.cc$'] ]
394 },
395 ],
[email protected]45350972009-11-17 06:42:28396 [ 'linux_use_heapchecker==1', {
397 'defines': [
398 'LINUX_USE_HEAPCHECKER',
399 ],
400 'direct_dependent_settings': {
401 'defines': [
402 'LINUX_USE_HEAPCHECKER',
403 ],
404 },
405 },
406 ],
407 # linux_use_heapchecker==1 implies linux_use_tcmalloc=1.
408 [ 'linux_use_tcmalloc==1 or linux_use_heapchecker==1', {
409 'dependencies': [
410 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
411 ],
[email protected]5ca274432009-11-11 21:58:28412 'defines': [
413 'LINUX_USE_TCMALLOC',
414 ],
415 'direct_dependent_settings': {
416 'defines': [
417 'LINUX_USE_TCMALLOC',
418 ],
419 },
[email protected]b7b0676f2009-08-26 21:53:46420 },
421 ],
[email protected]61b8ad72009-07-22 00:35:18422 ],
[email protected]9d384032009-03-20 23:13:26423 'dependencies': [
[email protected]198d68d2009-06-04 16:08:16424 '../build/util/build_util.gyp:lastchange',
[email protected]9d384032009-03-20 23:13:26425 '../build/linux/system.gyp:gtk',
426 '../build/linux/system.gyp:nss',
427 ],
428 'cflags': [
429 '-Wno-write-strings',
430 ],
[email protected]7f113f32009-09-10 18:02:17431 'link_settings': {
432 'libraries': [
[email protected]ac594d32009-09-07 18:29:35433 # We need rt for clock_gettime().
434 '-lrt',
435 ],
436 },
[email protected]faabcf42009-05-18 21:12:34437 'export_dependent_settings': [
438 '../build/linux/system.gyp:gtk',
439 ],
[email protected]2f80c312009-02-25 21:26:55440 },
[email protected]fb66f9d2009-09-07 16:39:46441 { # else: OS != "linux" && OS != "freebsd"
[email protected]bff1ddf82009-05-16 04:30:05442 'sources/': [
443 ['exclude', '/xdg_mime/'],
444 ],
[email protected]2f80c312009-02-25 21:26:55445 'sources!': [
[email protected]71a9f842009-09-24 01:21:12446 'crypto/rsa_private_key_nss.cc',
447 'crypto/signature_creator_nss.cc',
[email protected]db7286d2009-04-10 16:36:34448 'crypto/signature_verifier_nss.cc',
[email protected]2f80c312009-02-25 21:26:55449 'atomicops_internals_x86_gcc.cc',
[email protected]34c70c9f2009-03-18 14:35:58450 'directory_watcher_inotify.cc',
[email protected]2f80c312009-02-25 21:26:55451 'hmac_nss.cc',
[email protected]75ae5422009-04-21 17:20:10452 'linux_util.cc',
[email protected]2f80c312009-02-25 21:26:55453 'message_pump_glib.cc',
454 'nss_init.cc',
[email protected]db7286d2009-04-10 16:36:34455 'nss_init.h',
[email protected]2f80c312009-02-25 21:26:55456 'time_posix.cc',
457 ],
[email protected]7f113f32009-09-10 18:02:17458 },
459 ],
460 [ 'OS != "linux"', {
461 'sources!': [
462 # Not automatically excluded by the *linux.cc rules.
463 'setproctitle_linux.c',
464 'setproctitle_linux.h',
465 ],
466 },
[email protected]2f80c312009-02-25 21:26:55467 ],
[email protected]398a3162009-03-18 23:19:10468 [ 'GENERATOR == "quentin"', {
469 # Quentin builds don't have a recent enough glibc to include the
470 # inotify headers
471 'sources!': [
472 'directory_watcher_inotify.cc',
473 ],
474 'sources': [
475 'directory_watcher_stub.cc',
476 ],
477 },
478 ],
[email protected]fb66f9d2009-09-07 16:39:46479 [ 'OS == "freebsd"', {
480 'sources!': [
481 'directory_watcher_inotify.cc',
482 ],
483 'sources': [
484 'directory_watcher_stub.cc',
485 ],
486 },
487 ],
[email protected]2f80c312009-02-25 21:26:55488 [ 'OS == "mac"', {
[email protected]c566c6102009-09-25 23:15:41489 'sources/': [ ['exclude', '_(linux|gtk|win|chromeos)\\.cc$'] ],
[email protected]2f80c312009-02-25 21:26:55490 'sources!': [
[email protected]2f80c312009-02-25 21:26:55491 ],
492 'link_settings': {
493 'libraries': [
494 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
495 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
496 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
497 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
[email protected]a9527c202009-10-28 14:09:31498 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
[email protected]db7286d2009-04-10 16:36:34499 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
[email protected]2f80c312009-02-25 21:26:55500 ],
501 },
502 },
[email protected]db7286d2009-04-10 16:36:34503 { # else: OS != "mac"
504 'sources!': [
505 'crypto/cssm_init.cc',
506 'crypto/cssm_init.h',
507 ],
508 }
[email protected]2f80c312009-02-25 21:26:55509 ],
510 [ 'OS == "win"', {
[email protected]f0953deb2009-08-07 20:57:16511 'include_dirs': [
512 '../chrome/third_party/wtl/include',
513 ],
[email protected]c566c6102009-09-25 23:15:41514 'sources/': [ ['exclude', '_(linux|gtk|mac|posix|chromeos)\\.cc$'],
[email protected]2f80c312009-02-25 21:26:55515 ['exclude', '\\.mm?$' ] ],
516 'sources!': [
[email protected]b8e1f95c2009-02-26 15:25:44517 'data_pack.cc',
[email protected]2f80c312009-02-25 21:26:55518 'event_recorder_stubs.cc',
[email protected]3f04f2b2009-04-30 19:40:03519 'file_descriptor_shuffle.cc',
[email protected]2f80c312009-02-25 21:26:55520 'message_pump_libevent.cc',
521 'string16.cc',
522 ],
523 },
524 { # else: OS != "win"
525 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
526 'sources!': [
527 'third_party/purify/pure_api.c',
528 'base_drag_source.cc',
529 'base_drop_target.cc',
530 'cpu.cc',
[email protected]2f80c312009-02-25 21:26:55531 'debug_on_start.cc',
532 'event_recorder.cc',
533 'file_version_info.cc',
534 'iat_patch.cc',
535 'image_util.cc',
536 'object_watcher.cc',
537 'pe_image.cc',
538 'registry.cc',
539 'resource_util.cc',
540 'win_util.cc',
541 'wmi_util.cc',
542 ],
543 },
544 ],
545 ],
546 },
547 {
[email protected]d34d79f2009-10-14 22:06:14548 'target_name': 'base_i18n',
[email protected]653bd5f032009-04-08 12:55:49549 'type': '<(library)',
[email protected]d34d79f2009-10-14 22:06:14550 'msvs_guid': '968F3222-9798-4D21-BE08-15ECB5EF2994',
[email protected]2f80c312009-02-25 21:26:55551 'dependencies': [
552 'base',
[email protected]d34d79f2009-10-14 22:06:14553 '../third_party/icu/icu.gyp:icui18n',
554 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:55555 ],
556 'export_dependent_settings': [
557 'base',
558 ],
[email protected]d34d79f2009-10-14 22:06:14559 'sources': [
560 'i18n/file_util_icu.cc',
561 'i18n/file_util_icu.h',
562 'i18n/icu_string_conversions.cc',
563 'i18n/icu_string_conversions.h',
564 'i18n/icu_util.cc',
565 'i18n/icu_util.h',
566 'i18n/number_formatting.cc',
567 'i18n/number_formatting.h',
568 'i18n/time_formatting.cc',
569 'i18n/time_formatting.h',
570 'i18n/word_iterator.cc',
571 'i18n/word_iterator.h',
572 ],
[email protected]2f80c312009-02-25 21:26:55573 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46574 ['OS == "linux" or OS == "freebsd"', {
[email protected]9d384032009-03-20 23:13:26575 'dependencies': [
576 '../build/linux/system.gyp:gtk',
577 ],
578 }],
[email protected]2f80c312009-02-25 21:26:55579 ],
580 },
581 {
582 'target_name': 'base_unittests',
583 'type': 'executable',
[email protected]9e450f22009-03-10 23:12:16584 'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC',
[email protected]2f80c312009-02-25 21:26:55585 'sources': [
[email protected]c7f475ed2009-09-08 17:25:40586 # Infrastructure files.
587 'multiprocess_test.h',
[email protected]fb895c62009-10-09 18:20:30588 'test/run_all_unittests.cc',
589 'test/test_suite.h',
[email protected]c7f475ed2009-09-08 17:25:40590
591 # Tests.
[email protected]2f80c312009-02-25 21:26:55592 'at_exit_unittest.cc',
[email protected]1c9cc402009-10-16 13:09:11593 'atomic_flag_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55594 'atomicops_unittest.cc',
[email protected]6d1729e2009-11-18 23:08:39595 'bits_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55596 'command_line_unittest.cc',
597 'condition_variable_unittest.cc',
[email protected]28ae8fe2009-06-05 18:25:06598 'crypto/rsa_private_key_unittest.cc',
599 'crypto/signature_creator_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:56600 'crypto/signature_verifier_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55601 'data_pack_unittest.cc',
[email protected]96fd0032009-04-24 00:13:08602 'debug_util_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55603 'directory_watcher_unittest.cc',
604 'field_trial_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03605 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55606 'file_path_unittest.cc',
607 'file_util_unittest.cc',
608 'file_version_info_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:56609 'gfx/rect_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:59610 'gmock_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55611 'histogram_unittest.cc',
612 'hmac_unittest.cc',
[email protected]925d5d602009-08-19 14:56:38613 'id_map_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:30614 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:50615 'i18n/icu_string_conversions_unittest.cc',
[email protected]fb895c62009-10-09 18:20:30616 'i18n/word_iterator_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20617 'json/json_reader_unittest.cc',
618 'json/json_writer_unittest.cc',
619 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55620 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:54621 'leak_tracker_unittest.cc',
622 'linked_list_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55623 'linked_ptr_unittest.cc',
[email protected]8b386ced2009-10-27 15:55:52624 'mac_util_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55625 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44626 'message_pump_glib_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55627 'object_watcher_unittest.cc',
628 'observer_list_unittest.cc',
629 'path_service_unittest.cc',
630 'pe_image_unittest.cc',
631 'pickle_unittest.cc',
632 'pr_time_unittest.cc',
633 'process_util_unittest.cc',
634 'rand_util_unittest.cc',
635 'ref_counted_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55636 'scoped_bstr_win_unittest.cc',
637 'scoped_comptr_win_unittest.cc',
638 'scoped_ptr_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31639 'scoped_temp_dir_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28640 'scoped_variant_win_unittest.cc',
[email protected]c2ad1e32009-11-04 19:29:58641 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55642 'sha2_unittest.cc',
643 'shared_memory_unittest.cc',
644 'simple_thread_unittest.cc',
645 'singleton_unittest.cc',
646 'stack_container_unittest.cc',
647 'stats_table_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55648 'string_piece_unittest.cc',
649 'string_tokenizer_unittest.cc',
650 'string_util_unittest.cc',
651 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54652 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55653 'sys_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55654 'system_monitor_unittest.cc',
[email protected]5b6c1a802009-07-17 18:14:47655 'task_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55656 'thread_collision_warner_unittest.cc',
657 'thread_local_storage_unittest.cc',
658 'thread_local_unittest.cc',
659 'thread_unittest.cc',
660 'time_unittest.cc',
661 'time_win_unittest.cc',
662 'timer_unittest.cc',
663 'tracked_objects_unittest.cc',
664 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48665 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53666 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55667 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31668 'version_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55669 'waitable_event_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31670 'waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55671 'watchdog_unittest.cc',
[email protected]3125d6462009-09-01 20:50:17672 'weak_ptr_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55673 'win_util_unittest.cc',
674 'wmi_util_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55675 'worker_pool_unittest.cc',
676 ],
677 'include_dirs': [
678 # word_iterator.h (used by word_iterator_unittest.cc) leaks an ICU
679 # #include for unicode/uchar.h. This should probably be cleaned up.
[email protected]280629492009-09-09 06:49:08680 '../third_party/icu/public/common',
[email protected]2f80c312009-02-25 21:26:55681 ],
682 'dependencies': [
683 'base',
[email protected]d34d79f2009-10-14 22:06:14684 'base_i18n',
[email protected]ce3157102009-05-28 07:23:16685 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55686 '../testing/gtest.gyp:gtest',
687 ],
688 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46689 ['OS == "linux" or OS == "freebsd"', {
[email protected]8b386ced2009-10-27 15:55:52690 'sources/': [ ['exclude', '\\.mm?$' ] ],
[email protected]8b03e8d2009-03-02 06:53:31691 'sources!': [
692 'file_version_info_unittest.cc',
[email protected]2d4f7b42009-04-03 20:21:52693 'worker_pool_linux_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31694 ],
[email protected]9d384032009-03-20 23:13:26695 'dependencies': [
696 '../build/linux/system.gyp:gtk',
[email protected]db7286d2009-04-10 16:36:34697 '../build/linux/system.gyp:nss',
[email protected]a97488f2009-09-17 21:37:19698 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26699 ],
[email protected]fb66f9d2009-09-07 16:39:46700 }, { # OS != "linux" and OS != "freebsd"
[email protected]b44d5cc2009-06-15 10:30:44701 'sources!': [
702 'message_pump_glib_unittest.cc',
703 ]
[email protected]8b03e8d2009-03-02 06:53:31704 }],
[email protected]2f80c312009-02-25 21:26:55705 # This is needed to trigger the dll copy step on windows.
706 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31707 ['OS == "win"', {
708 'dependencies': [
[email protected]280629492009-09-09 06:49:08709 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31710 ],
711 'sources!': [
712 'data_pack_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03713 'file_descriptor_shuffle_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31714 ],
715 }, { # OS != "win"
716 'sources!': [
[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': [
[email protected]fb895c62009-10-09 18:20:30737 'test/test_file_util.h',
738 'test/test_file_util_linux.cc',
739 'test/test_file_util_mac.cc',
740 'test/test_file_util_posix.cc',
741 'test/test_file_util_win.cc',
[email protected]7d1ba9392009-08-03 18:35:06742 ],
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': [
[email protected]a678f3f2009-10-12 23:58:03748 [ 'chromeos==1 or toolkit_views==1', {
[email protected]7d1ba9392009-08-03 18:35:06749 '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',
[email protected]fb895c62009-10-09 18:20:30775 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45776 ],
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:
[email protected]fb895c62009-10-09 18:20:30786 # base/test/perf_test_suite.h
787 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26788 # 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}
[email protected]f5c990c2009-10-06 03:02:38873
874# Local Variables:
875# tab-width:2
876# indent-tabs-mode:nil
877# End:
878# vim: set expandtab tabstop=2 shiftwidth=2: