blob: b68ced8fbb7f2ec1401f8259b710e357f41de91c [file] [log] [blame]
[email protected]bc581a682011-01-01 23:16:201# Copyright (c) 2011 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,
9 },
10 'target_conditions': [
[email protected]0ea54822010-07-01 20:14:5011 # This part is shared between the targets defined below.
[email protected]ef4fa4072009-12-04 22:46:5012 ['base_target==1', {
13 'sources': [
14 '../build/build_config.h',
15 'third_party/dmg_fp/dmg_fp.h',
[email protected]ef4fa4072009-12-04 22:46:5016 'third_party/dmg_fp/g_fmt.cc',
[email protected]e9bb5b22010-11-25 17:37:4717 'third_party/dmg_fp/dtoa_wrapper.cc',
[email protected]ef4fa4072009-12-04 22:46:5018 'third_party/icu/icu_utf.cc',
19 'third_party/icu/icu_utf.h',
20 'third_party/nspr/prtime.cc',
21 'third_party/nspr/prtime.h',
[email protected]ef4fa4072009-12-04 22:46:5022 'at_exit.cc',
23 'at_exit.h',
24 'atomic_ref_count.h',
25 'atomic_sequence_num.h',
26 'atomicops.h',
[email protected]9bc8cff2010-04-03 01:05:3927 'atomicops_internals_x86_gcc.cc',
[email protected]ef4fa4072009-12-04 22:46:5028 'atomicops_internals_x86_msvc.h',
29 'base_paths.cc',
30 'base_paths.h',
31 'base_paths_mac.h',
32 'base_paths_mac.mm',
[email protected]6b0349ef2010-10-16 04:56:0633 'base_paths_linux.cc',
[email protected]ef4fa4072009-12-04 22:46:5034 'base_paths_win.cc',
35 'base_paths_win.h',
36 'base_switches.cc',
37 'base_switches.h',
38 'basictypes.h',
39 'bits.h',
40 'bzip2_error_handler.cc',
[email protected]2041cf342010-02-19 03:15:5941 'callback.h',
[email protected]ef4fa4072009-12-04 22:46:5042 'command_line.cc',
43 'command_line.h',
44 'compiler_specific.h',
[email protected]ef4fa4072009-12-04 22:46:5045 'cpu.cc',
46 'cpu.h',
[email protected]10f33b1b2011-01-01 19:55:2247 'debug/debug_on_start_win.cc',
48 'debug/debug_on_start_win.h',
[email protected]58580352010-10-26 04:07:5049 'debug/debugger.cc',
50 'debug/debugger.h',
51 'debug/debugger_posix.cc',
52 'debug/debugger_win.cc',
53 'debug/leak_annotations.h',
54 'debug/leak_tracker.h',
55 'debug/stack_trace.cc',
56 'debug/stack_trace.h',
57 'debug/stack_trace_posix.cc',
58 'debug/stack_trace_win.cc',
59 'debug/trace_event_win.cc',
60 'debug/trace_event.cc',
61 'debug/trace_event.h',
[email protected]ef73044e2010-03-11 15:25:5462 'dir_reader_fallback.h',
63 'dir_reader_linux.h',
64 'dir_reader_posix.h',
[email protected]76b90d312010-08-03 03:00:5065 'environment.cc',
66 'environment.h',
[email protected]ef4fa4072009-12-04 22:46:5067 'file_path.cc',
68 'file_path.h',
69 'file_util.cc',
70 'file_util.h',
[email protected]a84ab952010-02-23 11:34:5471 'file_util_deprecated.h',
[email protected]1d01d412010-08-20 00:36:0172 'file_util_linux.cc',
[email protected]ef4fa4072009-12-04 22:46:5073 'file_util_mac.mm',
74 'file_util_posix.cc',
75 'file_util_win.cc',
[email protected]b90c93ff2010-08-20 22:42:5076 'file_util_proxy.cc',
77 'file_util_proxy.h',
[email protected]ef4fa4072009-12-04 22:46:5078 'file_version_info.h',
[email protected]bcff05a2010-04-14 01:46:4379 'file_version_info_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5080 'file_version_info_mac.mm',
[email protected]bcff05a2010-04-14 01:46:4381 'file_version_info_win.cc',
82 'file_version_info_win.h',
[email protected]ef4fa4072009-12-04 22:46:5083 'fix_wp64.h',
84 'float_util.h',
85 'foundation_utils_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5086 'global_descriptors_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:3987 'global_descriptors_posix.h',
[email protected]a918f872010-06-01 14:30:5188 'gtest_prod_util.h',
[email protected]ef4fa4072009-12-04 22:46:5089 'hash_tables.h',
[email protected]ef4fa4072009-12-04 22:46:5090 'id_map.h',
[email protected]252cad62010-08-18 18:33:5791 'json/json_reader.cc',
92 'json/json_reader.h',
93 'json/json_writer.cc',
94 'json/json_writer.h',
95 'json/string_escape.cc',
96 'json/string_escape.h',
[email protected]ef4fa4072009-12-04 22:46:5097 'lazy_instance.cc',
98 'lazy_instance.h',
[email protected]ef4fa4072009-12-04 22:46:5099 'linked_list.h',
100 'linked_ptr.h',
[email protected]ef4fa4072009-12-04 22:46:50101 'lock.h',
[email protected]ef4fa4072009-12-04 22:46:50102 'logging.cc',
[email protected]ef4fa4072009-12-04 22:46:50103 'logging.h',
[email protected]9bc8cff2010-04-03 01:05:39104 'logging_win.cc',
[email protected]c040fee2010-12-23 00:43:36105 'mac/cocoa_protocols.h',
[email protected]0378bf42011-01-01 18:20:14106 'mac/mac_util.h',
107 'mac/mac_util.mm',
[email protected]d0282962011-01-01 16:08:52108 'mac/os_crash_dumps.cc',
109 'mac/os_crash_dumps.h',
[email protected]c2818d42010-10-18 02:47:39110 'mac/scoped_aedesc.h',
[email protected]ac0f8be2010-11-12 12:03:54111 'mac/scoped_cftyperef.h',
[email protected]c2818d42010-10-18 02:47:39112 'mac/scoped_nsautorelease_pool.h',
113 'mac/scoped_nsautorelease_pool.mm',
[email protected]c0028792010-01-12 00:39:15114 'mach_ipc_mac.h',
115 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50116 'memory_debug.cc',
117 'memory_debug.h',
118 'message_loop.cc',
119 'message_loop.h',
[email protected]d4799a32010-09-28 22:54:58120 'message_loop_proxy.cc',
[email protected]2cbac9e2010-04-29 03:31:34121 'message_loop_proxy.h',
[email protected]656475d2010-05-06 18:34:24122 'message_loop_proxy_impl.cc',
123 'message_loop_proxy_impl.h',
[email protected]d4799a32010-09-28 22:54:58124 'message_pump.cc',
[email protected]ef4fa4072009-12-04 22:46:50125 'message_pump.h',
126 'message_pump_default.cc',
127 'message_pump_default.h',
128 'message_pump_win.cc',
129 'message_pump_win.h',
[email protected]835d7c82010-10-14 04:38:38130 'metrics/histogram.cc',
131 'metrics/histogram.h',
[email protected]9ec74462010-10-28 16:48:05132 'metrics/nacl_histogram.cc',
[email protected]176ab802010-11-18 02:15:12133 'metrics/nacl_histogram.h',
[email protected]835d7c82010-10-14 04:38:38134 'metrics/stats_counters.cc',
135 'metrics/stats_counters.h',
136 'metrics/stats_table.cc',
137 'metrics/stats_table.h',
[email protected]ef4fa4072009-12-04 22:46:50138 'mime_util.h',
[email protected]1c657852010-04-22 23:28:05139 'mime_util_xdg.cc',
[email protected]ef4fa4072009-12-04 22:46:50140 'native_library.h',
141 'native_library_linux.cc',
142 'native_library_mac.mm',
143 'native_library_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50144 'observer_list.h',
145 'observer_list_threadsafe.h',
146 'path_service.cc',
147 'path_service.h',
148 'pickle.cc',
149 'pickle.h',
[email protected]a502bbe72011-01-07 18:06:45150 'platform_file.cc',
[email protected]ef4fa4072009-12-04 22:46:50151 'platform_file.h',
[email protected]ef4fa4072009-12-04 22:46:50152 'platform_file_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:39153 'platform_file_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50154 'port.h',
[email protected]ef4fa4072009-12-04 22:46:50155 'process.h',
156 'process_linux.cc',
157 'process_posix.cc',
[email protected]b6128aa2010-04-29 17:44:42158 'process_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50159 'process_util.h',
160 'process_util_linux.cc',
161 'process_util_mac.mm',
162 'process_util_posix.cc',
163 'process_util_win.cc',
164 'process_win.cc',
165 'rand_util.cc',
166 'rand_util.h',
167 'rand_util_posix.cc',
168 'rand_util_win.cc',
169 'raw_scoped_refptr_mismatch_checker.h',
170 'ref_counted.cc',
171 'ref_counted.h',
[email protected]3071754432010-07-28 00:09:54172 'ref_counted_memory.cc',
[email protected]ef4fa4072009-12-04 22:46:50173 'ref_counted_memory.h',
[email protected]ef4fa4072009-12-04 22:46:50174 'resource_util.cc',
175 'resource_util.h',
176 'safe_strerror_posix.cc',
177 'safe_strerror_posix.h',
[email protected]21ae1f92010-07-30 23:05:15178 'scoped_callback_factory.h',
[email protected]ef4fa4072009-12-04 22:46:50179 'scoped_handle.h',
[email protected]709a847e2010-11-10 01:16:11180 'scoped_native_library.cc',
181 'scoped_native_library.h',
[email protected]ef4fa4072009-12-04 22:46:50182 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04183 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50184 'scoped_ptr.h',
185 'scoped_temp_dir.cc',
186 'scoped_temp_dir.h',
[email protected]ef4fa4072009-12-04 22:46:50187 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50188 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40189 'sha1_portable.cc',
190 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50191 'shared_memory.h',
192 'shared_memory_posix.cc',
193 'shared_memory_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50194 'singleton.h',
195 'spin_wait.h',
196 'stack_container.h',
[email protected]ef4fa4072009-12-04 22:46:50197 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44198 'string_number_conversions.cc',
199 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50200 'string_piece.cc',
201 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25202 'string_split.cc',
203 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50204 'string_tokenizer.h',
205 'string_util.cc',
206 'string_util.h',
207 'string_util_win.h',
[email protected]176ab802010-11-18 02:15:12208 'stringize_macros.h',
[email protected]e6811ed52010-08-17 03:45:37209 'stringprintf.cc',
210 'stringprintf.h',
[email protected]44f9c952011-01-02 06:05:39211 'synchronization/cancellation_flag.cc',
212 'synchronization/cancellation_flag.h',
[email protected]bc581a682011-01-01 23:16:20213 'synchronization/condition_variable.h',
214 'synchronization/condition_variable_posix.cc',
215 'synchronization/condition_variable_win.cc',
216 'synchronization/lock.cc',
217 'synchronization/lock.h',
218 'synchronization/lock_impl.h',
219 'synchronization/lock_impl_posix.cc',
220 'synchronization/lock_impl_win.cc',
[email protected]44f9c952011-01-02 06:05:39221 'synchronization/waitable_event.h',
222 'synchronization/waitable_event_posix.cc',
223 'synchronization/waitable_event_watcher.h',
224 'synchronization/waitable_event_watcher_posix.cc',
225 'synchronization/waitable_event_watcher_win.cc',
226 'synchronization/waitable_event_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50227 'sys_info.h',
228 'sys_info_chromeos.cc',
229 'sys_info_freebsd.cc',
230 'sys_info_linux.cc',
231 'sys_info_mac.cc',
232 'sys_info_openbsd.cc',
233 'sys_info_posix.cc',
234 'sys_info_win.cc',
235 'sys_string_conversions.h',
236 'sys_string_conversions_linux.cc',
237 'sys_string_conversions_mac.mm',
238 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54239 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50240 'task.h',
[email protected]6fd0ca52010-08-26 06:09:38241 'task_queue.cc',
242 'task_queue.h',
[email protected]951269b2010-06-15 19:39:24243 'template_util.h',
[email protected]c9177502011-01-01 04:48:49244 'threading/non_thread_safe.cc',
245 'threading/non_thread_safe.h',
[email protected]ce072a72010-12-31 20:02:16246 'threading/platform_thread.h',
247 'threading/platform_thread_mac.mm',
248 'threading/platform_thread_posix.cc',
249 'threading/platform_thread_win.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36250 'threading/simple_thread.cc',
251 'threading/simple_thread.h',
[email protected]34b99632011-01-01 01:01:06252 'threading/thread.cc',
253 'threading/thread.h',
[email protected]ce072a72010-12-31 20:02:16254 'threading/thread_checker.cc',
255 'threading/thread_checker.h',
[email protected]34b99632011-01-01 01:01:06256 'threading/thread_collision_warner.cc',
257 'threading/thread_collision_warner.h',
[email protected]1357c322010-12-30 22:18:56258 'threading/thread_local.h',
259 'threading/thread_local_posix.cc',
260 'threading/thread_local_storage.h',
261 'threading/thread_local_storage_posix.cc',
262 'threading/thread_local_storage_win.cc',
263 'threading/thread_local_win.cc',
[email protected]34b99632011-01-01 01:01:06264 'threading/thread_restrictions.h',
265 'threading/thread_restrictions.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36266 'threading/watchdog.cc',
267 'threading/watchdog.h',
268 'threading/worker_pool.h',
269 'threading/worker_pool_posix.cc',
270 'threading/worker_pool_posix.h',
271 'threading/worker_pool_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50272 'time.cc',
273 'time.h',
274 'time_win.cc',
275 'timer.cc',
276 'timer.h',
[email protected]ef4fa4072009-12-04 22:46:50277 'tracked.cc',
278 'tracked.h',
279 'tracked_objects.cc',
280 'tracked_objects.h',
281 'tuple.h',
282 'utf_offset_string_conversions.cc',
283 'utf_offset_string_conversions.h',
284 'utf_string_conversion_utils.cc',
285 'utf_string_conversion_utils.h',
286 'utf_string_conversions.cc',
287 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50288 'values.cc',
289 'values.h',
[email protected]6dc910c2010-11-10 17:02:19290 'version.cc',
291 'version.h',
[email protected]99b7c57f2010-09-29 19:26:36292 'vlog.cc',
293 'vlog.h',
[email protected]3a3d47472010-07-15 21:03:54294 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50295 'weak_ptr.h',
[email protected]337ca072010-11-16 15:28:45296 'win/i18n.cc',
297 'win/i18n.h',
[email protected]a8d1ebbe2011-01-01 18:26:16298 'win/object_watcher.cc',
299 'win/object_watcher.h',
[email protected]2d6503982010-10-17 04:41:54300 'win/pe_image.cc',
[email protected]ba50d1922010-11-06 15:39:40301 'win/event_trace_consumer.h',
302 'win/event_trace_controller.cc',
303 'win/event_trace_controller.h',
304 'win/event_trace_provider.cc',
305 'win/event_trace_provider.h',
[email protected]2d6503982010-10-17 04:41:54306 'win/pe_image.h',
307 'win/registry.cc',
308 'win/registry.h',
[email protected]ce0e72462010-10-16 03:46:05309 'win/scoped_bstr.cc',
310 'win/scoped_bstr.h',
311 'win/scoped_comptr.h',
312 'win/scoped_gdi_object.h',
313 'win/scoped_handle.h',
314 'win/scoped_hdc.h',
315 'win/scoped_hglobal.h',
316 'win/scoped_variant.cc',
317 'win/scoped_variant.h',
[email protected]a8e20582010-12-31 17:18:50318 'win/win_util.cc',
319 'win/win_util.h',
[email protected]935aa542010-10-15 01:59:15320 'win/windows_version.cc',
321 'win/windows_version.h',
[email protected]6b0349ef2010-10-16 04:56:06322 'nix/xdg_util.h',
323 'nix/xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50324 ],
325 'include_dirs': [
326 '..',
327 ],
328 # These warnings are needed for the files in third_party\dmg_fp.
329 'msvs_disabled_warnings': [
330 4244, 4554, 4018, 4102,
331 ],
332 'mac_framework_dirs': [
333 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
334 ],
335 'conditions': [
[email protected]93f21e42010-04-01 00:35:15336 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50337 'sources/': [
[email protected]6b0349ef2010-10-16 04:56:06338 ['exclude', '^nix/'],
[email protected]ef4fa4072009-12-04 22:46:50339 ],
340 'sources!': [
341 'atomicops_internals_x86_gcc.cc',
[email protected]ef4fa4072009-12-04 22:46:50342 'message_pump_glib.cc',
[email protected]71ad9c6f2010-10-22 16:17:47343 'message_pump_glib_x.cc',
[email protected]ef4fa4072009-12-04 22:46:50344 ],
[email protected]bcff05a2010-04-14 01:46:43345 }],
[email protected]ef4fa4072009-12-04 22:46:50346 [ 'OS != "linux"', {
347 'sources!': [
348 # Not automatically excluded by the *linux.cc rules.
[email protected]0ea54822010-07-01 20:14:50349 'gtk_util.cc',
350 'gtk_util.h',
[email protected]1c657852010-04-22 23:28:05351 'linux_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50352 ],
353 },
354 ],
[email protected]824ff722010-08-13 15:24:53355 [ 'OS != "mac"', {
356 'sources!': [
357 'scoped_aedesc.h'
358 ],
359 }],
[email protected]ef4fa4072009-12-04 22:46:50360 # For now, just test the *BSD platforms enough to exclude them.
361 # Subsequent changes will include them further.
362 [ 'OS != "freebsd"', {
363 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
364 },
365 ],
366 [ 'OS != "openbsd"', {
367 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
368 },
369 ],
[email protected]ce0e72462010-10-16 03:46:05370 ['OS != "win"', {
371 'sources/': [ ['exclude', '^win/'] ],
372 },
373 ],
[email protected]ef4fa4072009-12-04 22:46:50374 [ 'OS == "win"', {
[email protected]935aa542010-10-15 01:59:15375 'include_dirs': [
376 '<(DEPTH)/third_party/wtl/include',
377 ],
378 'sources!': [
379 'event_recorder_stubs.cc',
380 'file_descriptor_shuffle.cc',
381 'message_pump_libevent.cc',
382 # Not using sha1_win.cc because it may have caused a
383 # regression to page cycler moz.
384 'sha1_win.cc',
385 'string16.cc',
[email protected]58580352010-10-26 04:07:50386 'debug/trace_event.cc',
[email protected]935aa542010-10-15 01:59:15387 ],
[email protected]ef4fa4072009-12-04 22:46:50388 },],
389 ],
390 }],
391 ],
392 },
393 'targets': [
394 {
395 'target_name': 'base',
396 'type': '<(library)',
397 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
398 'variables': {
399 'base_target': 1,
400 },
401 'dependencies': [
402 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37403 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50404 ],
405 # TODO(gregoryd): direct_dependent_settings should be shared with the
406 # 64-bit target, but it doesn't work due to a bug in gyp
407 'direct_dependent_settings': {
408 'include_dirs': [
409 '..',
410 ],
411 },
[email protected]ef4fa4072009-12-04 22:46:50412 'conditions': [
[email protected]325cca02010-12-01 20:22:49413 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50414 'conditions': [
[email protected]325cca02010-12-01 20:22:49415 [ 'chromeos==1', {
416 'sources/': [ ['include', '_chromeos\\.cc$'] ]
417 },
418 ],
[email protected]3e0a8b82010-07-02 01:12:18419 [ 'linux_use_tcmalloc==0', {
420 'defines': [
421 'NO_TCMALLOC',
422 ],
423 'direct_dependent_settings': {
424 'defines': [
425 'NO_TCMALLOC',
426 ],
427 },
428 },
429 ],
[email protected]70372d42010-10-22 13:12:34430 [ 'use_openssl==1', {
431 'dependencies': [
[email protected]32e1dee2010-12-09 18:36:24432 '../third_party/openssl/openssl.gyp:openssl',
[email protected]70372d42010-10-22 13:12:34433 ],
434 }, { # use_openssl==0
435 'dependencies': [
436 '../build/linux/system.gyp:nss',
437 ],
438 }
439 ],
[email protected]ef4fa4072009-12-04 22:46:50440 ],
441 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37442 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50443 '../build/util/build_util.gyp:lastchange',
444 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47445 '../build/linux/system.gyp:x11',
[email protected]2d48004e2010-02-03 02:11:40446 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26447 ],
[email protected]325cca02010-12-01 20:22:49448 'defines': [
449 'USE_SYMBOLIZE',
450 ],
451 'cflags': [
452 '-Wno-write-strings',
453 ],
[email protected]ef4fa4072009-12-04 22:46:50454 'export_dependent_settings': [
455 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47456 '../build/linux/system.gyp:x11',
[email protected]ef4fa4072009-12-04 22:46:50457 ],
[email protected]325cca02010-12-01 20:22:49458 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
459 'sources/': [
460 ['exclude', '/xdg_user_dirs/'],
461 ['exclude', '_nss\.cc$'],
462 ],
463 }],
[email protected]1d53ce12010-06-11 05:41:00464 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37465 'link_settings': {
466 'libraries': [
467 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00468 ],
469 },
470 },
471 ],
[email protected]72d31962010-06-11 22:45:37472 [ 'OS == "linux"', {
473 'link_settings': {
474 'libraries': [
475 # We need rt for clock_gettime().
476 '-lrt',
477 # For 'native_library_linux.cc'
478 '-ldl',
479 ],
480 },
481 }],
[email protected]1d53ce12010-06-11 05:41:00482 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37483 'link_settings': {
484 'libraries': [
485 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
486 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
487 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
488 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
489 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
490 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
491 ],
492 },
[email protected]325cca02010-12-01 20:22:49493 }, { # OS != "mac"
494 'sources!': [
495 'crypto/cssm_init.cc',
496 'crypto/cssm_init.h',
497 ],
498 }],
[email protected]3dd6f5e2010-06-01 20:28:03499 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22500 'dependencies': [
501 '../third_party/nss/nss.gyp:nss',
502 ],
[email protected]3dd6f5e2010-06-01 20:28:03503 },],
504 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50505 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]325cca02010-12-01 20:22:49506 'sources!': [
507 'third_party/purify/pure_api.c',
508 'base_drag_source.cc',
509 'base_drop_target.cc',
510 'cpu.cc',
511 'crypto/capi_util.h',
512 'crypto/capi_util.cc',
[email protected]325cca02010-12-01 20:22:49513 'event_recorder.cc',
514 'file_version_info.cc',
[email protected]325cca02010-12-01 20:22:49515 'pe_image.cc',
516 'registry.cc',
517 'resource_util.cc',
518 'win_util.cc',
519 ],
[email protected]abd4aba2010-01-27 19:36:22520 },],
[email protected]325cca02010-12-01 20:22:49521 [ 'use_openssl==1', {
522 # TODO(joth): Use a glob to match exclude patterns once the
523 # OpenSSL file set is complete.
524 'sources!': [
525 'crypto/encryptor_nss.cc',
526 'crypto/rsa_private_key_nss.cc',
527 'crypto/signature_creator_nss.cc',
528 'crypto/signature_verifier_nss.cc',
529 'crypto/symmetric_key_nss.cc',
530 'hmac_nss.cc',
531 'nss_util.cc',
532 'nss_util.h',
533 # Note that sha2.cc depends on the NSS files bundled into
534 # chromium; it does not have the _nss postfix as it is required
535 # on platforms besides linux and *bsd.
536 'sha2.cc',
537 'third_party/nss/blapi.h',
538 'third_party/nss/blapit.h',
539 'third_party/nss/sha256.h',
540 'third_party/nss/sha512.cc',
541 ],
542 }, {
543 'sources!': [
544 'crypto/encryptor_openssl.cc',
545 'crypto/rsa_private_key_openssl.cc',
546 'crypto/signature_creator_openssl.cc',
547 'crypto/signature_verifier_openssl.cc',
548 'crypto/symmetric_key_openssl.cc',
549 'hmac_openssl.cc',
550 'openssl_util.cc',
551 'openssl_util.h',
552 'sha2_openssl.cc',
553 ],
554 },],
555 ],
556 'sources': [
557 'crypto/capi_util.cc',
558 'crypto/capi_util.h',
[email protected]3f1f8412011-01-19 03:01:23559 'crypto/crypto_module_blocking_password_delegate.h',
[email protected]325cca02010-12-01 20:22:49560 'crypto/cssm_init.cc',
561 'crypto/cssm_init.h',
562 'crypto/encryptor.h',
563 'crypto/encryptor_mac.cc',
564 'crypto/encryptor_nss.cc',
565 'crypto/encryptor_openssl.cc',
566 'crypto/encryptor_win.cc',
[email protected]325cca02010-12-01 20:22:49567 'crypto/rsa_private_key.h',
568 'crypto/rsa_private_key.cc',
569 'crypto/rsa_private_key_mac.cc',
570 'crypto/rsa_private_key_nss.cc',
571 'crypto/rsa_private_key_openssl.cc',
572 'crypto/rsa_private_key_win.cc',
573 'crypto/signature_creator.h',
574 'crypto/signature_creator_mac.cc',
575 'crypto/signature_creator_nss.cc',
576 'crypto/signature_creator_openssl.cc',
577 'crypto/signature_creator_win.cc',
578 'crypto/signature_verifier.h',
579 'crypto/signature_verifier_mac.cc',
580 'crypto/signature_verifier_nss.cc',
581 'crypto/signature_verifier_openssl.cc',
582 'crypto/signature_verifier_win.cc',
583 'crypto/symmetric_key.h',
584 'crypto/symmetric_key_mac.cc',
585 'crypto/symmetric_key_nss.cc',
586 'crypto/symmetric_key_openssl.cc',
587 'crypto/symmetric_key_win.cc',
588 'third_party/nspr/prcpucfg.h',
589 'third_party/nspr/prcpucfg_win.h',
590 'third_party/nspr/prtypes.h',
591 'third_party/nss/blapi.h',
592 'third_party/nss/blapit.h',
593 'third_party/nss/sha256.h',
594 'third_party/nss/sha512.cc',
595 'third_party/purify/pure.h',
596 'third_party/purify/pure_api.c',
597 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
598 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
599 'auto_reset.h',
600 'base64.cc',
601 'base64.h',
[email protected]325cca02010-12-01 20:22:49602 'event_recorder.cc',
603 'event_recorder.h',
604 'event_recorder_stubs.cc',
605 'file_descriptor_shuffle.cc',
606 'file_descriptor_shuffle.h',
607 'hmac.h',
608 'hmac_mac.cc',
609 'hmac_nss.cc',
610 'hmac_openssl.cc',
611 'hmac_win.cc',
[email protected]325cca02010-12-01 20:22:49612 'linux_util.cc',
613 'linux_util.h',
614 'md5.cc',
615 'md5.h',
616 'message_pump_glib.cc',
617 'message_pump_glib.h',
618 'message_pump_glib_x.cc',
619 'message_pump_glib_x.h',
620 'message_pump_glib_x_dispatch.h',
621 'message_pump_libevent.cc',
622 'message_pump_libevent.h',
623 'message_pump_mac.h',
624 'message_pump_mac.mm',
625 'metrics/field_trial.cc',
626 'metrics/field_trial.h',
[email protected]325cca02010-12-01 20:22:49627 'nss_util.cc',
628 'nss_util.h',
629 'openssl_util.cc',
630 'openssl_util.h',
[email protected]325cca02010-12-01 20:22:49631 'sha2.cc',
632 'sha2.h',
633 'sha2_openssl.cc',
634 'string16.cc',
635 'string16.h',
636 'sync_socket.h',
637 'sync_socket_win.cc',
638 'sync_socket_posix.cc',
639 'time_mac.cc',
640 'time_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50641 ],
[email protected]ef4fa4072009-12-04 22:46:50642 },
643 ],
644 'conditions': [
645 [ 'OS == "win"', {
646 'targets': [
647 {
648 'target_name': 'base_nacl_win64',
649 'type': '<(library)',
650 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
651 'variables': {
652 'base_target': 1,
653 },
[email protected]ee857512010-05-14 08:24:42654 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37655 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42656 ],
[email protected]ef4fa4072009-12-04 22:46:50657 # TODO(gregoryd): direct_dependent_settings should be shared with the
658 # 32-bit target, but it doesn't work due to a bug in gyp
659 'direct_dependent_settings': {
660 'include_dirs': [
661 '..',
662 ],
663 },
664 'defines': [
665 '<@(nacl_win64_defines)',
666 ],
667 'sources': [
668 'i18n/icu_util_nacl_win64.cc',
669 ],
670 'configurations': {
[email protected]8782f7072009-12-22 22:57:37671 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50672 'msvs_target_platform': 'x64',
673 },
674 },
675 },
676 ],
677 }],
[email protected]93f21e42010-04-01 00:35:15678 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26679 'targets': [
680 {
681 'target_name': 'symbolize',
682 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36683 'variables': {
684 'chromium_code': 0,
685 },
[email protected]93f21e42010-04-01 00:35:15686 'conditions': [
687 [ 'OS == "solaris"', {
688 'include_dirs': [
689 '/usr/gnu/include',
690 '/usr/gnu/include/libelf',
691 ],
692 },],
693 ],
[email protected]48c27f72010-01-26 06:26:26694 'cflags': [
695 '-Wno-sign-compare',
696 ],
[email protected]225c8f52010-02-05 22:23:20697 'cflags!': [
698 '-Wextra',
699 ],
[email protected]48c27f72010-01-26 06:26:26700 'sources': [
701 'third_party/symbolize/symbolize.cc',
702 'third_party/symbolize/demangle.cc',
703 ],
704 },
[email protected]2d48004e2010-02-03 02:11:40705 {
706 'target_name': 'xdg_mime',
707 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36708 'variables': {
709 'chromium_code': 0,
710 },
[email protected]225c8f52010-02-05 22:23:20711 'cflags!': [
712 '-Wextra',
713 ],
[email protected]2d48004e2010-02-03 02:11:40714 'sources': [
715 'third_party/xdg_mime/xdgmime.c',
716 'third_party/xdg_mime/xdgmime.h',
717 'third_party/xdg_mime/xdgmimealias.c',
718 'third_party/xdg_mime/xdgmimealias.h',
719 'third_party/xdg_mime/xdgmimecache.c',
720 'third_party/xdg_mime/xdgmimecache.h',
721 'third_party/xdg_mime/xdgmimeglob.c',
722 'third_party/xdg_mime/xdgmimeglob.h',
723 'third_party/xdg_mime/xdgmimeicon.c',
724 'third_party/xdg_mime/xdgmimeicon.h',
725 'third_party/xdg_mime/xdgmimeint.c',
726 'third_party/xdg_mime/xdgmimeint.h',
727 'third_party/xdg_mime/xdgmimemagic.c',
728 'third_party/xdg_mime/xdgmimemagic.h',
729 'third_party/xdg_mime/xdgmimeparent.c',
730 'third_party/xdg_mime/xdgmimeparent.h',
731 ],
732 },
[email protected]48c27f72010-01-26 06:26:26733 ],
734 }],
[email protected]ef4fa4072009-12-04 22:46:50735 ],
736}