blob: ee1f5c9edf6f2135b899ac7537d26793ee80a67a [file] [log] [blame]
[email protected]225c8f52010-02-05 22:23:201# Copyright (c) 2010 The Chromium Authors. All rights reserved.
[email protected]ef4fa4072009-12-04 22:46:502# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'target_defaults': {
7 'variables': {
8 'base_target': 0,
[email protected]97a28e722010-06-11 21:30:379 'base_extra_target': 0,
[email protected]ef4fa4072009-12-04 22:46:5010 },
11 'target_conditions': [
[email protected]0ea54822010-07-01 20:14:5012 # This part is shared between the targets defined below.
[email protected]ef4fa4072009-12-04 22:46:5013 ['base_target==1', {
14 'sources': [
15 '../build/build_config.h',
16 'third_party/dmg_fp/dmg_fp.h',
17 'third_party/dmg_fp/dtoa.cc',
18 'third_party/dmg_fp/g_fmt.cc',
19 'third_party/icu/icu_utf.cc',
20 'third_party/icu/icu_utf.h',
21 'third_party/nspr/prtime.cc',
22 'third_party/nspr/prtime.h',
[email protected]ef4fa4072009-12-04 22:46:5023 'at_exit.cc',
24 'at_exit.h',
25 'atomic_ref_count.h',
26 'atomic_sequence_num.h',
27 'atomicops.h',
[email protected]9bc8cff2010-04-03 01:05:3928 'atomicops_internals_x86_gcc.cc',
[email protected]ef4fa4072009-12-04 22:46:5029 'atomicops_internals_x86_msvc.h',
30 'base_paths.cc',
31 'base_paths.h',
32 'base_paths_mac.h',
33 'base_paths_mac.mm',
[email protected]6b0349ef2010-10-16 04:56:0634 'base_paths_linux.cc',
[email protected]ef4fa4072009-12-04 22:46:5035 'base_paths_win.cc',
36 'base_paths_win.h',
37 'base_switches.cc',
38 'base_switches.h',
39 'basictypes.h',
40 'bits.h',
41 'bzip2_error_handler.cc',
[email protected]2041cf342010-02-19 03:15:5942 'callback.h',
[email protected]ef4fa4072009-12-04 22:46:5043 'cancellation_flag.cc',
[email protected]9bc8cff2010-04-03 01:05:3944 'cancellation_flag.h',
[email protected]ef4fa4072009-12-04 22:46:5045 'chrome_application_mac.h',
46 'chrome_application_mac.mm',
47 'cocoa_protocols_mac.h',
48 'command_line.cc',
49 'command_line.h',
50 'compiler_specific.h',
51 'condition_variable.h',
52 'condition_variable_posix.cc',
53 'condition_variable_win.cc',
54 'cpu.cc',
55 'cpu.h',
56 'debug_on_start.cc',
57 'debug_on_start.h',
58 'debug_util.cc',
59 'debug_util.h',
60 'debug_util_mac.cc',
[email protected]58580352010-10-26 04:07:5061 'debug/debugger.cc',
62 'debug/debugger.h',
63 'debug/debugger_posix.cc',
64 'debug/debugger_win.cc',
65 'debug/leak_annotations.h',
66 'debug/leak_tracker.h',
67 'debug/stack_trace.cc',
68 'debug/stack_trace.h',
69 'debug/stack_trace_posix.cc',
70 'debug/stack_trace_win.cc',
71 'debug/trace_event_win.cc',
72 'debug/trace_event.cc',
73 'debug/trace_event.h',
[email protected]ef73044e2010-03-11 15:25:5474 'dir_reader_fallback.h',
75 'dir_reader_linux.h',
76 'dir_reader_posix.h',
[email protected]76b90d312010-08-03 03:00:5077 'environment.cc',
78 'environment.h',
[email protected]ef4fa4072009-12-04 22:46:5079 'file_path.cc',
80 'file_path.h',
81 'file_util.cc',
82 'file_util.h',
[email protected]a84ab952010-02-23 11:34:5483 'file_util_deprecated.h',
[email protected]1d01d412010-08-20 00:36:0184 'file_util_linux.cc',
[email protected]ef4fa4072009-12-04 22:46:5085 'file_util_mac.mm',
86 'file_util_posix.cc',
87 'file_util_win.cc',
[email protected]b90c93ff2010-08-20 22:42:5088 'file_util_proxy.cc',
89 'file_util_proxy.h',
[email protected]ef4fa4072009-12-04 22:46:5090 'file_version_info.h',
[email protected]bcff05a2010-04-14 01:46:4391 'file_version_info_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5092 'file_version_info_mac.mm',
[email protected]bcff05a2010-04-14 01:46:4393 'file_version_info_win.cc',
94 'file_version_info_win.h',
[email protected]ef4fa4072009-12-04 22:46:5095 'fix_wp64.h',
96 'float_util.h',
97 'foundation_utils_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5098 'global_descriptors_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:3999 'global_descriptors_posix.h',
[email protected]a918f872010-06-01 14:30:51100 'gtest_prod_util.h',
[email protected]ef4fa4072009-12-04 22:46:50101 'hash_tables.h',
[email protected]ef4fa4072009-12-04 22:46:50102 'id_map.h',
[email protected]252cad62010-08-18 18:33:57103 'json/json_reader.cc',
104 'json/json_reader.h',
105 'json/json_writer.cc',
106 'json/json_writer.h',
107 'json/string_escape.cc',
108 'json/string_escape.h',
[email protected]ef4fa4072009-12-04 22:46:50109 'lazy_instance.cc',
110 'lazy_instance.h',
[email protected]ef4fa4072009-12-04 22:46:50111 'linked_list.h',
112 'linked_ptr.h',
113 'lock.cc',
114 'lock.h',
115 'lock_impl.h',
116 'lock_impl_posix.cc',
117 'lock_impl_win.cc',
118 'logging.cc',
[email protected]ef4fa4072009-12-04 22:46:50119 'logging.h',
[email protected]9bc8cff2010-04-03 01:05:39120 'logging_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50121 'mac_util.h',
122 'mac_util.mm',
[email protected]c2818d42010-10-18 02:47:39123 'mac/scoped_aedesc.h',
124 'mac/scoped_nsautorelease_pool.h',
125 'mac/scoped_nsautorelease_pool.mm',
[email protected]c0028792010-01-12 00:39:15126 'mach_ipc_mac.h',
127 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50128 'memory_debug.cc',
129 'memory_debug.h',
130 'message_loop.cc',
131 'message_loop.h',
[email protected]d4799a32010-09-28 22:54:58132 'message_loop_proxy.cc',
[email protected]2cbac9e2010-04-29 03:31:34133 'message_loop_proxy.h',
[email protected]656475d2010-05-06 18:34:24134 'message_loop_proxy_impl.cc',
135 'message_loop_proxy_impl.h',
[email protected]d4799a32010-09-28 22:54:58136 'message_pump.cc',
[email protected]ef4fa4072009-12-04 22:46:50137 'message_pump.h',
138 'message_pump_default.cc',
139 'message_pump_default.h',
140 'message_pump_win.cc',
141 'message_pump_win.h',
[email protected]835d7c82010-10-14 04:38:38142 'metrics/histogram.cc',
143 'metrics/histogram.h',
[email protected]9ec74462010-10-28 16:48:05144 'metrics/nacl_histogram.cc',
145 'metrics/nacl_histogram.h',
[email protected]835d7c82010-10-14 04:38:38146 'metrics/stats_counters.cc',
147 'metrics/stats_counters.h',
148 'metrics/stats_table.cc',
149 'metrics/stats_table.h',
[email protected]ef4fa4072009-12-04 22:46:50150 'mime_util.h',
[email protected]1c657852010-04-22 23:28:05151 'mime_util_xdg.cc',
[email protected]ef4fa4072009-12-04 22:46:50152 'native_library.h',
153 'native_library_linux.cc',
154 'native_library_mac.mm',
155 'native_library_win.cc',
156 'non_thread_safe.cc',
157 'non_thread_safe.h',
158 'nullable_string16.h',
159 'object_watcher.cc',
160 'object_watcher.h',
161 'observer_list.h',
162 'observer_list_threadsafe.h',
163 'path_service.cc',
164 'path_service.h',
165 'pickle.cc',
166 'pickle.h',
167 'platform_file.h',
[email protected]ef4fa4072009-12-04 22:46:50168 'platform_file_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:39169 'platform_file_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50170 'platform_thread.h',
171 'platform_thread_mac.mm',
172 'platform_thread_posix.cc',
173 'platform_thread_win.cc',
174 'port.h',
[email protected]ef4fa4072009-12-04 22:46:50175 'process.h',
176 'process_linux.cc',
177 'process_posix.cc',
[email protected]b6128aa2010-04-29 17:44:42178 'process_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50179 'process_util.h',
180 'process_util_linux.cc',
181 'process_util_mac.mm',
182 'process_util_posix.cc',
183 'process_util_win.cc',
184 'process_win.cc',
185 'rand_util.cc',
186 'rand_util.h',
187 'rand_util_posix.cc',
188 'rand_util_win.cc',
189 'raw_scoped_refptr_mismatch_checker.h',
190 'ref_counted.cc',
191 'ref_counted.h',
[email protected]3071754432010-07-28 00:09:54192 'ref_counted_memory.cc',
[email protected]ef4fa4072009-12-04 22:46:50193 'ref_counted_memory.h',
[email protected]ef4fa4072009-12-04 22:46:50194 'resource_util.cc',
195 'resource_util.h',
196 'safe_strerror_posix.cc',
197 'safe_strerror_posix.h',
[email protected]21ae1f92010-07-30 23:05:15198 'scoped_callback_factory.h',
[email protected]e7c131e2010-10-27 20:46:39199 'mac/scoped_cftyperef.h',
[email protected]ef4fa4072009-12-04 22:46:50200 'scoped_handle.h',
[email protected]709a847e2010-11-10 01:16:11201 'scoped_native_library.cc',
202 'scoped_native_library.h',
[email protected]ef4fa4072009-12-04 22:46:50203 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04204 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50205 'scoped_ptr.h',
206 'scoped_temp_dir.cc',
207 'scoped_temp_dir.h',
[email protected]ef4fa4072009-12-04 22:46:50208 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50209 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40210 'sha1_portable.cc',
211 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50212 'shared_memory.h',
213 'shared_memory_posix.cc',
214 'shared_memory_win.cc',
215 'simple_thread.cc',
216 'simple_thread.h',
217 'singleton.h',
218 'spin_wait.h',
219 'stack_container.h',
[email protected]ef4fa4072009-12-04 22:46:50220 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44221 'string_number_conversions.cc',
222 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50223 'string_piece.cc',
224 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25225 'string_split.cc',
226 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50227 'string_tokenizer.h',
228 'string_util.cc',
229 'string_util.h',
230 'string_util_win.h',
[email protected]e6811ed52010-08-17 03:45:37231 'stringprintf.cc',
232 'stringprintf.h',
[email protected]ef4fa4072009-12-04 22:46:50233 'sys_info.h',
234 'sys_info_chromeos.cc',
235 'sys_info_freebsd.cc',
236 'sys_info_linux.cc',
237 'sys_info_mac.cc',
238 'sys_info_openbsd.cc',
239 'sys_info_posix.cc',
240 'sys_info_win.cc',
241 'sys_string_conversions.h',
242 'sys_string_conversions_linux.cc',
243 'sys_string_conversions_mac.mm',
244 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54245 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50246 'task.h',
[email protected]6fd0ca52010-08-26 06:09:38247 'task_queue.cc',
248 'task_queue.h',
[email protected]951269b2010-06-15 19:39:24249 'template_util.h',
[email protected]ef4fa4072009-12-04 22:46:50250 'thread.cc',
251 'thread.h',
[email protected]d9ddc962010-08-24 04:29:56252 'thread_checker.cc',
253 'thread_checker.h',
[email protected]ef4fa4072009-12-04 22:46:50254 'thread_collision_warner.cc',
255 'thread_collision_warner.h',
256 'thread_local.h',
257 'thread_local_posix.cc',
258 'thread_local_storage.h',
259 'thread_local_storage_posix.cc',
260 'thread_local_storage_win.cc',
261 'thread_local_win.cc',
[email protected]45446a52010-11-04 17:41:00262 'thread_restrictions.h',
263 'thread_restrictions.cc',
[email protected]ef4fa4072009-12-04 22:46:50264 'time.cc',
265 'time.h',
266 'time_win.cc',
267 'timer.cc',
268 'timer.h',
[email protected]ef4fa4072009-12-04 22:46:50269 'tracked.cc',
270 'tracked.h',
271 'tracked_objects.cc',
272 'tracked_objects.h',
273 'tuple.h',
[email protected]9bc8cff2010-04-03 01:05:39274 'unix_domain_socket_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50275 'utf_offset_string_conversions.cc',
276 'utf_offset_string_conversions.h',
277 'utf_string_conversion_utils.cc',
278 'utf_string_conversion_utils.h',
279 'utf_string_conversions.cc',
280 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50281 'values.cc',
282 'values.h',
[email protected]99b7c57f2010-09-29 19:26:36283 'vlog.cc',
284 'vlog.h',
[email protected]ef4fa4072009-12-04 22:46:50285 'waitable_event.h',
286 'waitable_event_posix.cc',
287 'waitable_event_watcher.h',
288 'waitable_event_watcher_posix.cc',
289 'waitable_event_watcher_win.cc',
290 'waitable_event_win.cc',
291 'watchdog.cc',
292 'watchdog.h',
[email protected]3a3d47472010-07-15 21:03:54293 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50294 'weak_ptr.h',
[email protected]2d6503982010-10-17 04:41:54295 'win/pe_image.cc',
[email protected]ba50d1922010-11-06 15:39:40296 'win/event_trace_consumer.h',
297 'win/event_trace_controller.cc',
298 'win/event_trace_controller.h',
299 'win/event_trace_provider.cc',
300 'win/event_trace_provider.h',
[email protected]2d6503982010-10-17 04:41:54301 'win/pe_image.h',
302 'win/registry.cc',
303 'win/registry.h',
[email protected]ce0e72462010-10-16 03:46:05304 'win/scoped_bstr.cc',
305 'win/scoped_bstr.h',
306 'win/scoped_comptr.h',
307 'win/scoped_gdi_object.h',
308 'win/scoped_handle.h',
309 'win/scoped_hdc.h',
310 'win/scoped_hglobal.h',
311 'win/scoped_variant.cc',
312 'win/scoped_variant.h',
[email protected]935aa542010-10-15 01:59:15313 'win/windows_version.cc',
314 'win/windows_version.h',
[email protected]ef4fa4072009-12-04 22:46:50315 'win_util.cc',
316 'win_util.h',
[email protected]ef4fa4072009-12-04 22:46:50317 'worker_pool.h',
318 'worker_pool_linux.cc',
319 'worker_pool_linux.h',
320 'worker_pool_mac.h',
321 'worker_pool_mac.mm',
322 'worker_pool_win.cc',
[email protected]6b0349ef2010-10-16 04:56:06323 'nix/xdg_util.h',
324 'nix/xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50325 ],
326 'include_dirs': [
327 '..',
328 ],
329 # These warnings are needed for the files in third_party\dmg_fp.
330 'msvs_disabled_warnings': [
331 4244, 4554, 4018, 4102,
332 ],
333 'mac_framework_dirs': [
334 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
335 ],
336 'conditions': [
[email protected]93f21e42010-04-01 00:35:15337 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50338 'sources/': [
[email protected]6b0349ef2010-10-16 04:56:06339 ['exclude', '^nix/'],
[email protected]ef4fa4072009-12-04 22:46:50340 ],
341 'sources!': [
342 'atomicops_internals_x86_gcc.cc',
[email protected]ef4fa4072009-12-04 22:46:50343 'message_pump_glib.cc',
[email protected]71ad9c6f2010-10-22 16:17:47344 'message_pump_glib_x.cc',
[email protected]ef4fa4072009-12-04 22:46:50345 ],
[email protected]bcff05a2010-04-14 01:46:43346 }],
[email protected]ef4fa4072009-12-04 22:46:50347 [ 'OS != "linux"', {
348 'sources!': [
349 # Not automatically excluded by the *linux.cc rules.
[email protected]0ea54822010-07-01 20:14:50350 'gtk_util.cc',
351 'gtk_util.h',
[email protected]1c657852010-04-22 23:28:05352 'linux_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50353 'setproctitle_linux.c',
354 'setproctitle_linux.h',
355 ],
356 },
357 ],
[email protected]56fedfa2010-11-05 23:15:58358 # Temporarily include linux implementation while debugging a
359 # workerpool issue. See http://crbug.com/20471 and
360 # http://crbug.com/60426
361 [ 'OS == "mac"', {
362 'sources/': [ ['include', '(^|/)worker_pool_linux\.cc$'] ],
363 },
364 ],
[email protected]824ff722010-08-13 15:24:53365 [ 'OS != "mac"', {
366 'sources!': [
367 'scoped_aedesc.h'
368 ],
369 }],
[email protected]ef4fa4072009-12-04 22:46:50370 # For now, just test the *BSD platforms enough to exclude them.
371 # Subsequent changes will include them further.
372 [ 'OS != "freebsd"', {
373 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
374 },
375 ],
376 [ 'OS != "openbsd"', {
377 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
378 },
379 ],
[email protected]ce0e72462010-10-16 03:46:05380 ['OS != "win"', {
381 'sources/': [ ['exclude', '^win/'] ],
382 },
383 ],
[email protected]ef4fa4072009-12-04 22:46:50384 [ 'OS == "win"', {
[email protected]935aa542010-10-15 01:59:15385 'include_dirs': [
386 '<(DEPTH)/third_party/wtl/include',
387 ],
388 'sources!': [
389 'event_recorder_stubs.cc',
390 'file_descriptor_shuffle.cc',
391 'message_pump_libevent.cc',
392 # Not using sha1_win.cc because it may have caused a
393 # regression to page cycler moz.
394 'sha1_win.cc',
395 'string16.cc',
[email protected]58580352010-10-26 04:07:50396 'debug/trace_event.cc',
[email protected]935aa542010-10-15 01:59:15397 ],
[email protected]ef4fa4072009-12-04 22:46:50398 },],
399 ],
400 }],
[email protected]90f18912010-07-08 16:51:04401 ['base_extra_target==1', {
[email protected]97a28e722010-06-11 21:30:37402 'sources': [
[email protected]3bcd57902010-06-23 22:46:04403 'crypto/capi_util.cc',
404 'crypto/capi_util.h',
[email protected]97a28e722010-06-11 21:30:37405 'crypto/cssm_init.cc',
406 'crypto/cssm_init.h',
407 'crypto/encryptor.h',
408 'crypto/encryptor_mac.cc',
409 'crypto/encryptor_nss.cc',
[email protected]70372d42010-10-22 13:12:34410 'crypto/encryptor_openssl.cc',
[email protected]97a28e722010-06-11 21:30:37411 'crypto/encryptor_win.cc',
412 'crypto/rsa_private_key.h',
413 'crypto/rsa_private_key.cc',
414 'crypto/rsa_private_key_mac.cc',
415 'crypto/rsa_private_key_nss.cc',
[email protected]70372d42010-10-22 13:12:34416 'crypto/rsa_private_key_openssl.cc',
[email protected]97a28e722010-06-11 21:30:37417 'crypto/rsa_private_key_win.cc',
418 'crypto/signature_creator.h',
419 'crypto/signature_creator_mac.cc',
420 'crypto/signature_creator_nss.cc',
[email protected]70372d42010-10-22 13:12:34421 'crypto/signature_creator_openssl.cc',
[email protected]97a28e722010-06-11 21:30:37422 'crypto/signature_creator_win.cc',
423 'crypto/signature_verifier.h',
424 'crypto/signature_verifier_mac.cc',
425 'crypto/signature_verifier_nss.cc',
[email protected]70372d42010-10-22 13:12:34426 'crypto/signature_verifier_openssl.cc',
[email protected]97a28e722010-06-11 21:30:37427 'crypto/signature_verifier_win.cc',
428 'crypto/symmetric_key.h',
429 'crypto/symmetric_key_mac.cc',
430 'crypto/symmetric_key_nss.cc',
[email protected]70372d42010-10-22 13:12:34431 'crypto/symmetric_key_openssl.cc',
[email protected]97a28e722010-06-11 21:30:37432 'crypto/symmetric_key_win.cc',
433 'third_party/nspr/prcpucfg.h',
434 'third_party/nspr/prcpucfg_win.h',
435 'third_party/nspr/prtypes.h',
436 'third_party/nss/blapi.h',
437 'third_party/nss/blapit.h',
438 'third_party/nss/sha256.h',
439 'third_party/nss/sha512.cc',
440 'third_party/purify/pure.h',
441 'third_party/purify/pure_api.c',
442 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
443 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
444 'auto_reset.h',
445 'base64.cc',
446 'base64.h',
[email protected]97a28e722010-06-11 21:30:37447 'data_pack.cc',
448 'event_recorder.cc',
449 'event_recorder.h',
450 'event_recorder_stubs.cc',
[email protected]97a28e722010-06-11 21:30:37451 'file_descriptor_shuffle.cc',
452 'file_descriptor_shuffle.h',
453 'hmac.h',
454 'hmac_mac.cc',
455 'hmac_nss.cc',
[email protected]70372d42010-10-22 13:12:34456 'hmac_openssl.cc',
[email protected]97a28e722010-06-11 21:30:37457 'hmac_win.cc',
458 'image_util.cc',
459 'image_util.h',
[email protected]97a28e722010-06-11 21:30:37460 'linux_util.cc',
461 'linux_util.h',
462 'md5.cc',
463 'md5.h',
464 'message_pump_glib.cc',
465 'message_pump_glib.h',
[email protected]71ad9c6f2010-10-22 16:17:47466 'message_pump_glib_x.cc',
467 'message_pump_glib_x.h',
[email protected]b2f7ac42010-10-26 18:43:18468 'message_pump_glib_x_dispatch.h',
[email protected]97a28e722010-06-11 21:30:37469 'message_pump_libevent.cc',
470 'message_pump_libevent.h',
471 'message_pump_mac.h',
472 'message_pump_mac.mm',
[email protected]835d7c82010-10-14 04:38:38473 'metrics/field_trial.cc',
474 'metrics/field_trial.h',
[email protected]97a28e722010-06-11 21:30:37475 'nsimage_cache_mac.h',
476 'nsimage_cache_mac.mm',
477 'nss_util.cc',
478 'nss_util.h',
479 'setproctitle_linux.c',
480 'setproctitle_linux.h',
481 'sha2.cc',
482 'sha2.h',
[email protected]70372d42010-10-22 13:12:34483 'sha2_openssl.cc',
[email protected]97a28e722010-06-11 21:30:37484 'string16.cc',
485 'string16.h',
486 'sync_socket.h',
487 'sync_socket_win.cc',
488 'sync_socket_posix.cc',
489 'time_mac.cc',
490 'time_posix.cc',
491 'version.cc',
492 'version.h',
493 ],
494 'conditions': [
[email protected]e001408d2010-07-09 03:07:58495 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]97a28e722010-06-11 21:30:37496 'conditions': [
497 [ 'chromeos==1', {
498 'sources/': [ ['include', '_chromeos\\.cc$'] ]
499 },
500 ],
[email protected]97a28e722010-06-11 21:30:37501 ],
502 'defines': [
503 'USE_SYMBOLIZE',
504 ],
505 'cflags': [
506 '-Wno-write-strings',
507 ],
[email protected]e001408d2010-07-09 03:07:58508 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
[email protected]90f18912010-07-08 16:51:04509 'sources/': [
510 ['exclude', '/xdg_user_dirs/'],
511 ['exclude', '_nss\.cc$'],
512 ],
513 }],
514 [ 'OS != "mac"', {
515 'sources!': [
516 'crypto/cssm_init.cc',
517 'crypto/cssm_init.h',
518 ],
519 },],
[email protected]97a28e722010-06-11 21:30:37520 [ 'OS != "win"', {
521 'sources!': [
522 'third_party/purify/pure_api.c',
523 'base_drag_source.cc',
524 'base_drop_target.cc',
525 'cpu.cc',
[email protected]3bcd57902010-06-23 22:46:04526 'crypto/capi_util.h',
527 'crypto/capi_util.cc',
[email protected]97a28e722010-06-11 21:30:37528 'debug_on_start.cc',
529 'event_recorder.cc',
530 'file_version_info.cc',
[email protected]97a28e722010-06-11 21:30:37531 'image_util.cc',
532 'object_watcher.cc',
533 'pe_image.cc',
534 'registry.cc',
535 'resource_util.cc',
536 'win_util.cc',
[email protected]97a28e722010-06-11 21:30:37537 ],
538 },],
[email protected]70372d42010-10-22 13:12:34539 [ 'use_openssl==1', {
540 # TODO(joth): Use a glob to match exclude patterns once the
541 # OpenSSL file set is complete.
542 'sources!': [
543 'crypto/encryptor_nss.cc',
544 'crypto/rsa_private_key_nss.cc',
545 'crypto/signature_creator_nss.cc',
546 'crypto/signature_verifier_nss.cc',
547 'crypto/symmetric_key_nss.cc',
548 'hmac_nss.cc',
549 'nss_util.cc',
550 'nss_util.h',
551 # Note that sha2.cc depends on the NSS files bundled into
552 # chromium; it does not have the _nss postfix as it is required
553 # on platforms besides linux and *bsd.
554 'sha2.cc',
555 'third_party/nss/blapi.h',
556 'third_party/nss/blapit.h',
557 'third_party/nss/sha256.h',
558 'third_party/nss/sha512.cc',
559 ],
560 }, {
561 'sources!': [
562 'crypto/encryptor_openssl.cc',
563 'crypto/rsa_private_key_openssl.cc',
564 'crypto/signature_creator_openssl.cc',
565 'crypto/signature_verifier_openssl.cc',
566 'crypto/symmetric_key_openssl.cc',
567 'hmac_openssl.cc',
568 'sha2_openssl.cc',
569 ],
570 },],
[email protected]97a28e722010-06-11 21:30:37571 ],
572 }],
[email protected]ef4fa4072009-12-04 22:46:50573 ],
574 },
575 'targets': [
576 {
577 'target_name': 'base',
578 'type': '<(library)',
579 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
580 'variables': {
581 'base_target': 1,
[email protected]97a28e722010-06-11 21:30:37582 'base_extra_target': 1,
[email protected]ef4fa4072009-12-04 22:46:50583 },
584 'dependencies': [
585 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37586 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50587 ],
588 # TODO(gregoryd): direct_dependent_settings should be shared with the
589 # 64-bit target, but it doesn't work due to a bug in gyp
590 'direct_dependent_settings': {
591 'include_dirs': [
592 '..',
593 ],
594 },
[email protected]ef4fa4072009-12-04 22:46:50595 'conditions': [
[email protected]66700d42010-03-10 07:46:43596 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
[email protected]ef4fa4072009-12-04 22:46:50597 'conditions': [
[email protected]3e0a8b82010-07-02 01:12:18598 [ 'linux_use_tcmalloc==0', {
599 'defines': [
600 'NO_TCMALLOC',
601 ],
602 'direct_dependent_settings': {
603 'defines': [
604 'NO_TCMALLOC',
605 ],
606 },
607 },
608 ],
[email protected]70372d42010-10-22 13:12:34609 [ 'use_openssl==1', {
610 'dependencies': [
611 '../build/linux/system.gyp:openssl',
612 ],
613 }, { # use_openssl==0
614 'dependencies': [
615 '../build/linux/system.gyp:nss',
616 ],
617 }
618 ],
[email protected]ef4fa4072009-12-04 22:46:50619 ],
620 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37621 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50622 '../build/util/build_util.gyp:lastchange',
623 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47624 '../build/linux/system.gyp:x11',
[email protected]2d48004e2010-02-03 02:11:40625 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26626 ],
[email protected]ef4fa4072009-12-04 22:46:50627 'export_dependent_settings': [
628 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47629 '../build/linux/system.gyp:x11',
[email protected]ef4fa4072009-12-04 22:46:50630 ],
631 },],
[email protected]1d53ce12010-06-11 05:41:00632 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37633 'link_settings': {
634 'libraries': [
635 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00636 ],
637 },
638 },
639 ],
[email protected]72d31962010-06-11 22:45:37640 [ 'OS == "linux"', {
641 'link_settings': {
642 'libraries': [
643 # We need rt for clock_gettime().
644 '-lrt',
645 # For 'native_library_linux.cc'
646 '-ldl',
647 ],
648 },
649 }],
[email protected]1d53ce12010-06-11 05:41:00650 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37651 'link_settings': {
652 'libraries': [
653 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
654 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
655 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
656 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
657 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
658 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
659 ],
660 },
[email protected]1d53ce12010-06-11 05:41:00661 },],
[email protected]3dd6f5e2010-06-01 20:28:03662 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22663 'dependencies': [
664 '../third_party/nss/nss.gyp:nss',
665 ],
[email protected]3dd6f5e2010-06-01 20:28:03666 },],
667 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50668 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]abd4aba2010-01-27 19:36:22669 },],
[email protected]ef4fa4072009-12-04 22:46:50670 ],
[email protected]ef4fa4072009-12-04 22:46:50671 },
672 ],
673 'conditions': [
674 [ 'OS == "win"', {
675 'targets': [
676 {
677 'target_name': 'base_nacl_win64',
678 'type': '<(library)',
679 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
680 'variables': {
681 'base_target': 1,
682 },
[email protected]ee857512010-05-14 08:24:42683 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37684 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42685 ],
[email protected]ef4fa4072009-12-04 22:46:50686 # TODO(gregoryd): direct_dependent_settings should be shared with the
687 # 32-bit target, but it doesn't work due to a bug in gyp
688 'direct_dependent_settings': {
689 'include_dirs': [
690 '..',
691 ],
692 },
693 'defines': [
694 '<@(nacl_win64_defines)',
695 ],
696 'sources': [
697 'i18n/icu_util_nacl_win64.cc',
698 ],
699 'configurations': {
[email protected]8782f7072009-12-22 22:57:37700 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50701 'msvs_target_platform': 'x64',
702 },
703 },
704 },
705 ],
706 }],
[email protected]0c2583a92010-06-16 00:53:01707 [ 'OS == "linux" and internal_pdf', {
[email protected]97a28e722010-06-11 21:30:37708 'targets': [
709 {
710 'target_name': 'base_fpic',
711 'type': '<(library)',
712 'variables': {
713 'base_target': 1,
714 'base_extra_target': 1,
715 },
716 'cflags': [
717 '-fPIC',
718 ],
719 'direct_dependent_settings': {
720 'include_dirs': [
721 '..',
722 ],
723 },
724 'conditions': [
725 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
726 'dependencies': [
727 '../build/util/build_util.gyp:lastchange',
728 '../build/linux/system.gyp:gtk',
729 '../build/linux/system.gyp:nss',
[email protected]71ad9c6f2010-10-22 16:17:47730 '../build/linux/system.gyp:x11',
[email protected]97a28e722010-06-11 21:30:37731 'xdg_mime',
732 ],
733 'export_dependent_settings': [
734 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47735 '../build/linux/system.gyp:x11',
[email protected]97a28e722010-06-11 21:30:37736 ],
737 },],
[email protected]72d31962010-06-11 22:45:37738 ['OS == "linux"', {
739 'link_settings': {
740 'libraries': [
741 # We need rt for clock_gettime().
742 '-lrt',
743 # For 'native_library_linux.cc'
744 '-ldl',
745 ],
746 },
747 }],
[email protected]97a28e722010-06-11 21:30:37748 [ 'OS == "mac" or OS == "win"', {
749 'dependencies': [
750 '../third_party/nss/nss.gyp:nss',
751 ],
752 },],
753 [ 'OS != "win"', {
754 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
755 },],
756 ],
757 },
758 ],
759 }],
[email protected]93f21e42010-04-01 00:35:15760 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26761 'targets': [
762 {
763 'target_name': 'symbolize',
764 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36765 'variables': {
766 'chromium_code': 0,
767 },
[email protected]93f21e42010-04-01 00:35:15768 'conditions': [
769 [ 'OS == "solaris"', {
770 'include_dirs': [
771 '/usr/gnu/include',
772 '/usr/gnu/include/libelf',
773 ],
774 },],
775 ],
[email protected]48c27f72010-01-26 06:26:26776 'cflags': [
777 '-Wno-sign-compare',
778 ],
[email protected]225c8f52010-02-05 22:23:20779 'cflags!': [
780 '-Wextra',
781 ],
[email protected]48c27f72010-01-26 06:26:26782 'sources': [
783 'third_party/symbolize/symbolize.cc',
784 'third_party/symbolize/demangle.cc',
785 ],
786 },
[email protected]2d48004e2010-02-03 02:11:40787 {
788 'target_name': 'xdg_mime',
789 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36790 'variables': {
791 'chromium_code': 0,
792 },
[email protected]225c8f52010-02-05 22:23:20793 'cflags!': [
794 '-Wextra',
795 ],
[email protected]2d48004e2010-02-03 02:11:40796 'sources': [
797 'third_party/xdg_mime/xdgmime.c',
798 'third_party/xdg_mime/xdgmime.h',
799 'third_party/xdg_mime/xdgmimealias.c',
800 'third_party/xdg_mime/xdgmimealias.h',
801 'third_party/xdg_mime/xdgmimecache.c',
802 'third_party/xdg_mime/xdgmimecache.h',
803 'third_party/xdg_mime/xdgmimeglob.c',
804 'third_party/xdg_mime/xdgmimeglob.h',
805 'third_party/xdg_mime/xdgmimeicon.c',
806 'third_party/xdg_mime/xdgmimeicon.h',
807 'third_party/xdg_mime/xdgmimeint.c',
808 'third_party/xdg_mime/xdgmimeint.h',
809 'third_party/xdg_mime/xdgmimemagic.c',
810 'third_party/xdg_mime/xdgmimemagic.h',
811 'third_party/xdg_mime/xdgmimeparent.c',
812 'third_party/xdg_mime/xdgmimeparent.h',
813 ],
814 },
[email protected]48c27f72010-01-26 06:26:26815 ],
816 }],
[email protected]ef4fa4072009-12-04 22:46:50817 ],
818}