blob: e969149185662d48f438606adaa46e2102332a57 [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,
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 'cancellation_flag.cc',
[email protected]9bc8cff2010-04-03 01:05:3943 'cancellation_flag.h',
[email protected]ef4fa4072009-12-04 22:46:5044 'command_line.cc',
45 'command_line.h',
46 'compiler_specific.h',
47 'condition_variable.h',
48 'condition_variable_posix.cc',
49 'condition_variable_win.cc',
50 'cpu.cc',
51 'cpu.h',
52 'debug_on_start.cc',
53 'debug_on_start.h',
54 'debug_util.cc',
55 'debug_util.h',
56 'debug_util_mac.cc',
[email protected]58580352010-10-26 04:07:5057 'debug/debugger.cc',
58 'debug/debugger.h',
59 'debug/debugger_posix.cc',
60 'debug/debugger_win.cc',
61 'debug/leak_annotations.h',
62 'debug/leak_tracker.h',
63 'debug/stack_trace.cc',
64 'debug/stack_trace.h',
65 'debug/stack_trace_posix.cc',
66 'debug/stack_trace_win.cc',
67 'debug/trace_event_win.cc',
68 'debug/trace_event.cc',
69 'debug/trace_event.h',
[email protected]ef73044e2010-03-11 15:25:5470 'dir_reader_fallback.h',
71 'dir_reader_linux.h',
72 'dir_reader_posix.h',
[email protected]76b90d312010-08-03 03:00:5073 'environment.cc',
74 'environment.h',
[email protected]ef4fa4072009-12-04 22:46:5075 'file_path.cc',
76 'file_path.h',
77 'file_util.cc',
78 'file_util.h',
[email protected]a84ab952010-02-23 11:34:5479 'file_util_deprecated.h',
[email protected]1d01d412010-08-20 00:36:0180 'file_util_linux.cc',
[email protected]ef4fa4072009-12-04 22:46:5081 'file_util_mac.mm',
82 'file_util_posix.cc',
83 'file_util_win.cc',
[email protected]b90c93ff2010-08-20 22:42:5084 'file_util_proxy.cc',
85 'file_util_proxy.h',
[email protected]ef4fa4072009-12-04 22:46:5086 'file_version_info.h',
[email protected]bcff05a2010-04-14 01:46:4387 'file_version_info_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5088 'file_version_info_mac.mm',
[email protected]bcff05a2010-04-14 01:46:4389 'file_version_info_win.cc',
90 'file_version_info_win.h',
[email protected]ef4fa4072009-12-04 22:46:5091 'fix_wp64.h',
92 'float_util.h',
93 'foundation_utils_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5094 'global_descriptors_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:3995 'global_descriptors_posix.h',
[email protected]a918f872010-06-01 14:30:5196 'gtest_prod_util.h',
[email protected]ef4fa4072009-12-04 22:46:5097 'hash_tables.h',
[email protected]ef4fa4072009-12-04 22:46:5098 'id_map.h',
[email protected]252cad62010-08-18 18:33:5799 'json/json_reader.cc',
100 'json/json_reader.h',
101 'json/json_writer.cc',
102 'json/json_writer.h',
103 'json/string_escape.cc',
104 'json/string_escape.h',
[email protected]ef4fa4072009-12-04 22:46:50105 'lazy_instance.cc',
106 'lazy_instance.h',
[email protected]ef4fa4072009-12-04 22:46:50107 'linked_list.h',
108 'linked_ptr.h',
109 'lock.cc',
110 'lock.h',
111 'lock_impl.h',
112 'lock_impl_posix.cc',
113 'lock_impl_win.cc',
114 'logging.cc',
[email protected]ef4fa4072009-12-04 22:46:50115 'logging.h',
[email protected]9bc8cff2010-04-03 01:05:39116 'logging_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50117 'mac_util.h',
118 'mac_util.mm',
[email protected]c040fee2010-12-23 00:43:36119 'mac/cocoa_protocols.h',
[email protected]c2818d42010-10-18 02:47:39120 'mac/scoped_aedesc.h',
[email protected]ac0f8be2010-11-12 12:03:54121 'mac/scoped_cftyperef.h',
[email protected]c2818d42010-10-18 02:47:39122 'mac/scoped_nsautorelease_pool.h',
123 'mac/scoped_nsautorelease_pool.mm',
[email protected]c0028792010-01-12 00:39:15124 'mach_ipc_mac.h',
125 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50126 'memory_debug.cc',
127 'memory_debug.h',
128 'message_loop.cc',
129 'message_loop.h',
[email protected]d4799a32010-09-28 22:54:58130 'message_loop_proxy.cc',
[email protected]2cbac9e2010-04-29 03:31:34131 'message_loop_proxy.h',
[email protected]656475d2010-05-06 18:34:24132 'message_loop_proxy_impl.cc',
133 'message_loop_proxy_impl.h',
[email protected]d4799a32010-09-28 22:54:58134 'message_pump.cc',
[email protected]ef4fa4072009-12-04 22:46:50135 'message_pump.h',
136 'message_pump_default.cc',
137 'message_pump_default.h',
138 'message_pump_win.cc',
139 'message_pump_win.h',
[email protected]835d7c82010-10-14 04:38:38140 'metrics/histogram.cc',
141 'metrics/histogram.h',
[email protected]9ec74462010-10-28 16:48:05142 'metrics/nacl_histogram.cc',
[email protected]176ab802010-11-18 02:15:12143 'metrics/nacl_histogram.h',
[email protected]835d7c82010-10-14 04:38:38144 'metrics/stats_counters.cc',
145 'metrics/stats_counters.h',
146 'metrics/stats_table.cc',
147 'metrics/stats_table.h',
[email protected]ef4fa4072009-12-04 22:46:50148 'mime_util.h',
[email protected]1c657852010-04-22 23:28:05149 'mime_util_xdg.cc',
[email protected]ef4fa4072009-12-04 22:46:50150 'native_library.h',
151 'native_library_linux.cc',
152 'native_library_mac.mm',
153 'native_library_win.cc',
154 'non_thread_safe.cc',
155 'non_thread_safe.h',
156 'nullable_string16.h',
157 'object_watcher.cc',
158 'object_watcher.h',
159 'observer_list.h',
160 'observer_list_threadsafe.h',
161 'path_service.cc',
162 'path_service.h',
163 'pickle.cc',
164 'pickle.h',
165 'platform_file.h',
[email protected]ef4fa4072009-12-04 22:46:50166 'platform_file_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:39167 'platform_file_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50168 'platform_thread.h',
169 'platform_thread_mac.mm',
170 'platform_thread_posix.cc',
171 'platform_thread_win.cc',
172 'port.h',
[email protected]ef4fa4072009-12-04 22:46:50173 'process.h',
174 'process_linux.cc',
175 'process_posix.cc',
[email protected]b6128aa2010-04-29 17:44:42176 'process_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50177 'process_util.h',
178 'process_util_linux.cc',
179 'process_util_mac.mm',
180 'process_util_posix.cc',
181 'process_util_win.cc',
182 'process_win.cc',
183 'rand_util.cc',
184 'rand_util.h',
185 'rand_util_posix.cc',
186 'rand_util_win.cc',
187 'raw_scoped_refptr_mismatch_checker.h',
188 'ref_counted.cc',
189 'ref_counted.h',
[email protected]3071754432010-07-28 00:09:54190 'ref_counted_memory.cc',
[email protected]ef4fa4072009-12-04 22:46:50191 'ref_counted_memory.h',
[email protected]ef4fa4072009-12-04 22:46:50192 'resource_util.cc',
193 'resource_util.h',
194 'safe_strerror_posix.cc',
195 'safe_strerror_posix.h',
[email protected]21ae1f92010-07-30 23:05:15196 'scoped_callback_factory.h',
[email protected]ef4fa4072009-12-04 22:46:50197 'scoped_handle.h',
[email protected]709a847e2010-11-10 01:16:11198 'scoped_native_library.cc',
199 'scoped_native_library.h',
[email protected]ef4fa4072009-12-04 22:46:50200 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04201 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50202 'scoped_ptr.h',
203 'scoped_temp_dir.cc',
204 'scoped_temp_dir.h',
[email protected]ef4fa4072009-12-04 22:46:50205 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50206 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40207 'sha1_portable.cc',
208 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50209 'shared_memory.h',
210 'shared_memory_posix.cc',
211 'shared_memory_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50212 'singleton.h',
213 'spin_wait.h',
214 'stack_container.h',
[email protected]ef4fa4072009-12-04 22:46:50215 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44216 'string_number_conversions.cc',
217 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50218 'string_piece.cc',
219 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25220 'string_split.cc',
221 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50222 'string_tokenizer.h',
223 'string_util.cc',
224 'string_util.h',
225 'string_util_win.h',
[email protected]176ab802010-11-18 02:15:12226 'stringize_macros.h',
[email protected]e6811ed52010-08-17 03:45:37227 'stringprintf.cc',
228 'stringprintf.h',
[email protected]ef4fa4072009-12-04 22:46:50229 'sys_info.h',
230 'sys_info_chromeos.cc',
231 'sys_info_freebsd.cc',
232 'sys_info_linux.cc',
233 'sys_info_mac.cc',
234 'sys_info_openbsd.cc',
235 'sys_info_posix.cc',
236 'sys_info_win.cc',
237 'sys_string_conversions.h',
238 'sys_string_conversions_linux.cc',
239 'sys_string_conversions_mac.mm',
240 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54241 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50242 'task.h',
[email protected]6fd0ca52010-08-26 06:09:38243 'task_queue.cc',
244 'task_queue.h',
[email protected]951269b2010-06-15 19:39:24245 'template_util.h',
[email protected]ac9ba8fe2010-12-30 18:08:36246 'threading/simple_thread.cc',
247 'threading/simple_thread.h',
248 'threading/watchdog.cc',
249 'threading/watchdog.h',
250 'threading/worker_pool.h',
251 'threading/worker_pool_posix.cc',
252 'threading/worker_pool_posix.h',
253 'threading/worker_pool_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50254 'thread.cc',
255 'thread.h',
[email protected]d9ddc962010-08-24 04:29:56256 'thread_checker.cc',
257 'thread_checker.h',
[email protected]ef4fa4072009-12-04 22:46:50258 'thread_collision_warner.cc',
259 'thread_collision_warner.h',
260 'thread_local.h',
261 'thread_local_posix.cc',
262 'thread_local_storage.h',
263 'thread_local_storage_posix.cc',
264 'thread_local_storage_win.cc',
265 'thread_local_win.cc',
[email protected]45446a52010-11-04 17:41:00266 'thread_restrictions.h',
267 'thread_restrictions.cc',
[email protected]ef4fa4072009-12-04 22:46:50268 'time.cc',
269 'time.h',
270 'time_win.cc',
271 'timer.cc',
272 'timer.h',
[email protected]ef4fa4072009-12-04 22:46:50273 'tracked.cc',
274 'tracked.h',
275 'tracked_objects.cc',
276 'tracked_objects.h',
277 'tuple.h',
278 'utf_offset_string_conversions.cc',
279 'utf_offset_string_conversions.h',
280 'utf_string_conversion_utils.cc',
281 'utf_string_conversion_utils.h',
282 'utf_string_conversions.cc',
283 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50284 'values.cc',
285 'values.h',
[email protected]6c751e72010-11-23 10:11:10286 'values_util.cc',
287 'values_util.h',
[email protected]6dc910c2010-11-10 17:02:19288 'version.cc',
289 'version.h',
[email protected]99b7c57f2010-09-29 19:26:36290 'vlog.cc',
291 'vlog.h',
[email protected]ef4fa4072009-12-04 22:46:50292 'waitable_event.h',
293 'waitable_event_posix.cc',
294 'waitable_event_watcher.h',
295 'waitable_event_watcher_posix.cc',
296 'waitable_event_watcher_win.cc',
297 'waitable_event_win.cc',
[email protected]3a3d47472010-07-15 21:03:54298 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50299 'weak_ptr.h',
[email protected]337ca072010-11-16 15:28:45300 'win/i18n.cc',
301 'win/i18n.h',
[email protected]2d6503982010-10-17 04:41:54302 'win/pe_image.cc',
[email protected]ba50d1922010-11-06 15:39:40303 'win/event_trace_consumer.h',
304 'win/event_trace_controller.cc',
305 'win/event_trace_controller.h',
306 'win/event_trace_provider.cc',
307 'win/event_trace_provider.h',
[email protected]2d6503982010-10-17 04:41:54308 'win/pe_image.h',
309 'win/registry.cc',
310 'win/registry.h',
[email protected]ce0e72462010-10-16 03:46:05311 'win/scoped_bstr.cc',
312 'win/scoped_bstr.h',
313 'win/scoped_comptr.h',
314 'win/scoped_gdi_object.h',
315 'win/scoped_handle.h',
316 'win/scoped_hdc.h',
317 'win/scoped_hglobal.h',
318 'win/scoped_variant.cc',
319 'win/scoped_variant.h',
[email protected]935aa542010-10-15 01:59:15320 'win/windows_version.cc',
321 'win/windows_version.h',
[email protected]ef4fa4072009-12-04 22:46:50322 'win_util.cc',
323 'win_util.h',
[email protected]6b0349ef2010-10-16 04:56:06324 'nix/xdg_util.h',
325 'nix/xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50326 ],
327 'include_dirs': [
328 '..',
329 ],
330 # These warnings are needed for the files in third_party\dmg_fp.
331 'msvs_disabled_warnings': [
332 4244, 4554, 4018, 4102,
333 ],
334 'mac_framework_dirs': [
335 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
336 ],
337 'conditions': [
[email protected]93f21e42010-04-01 00:35:15338 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50339 'sources/': [
[email protected]6b0349ef2010-10-16 04:56:06340 ['exclude', '^nix/'],
[email protected]ef4fa4072009-12-04 22:46:50341 ],
342 'sources!': [
343 'atomicops_internals_x86_gcc.cc',
[email protected]ef4fa4072009-12-04 22:46:50344 'message_pump_glib.cc',
[email protected]71ad9c6f2010-10-22 16:17:47345 'message_pump_glib_x.cc',
[email protected]ef4fa4072009-12-04 22:46:50346 ],
[email protected]bcff05a2010-04-14 01:46:43347 }],
[email protected]ef4fa4072009-12-04 22:46:50348 [ 'OS != "linux"', {
349 'sources!': [
350 # Not automatically excluded by the *linux.cc rules.
[email protected]0ea54822010-07-01 20:14:50351 'gtk_util.cc',
352 'gtk_util.h',
[email protected]1c657852010-04-22 23:28:05353 'linux_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50354 ],
355 },
356 ],
[email protected]824ff722010-08-13 15:24:53357 [ 'OS != "mac"', {
358 'sources!': [
359 'scoped_aedesc.h'
360 ],
361 }],
[email protected]ef4fa4072009-12-04 22:46:50362 # For now, just test the *BSD platforms enough to exclude them.
363 # Subsequent changes will include them further.
364 [ 'OS != "freebsd"', {
365 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
366 },
367 ],
368 [ 'OS != "openbsd"', {
369 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
370 },
371 ],
[email protected]ce0e72462010-10-16 03:46:05372 ['OS != "win"', {
373 'sources/': [ ['exclude', '^win/'] ],
374 },
375 ],
[email protected]ef4fa4072009-12-04 22:46:50376 [ 'OS == "win"', {
[email protected]935aa542010-10-15 01:59:15377 'include_dirs': [
378 '<(DEPTH)/third_party/wtl/include',
379 ],
380 'sources!': [
381 'event_recorder_stubs.cc',
382 'file_descriptor_shuffle.cc',
383 'message_pump_libevent.cc',
384 # Not using sha1_win.cc because it may have caused a
385 # regression to page cycler moz.
386 'sha1_win.cc',
387 'string16.cc',
[email protected]58580352010-10-26 04:07:50388 'debug/trace_event.cc',
[email protected]935aa542010-10-15 01:59:15389 ],
[email protected]ef4fa4072009-12-04 22:46:50390 },],
391 ],
392 }],
393 ],
394 },
395 'targets': [
396 {
397 'target_name': 'base',
398 'type': '<(library)',
399 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
400 'variables': {
401 'base_target': 1,
402 },
403 'dependencies': [
404 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37405 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50406 ],
407 # TODO(gregoryd): direct_dependent_settings should be shared with the
408 # 64-bit target, but it doesn't work due to a bug in gyp
409 'direct_dependent_settings': {
410 'include_dirs': [
411 '..',
412 ],
413 },
[email protected]ef4fa4072009-12-04 22:46:50414 'conditions': [
[email protected]325cca02010-12-01 20:22:49415 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50416 'conditions': [
[email protected]325cca02010-12-01 20:22:49417 [ 'chromeos==1', {
418 'sources/': [ ['include', '_chromeos\\.cc$'] ]
419 },
420 ],
[email protected]3e0a8b82010-07-02 01:12:18421 [ 'linux_use_tcmalloc==0', {
422 'defines': [
423 'NO_TCMALLOC',
424 ],
425 'direct_dependent_settings': {
426 'defines': [
427 'NO_TCMALLOC',
428 ],
429 },
430 },
431 ],
[email protected]70372d42010-10-22 13:12:34432 [ 'use_openssl==1', {
433 'dependencies': [
[email protected]32e1dee2010-12-09 18:36:24434 '../third_party/openssl/openssl.gyp:openssl',
[email protected]70372d42010-10-22 13:12:34435 ],
436 }, { # use_openssl==0
437 'dependencies': [
438 '../build/linux/system.gyp:nss',
439 ],
440 }
441 ],
[email protected]ef4fa4072009-12-04 22:46:50442 ],
443 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37444 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50445 '../build/util/build_util.gyp:lastchange',
446 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47447 '../build/linux/system.gyp:x11',
[email protected]2d48004e2010-02-03 02:11:40448 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26449 ],
[email protected]325cca02010-12-01 20:22:49450 'defines': [
451 'USE_SYMBOLIZE',
452 ],
453 'cflags': [
454 '-Wno-write-strings',
455 ],
[email protected]ef4fa4072009-12-04 22:46:50456 'export_dependent_settings': [
457 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47458 '../build/linux/system.gyp:x11',
[email protected]ef4fa4072009-12-04 22:46:50459 ],
[email protected]325cca02010-12-01 20:22:49460 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
461 'sources/': [
462 ['exclude', '/xdg_user_dirs/'],
463 ['exclude', '_nss\.cc$'],
464 ],
465 }],
[email protected]1d53ce12010-06-11 05:41:00466 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37467 'link_settings': {
468 'libraries': [
469 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00470 ],
471 },
472 },
473 ],
[email protected]72d31962010-06-11 22:45:37474 [ 'OS == "linux"', {
475 'link_settings': {
476 'libraries': [
477 # We need rt for clock_gettime().
478 '-lrt',
479 # For 'native_library_linux.cc'
480 '-ldl',
481 ],
482 },
483 }],
[email protected]1d53ce12010-06-11 05:41:00484 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37485 'link_settings': {
486 'libraries': [
487 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
488 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
489 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
490 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
491 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
492 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
493 ],
494 },
[email protected]325cca02010-12-01 20:22:49495 }, { # OS != "mac"
496 'sources!': [
497 'crypto/cssm_init.cc',
498 'crypto/cssm_init.h',
499 ],
500 }],
[email protected]3dd6f5e2010-06-01 20:28:03501 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22502 'dependencies': [
503 '../third_party/nss/nss.gyp:nss',
504 ],
[email protected]3dd6f5e2010-06-01 20:28:03505 },],
506 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50507 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]325cca02010-12-01 20:22:49508 'sources!': [
509 'third_party/purify/pure_api.c',
510 'base_drag_source.cc',
511 'base_drop_target.cc',
512 'cpu.cc',
513 'crypto/capi_util.h',
514 'crypto/capi_util.cc',
515 'debug_on_start.cc',
516 'event_recorder.cc',
517 'file_version_info.cc',
[email protected]325cca02010-12-01 20:22:49518 'object_watcher.cc',
519 'pe_image.cc',
520 'registry.cc',
521 'resource_util.cc',
522 'win_util.cc',
523 ],
[email protected]abd4aba2010-01-27 19:36:22524 },],
[email protected]325cca02010-12-01 20:22:49525 [ 'use_openssl==1', {
526 # TODO(joth): Use a glob to match exclude patterns once the
527 # OpenSSL file set is complete.
528 'sources!': [
529 'crypto/encryptor_nss.cc',
530 'crypto/rsa_private_key_nss.cc',
531 'crypto/signature_creator_nss.cc',
532 'crypto/signature_verifier_nss.cc',
533 'crypto/symmetric_key_nss.cc',
534 'hmac_nss.cc',
535 'nss_util.cc',
536 'nss_util.h',
537 # Note that sha2.cc depends on the NSS files bundled into
538 # chromium; it does not have the _nss postfix as it is required
539 # on platforms besides linux and *bsd.
540 'sha2.cc',
541 'third_party/nss/blapi.h',
542 'third_party/nss/blapit.h',
543 'third_party/nss/sha256.h',
544 'third_party/nss/sha512.cc',
545 ],
546 }, {
547 'sources!': [
548 'crypto/encryptor_openssl.cc',
549 'crypto/rsa_private_key_openssl.cc',
550 'crypto/signature_creator_openssl.cc',
551 'crypto/signature_verifier_openssl.cc',
552 'crypto/symmetric_key_openssl.cc',
553 'hmac_openssl.cc',
554 'openssl_util.cc',
555 'openssl_util.h',
556 'sha2_openssl.cc',
557 ],
558 },],
559 ],
560 'sources': [
561 'crypto/capi_util.cc',
562 'crypto/capi_util.h',
563 'crypto/cssm_init.cc',
564 'crypto/cssm_init.h',
565 'crypto/encryptor.h',
566 'crypto/encryptor_mac.cc',
567 'crypto/encryptor_nss.cc',
568 'crypto/encryptor_openssl.cc',
569 'crypto/encryptor_win.cc',
570 'crypto/rsa_private_key.h',
571 'crypto/rsa_private_key.cc',
572 'crypto/rsa_private_key_mac.cc',
573 'crypto/rsa_private_key_nss.cc',
574 'crypto/rsa_private_key_openssl.cc',
575 'crypto/rsa_private_key_win.cc',
576 'crypto/signature_creator.h',
577 'crypto/signature_creator_mac.cc',
578 'crypto/signature_creator_nss.cc',
579 'crypto/signature_creator_openssl.cc',
580 'crypto/signature_creator_win.cc',
581 'crypto/signature_verifier.h',
582 'crypto/signature_verifier_mac.cc',
583 'crypto/signature_verifier_nss.cc',
584 'crypto/signature_verifier_openssl.cc',
585 'crypto/signature_verifier_win.cc',
586 'crypto/symmetric_key.h',
587 'crypto/symmetric_key_mac.cc',
588 'crypto/symmetric_key_nss.cc',
589 'crypto/symmetric_key_openssl.cc',
590 'crypto/symmetric_key_win.cc',
591 'third_party/nspr/prcpucfg.h',
592 'third_party/nspr/prcpucfg_win.h',
593 'third_party/nspr/prtypes.h',
594 'third_party/nss/blapi.h',
595 'third_party/nss/blapit.h',
596 'third_party/nss/sha256.h',
597 'third_party/nss/sha512.cc',
598 'third_party/purify/pure.h',
599 'third_party/purify/pure_api.c',
600 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
601 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
602 'auto_reset.h',
603 'base64.cc',
604 'base64.h',
[email protected]325cca02010-12-01 20:22:49605 'event_recorder.cc',
606 'event_recorder.h',
607 'event_recorder_stubs.cc',
608 'file_descriptor_shuffle.cc',
609 'file_descriptor_shuffle.h',
610 'hmac.h',
611 'hmac_mac.cc',
612 'hmac_nss.cc',
613 'hmac_openssl.cc',
614 'hmac_win.cc',
[email protected]325cca02010-12-01 20:22:49615 'linux_util.cc',
616 'linux_util.h',
617 'md5.cc',
618 'md5.h',
619 'message_pump_glib.cc',
620 'message_pump_glib.h',
621 'message_pump_glib_x.cc',
622 'message_pump_glib_x.h',
623 'message_pump_glib_x_dispatch.h',
624 'message_pump_libevent.cc',
625 'message_pump_libevent.h',
626 'message_pump_mac.h',
627 'message_pump_mac.mm',
628 'metrics/field_trial.cc',
629 'metrics/field_trial.h',
[email protected]325cca02010-12-01 20:22:49630 'nss_util.cc',
631 'nss_util.h',
632 'openssl_util.cc',
633 'openssl_util.h',
[email protected]325cca02010-12-01 20:22:49634 'sha2.cc',
635 'sha2.h',
636 'sha2_openssl.cc',
637 'string16.cc',
638 'string16.h',
639 'sync_socket.h',
640 'sync_socket_win.cc',
641 'sync_socket_posix.cc',
642 'time_mac.cc',
643 'time_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50644 ],
[email protected]ef4fa4072009-12-04 22:46:50645 },
646 ],
647 'conditions': [
648 [ 'OS == "win"', {
649 'targets': [
650 {
651 'target_name': 'base_nacl_win64',
652 'type': '<(library)',
653 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
654 'variables': {
655 'base_target': 1,
656 },
[email protected]ee857512010-05-14 08:24:42657 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37658 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42659 ],
[email protected]ef4fa4072009-12-04 22:46:50660 # TODO(gregoryd): direct_dependent_settings should be shared with the
661 # 32-bit target, but it doesn't work due to a bug in gyp
662 'direct_dependent_settings': {
663 'include_dirs': [
664 '..',
665 ],
666 },
667 'defines': [
668 '<@(nacl_win64_defines)',
669 ],
670 'sources': [
671 'i18n/icu_util_nacl_win64.cc',
672 ],
673 'configurations': {
[email protected]8782f7072009-12-22 22:57:37674 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50675 'msvs_target_platform': 'x64',
676 },
677 },
678 },
679 ],
680 }],
[email protected]93f21e42010-04-01 00:35:15681 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26682 'targets': [
683 {
684 'target_name': 'symbolize',
685 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36686 'variables': {
687 'chromium_code': 0,
688 },
[email protected]93f21e42010-04-01 00:35:15689 'conditions': [
690 [ 'OS == "solaris"', {
691 'include_dirs': [
692 '/usr/gnu/include',
693 '/usr/gnu/include/libelf',
694 ],
695 },],
696 ],
[email protected]48c27f72010-01-26 06:26:26697 'cflags': [
698 '-Wno-sign-compare',
699 ],
[email protected]225c8f52010-02-05 22:23:20700 'cflags!': [
701 '-Wextra',
702 ],
[email protected]48c27f72010-01-26 06:26:26703 'sources': [
704 'third_party/symbolize/symbolize.cc',
705 'third_party/symbolize/demangle.cc',
706 ],
707 },
[email protected]2d48004e2010-02-03 02:11:40708 {
709 'target_name': 'xdg_mime',
710 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36711 'variables': {
712 'chromium_code': 0,
713 },
[email protected]225c8f52010-02-05 22:23:20714 'cflags!': [
715 '-Wextra',
716 ],
[email protected]2d48004e2010-02-03 02:11:40717 'sources': [
718 'third_party/xdg_mime/xdgmime.c',
719 'third_party/xdg_mime/xdgmime.h',
720 'third_party/xdg_mime/xdgmimealias.c',
721 'third_party/xdg_mime/xdgmimealias.h',
722 'third_party/xdg_mime/xdgmimecache.c',
723 'third_party/xdg_mime/xdgmimecache.h',
724 'third_party/xdg_mime/xdgmimeglob.c',
725 'third_party/xdg_mime/xdgmimeglob.h',
726 'third_party/xdg_mime/xdgmimeicon.c',
727 'third_party/xdg_mime/xdgmimeicon.h',
728 'third_party/xdg_mime/xdgmimeint.c',
729 'third_party/xdg_mime/xdgmimeint.h',
730 'third_party/xdg_mime/xdgmimemagic.c',
731 'third_party/xdg_mime/xdgmimemagic.h',
732 'third_party/xdg_mime/xdgmimeparent.c',
733 'third_party/xdg_mime/xdgmimeparent.h',
734 ],
735 },
[email protected]48c27f72010-01-26 06:26:26736 ],
737 }],
[email protected]ef4fa4072009-12-04 22:46:50738 ],
739}