blob: 4147e682bc8b743860e8d854d158760a861b095d [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 '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',
[email protected]ef4fa4072009-12-04 22:46:5047 'cpu.cc',
48 'cpu.h',
[email protected]10f33b1b2011-01-01 19:55:2249 'debug/debug_on_start_win.cc',
50 'debug/debug_on_start_win.h',
[email protected]58580352010-10-26 04:07:5051 'debug/debugger.cc',
52 'debug/debugger.h',
53 'debug/debugger_posix.cc',
54 'debug/debugger_win.cc',
55 'debug/leak_annotations.h',
56 'debug/leak_tracker.h',
57 'debug/stack_trace.cc',
58 'debug/stack_trace.h',
59 'debug/stack_trace_posix.cc',
60 'debug/stack_trace_win.cc',
61 'debug/trace_event_win.cc',
62 'debug/trace_event.cc',
63 'debug/trace_event.h',
[email protected]ef73044e2010-03-11 15:25:5464 'dir_reader_fallback.h',
65 'dir_reader_linux.h',
66 'dir_reader_posix.h',
[email protected]76b90d312010-08-03 03:00:5067 'environment.cc',
68 'environment.h',
[email protected]ef4fa4072009-12-04 22:46:5069 'file_path.cc',
70 'file_path.h',
71 'file_util.cc',
72 'file_util.h',
[email protected]a84ab952010-02-23 11:34:5473 'file_util_deprecated.h',
[email protected]1d01d412010-08-20 00:36:0174 'file_util_linux.cc',
[email protected]ef4fa4072009-12-04 22:46:5075 'file_util_mac.mm',
76 'file_util_posix.cc',
77 'file_util_win.cc',
[email protected]b90c93ff2010-08-20 22:42:5078 'file_util_proxy.cc',
79 'file_util_proxy.h',
[email protected]ef4fa4072009-12-04 22:46:5080 'file_version_info.h',
[email protected]bcff05a2010-04-14 01:46:4381 'file_version_info_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5082 'file_version_info_mac.mm',
[email protected]bcff05a2010-04-14 01:46:4383 'file_version_info_win.cc',
84 'file_version_info_win.h',
[email protected]ef4fa4072009-12-04 22:46:5085 'fix_wp64.h',
86 'float_util.h',
87 'foundation_utils_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5088 'global_descriptors_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:3989 'global_descriptors_posix.h',
[email protected]a918f872010-06-01 14:30:5190 'gtest_prod_util.h',
[email protected]ef4fa4072009-12-04 22:46:5091 'hash_tables.h',
[email protected]ef4fa4072009-12-04 22:46:5092 'id_map.h',
[email protected]252cad62010-08-18 18:33:5793 'json/json_reader.cc',
94 'json/json_reader.h',
95 'json/json_writer.cc',
96 'json/json_writer.h',
97 'json/string_escape.cc',
98 'json/string_escape.h',
[email protected]ef4fa4072009-12-04 22:46:5099 'lazy_instance.cc',
100 'lazy_instance.h',
[email protected]ef4fa4072009-12-04 22:46:50101 'linked_list.h',
102 'linked_ptr.h',
[email protected]ef4fa4072009-12-04 22:46:50103 'lock.h',
[email protected]ef4fa4072009-12-04 22:46:50104 'logging.cc',
[email protected]ef4fa4072009-12-04 22:46:50105 'logging.h',
[email protected]9bc8cff2010-04-03 01:05:39106 'logging_win.cc',
[email protected]c040fee2010-12-23 00:43:36107 'mac/cocoa_protocols.h',
[email protected]0378bf42011-01-01 18:20:14108 'mac/mac_util.h',
109 'mac/mac_util.mm',
[email protected]d0282962011-01-01 16:08:52110 'mac/os_crash_dumps.cc',
111 'mac/os_crash_dumps.h',
[email protected]c2818d42010-10-18 02:47:39112 'mac/scoped_aedesc.h',
[email protected]ac0f8be2010-11-12 12:03:54113 'mac/scoped_cftyperef.h',
[email protected]c2818d42010-10-18 02:47:39114 'mac/scoped_nsautorelease_pool.h',
115 'mac/scoped_nsautorelease_pool.mm',
[email protected]c0028792010-01-12 00:39:15116 'mach_ipc_mac.h',
117 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50118 'memory_debug.cc',
119 'memory_debug.h',
120 'message_loop.cc',
121 'message_loop.h',
[email protected]d4799a32010-09-28 22:54:58122 'message_loop_proxy.cc',
[email protected]2cbac9e2010-04-29 03:31:34123 'message_loop_proxy.h',
[email protected]656475d2010-05-06 18:34:24124 'message_loop_proxy_impl.cc',
125 'message_loop_proxy_impl.h',
[email protected]d4799a32010-09-28 22:54:58126 'message_pump.cc',
[email protected]ef4fa4072009-12-04 22:46:50127 'message_pump.h',
128 'message_pump_default.cc',
129 'message_pump_default.h',
130 'message_pump_win.cc',
131 'message_pump_win.h',
[email protected]835d7c82010-10-14 04:38:38132 'metrics/histogram.cc',
133 'metrics/histogram.h',
[email protected]9ec74462010-10-28 16:48:05134 'metrics/nacl_histogram.cc',
[email protected]176ab802010-11-18 02:15:12135 'metrics/nacl_histogram.h',
[email protected]835d7c82010-10-14 04:38:38136 'metrics/stats_counters.cc',
137 'metrics/stats_counters.h',
138 'metrics/stats_table.cc',
139 'metrics/stats_table.h',
[email protected]ef4fa4072009-12-04 22:46:50140 'mime_util.h',
[email protected]1c657852010-04-22 23:28:05141 'mime_util_xdg.cc',
[email protected]ef4fa4072009-12-04 22:46:50142 'native_library.h',
143 'native_library_linux.cc',
144 'native_library_mac.mm',
145 'native_library_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50146 'observer_list.h',
147 'observer_list_threadsafe.h',
148 'path_service.cc',
149 'path_service.h',
150 'pickle.cc',
151 'pickle.h',
152 'platform_file.h',
[email protected]ef4fa4072009-12-04 22:46:50153 'platform_file_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:39154 'platform_file_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50155 'port.h',
[email protected]ef4fa4072009-12-04 22:46:50156 'process.h',
157 'process_linux.cc',
158 'process_posix.cc',
[email protected]b6128aa2010-04-29 17:44:42159 'process_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50160 'process_util.h',
161 'process_util_linux.cc',
162 'process_util_mac.mm',
163 'process_util_posix.cc',
164 'process_util_win.cc',
165 'process_win.cc',
166 'rand_util.cc',
167 'rand_util.h',
168 'rand_util_posix.cc',
169 'rand_util_win.cc',
170 'raw_scoped_refptr_mismatch_checker.h',
171 'ref_counted.cc',
172 'ref_counted.h',
[email protected]3071754432010-07-28 00:09:54173 'ref_counted_memory.cc',
[email protected]ef4fa4072009-12-04 22:46:50174 'ref_counted_memory.h',
[email protected]ef4fa4072009-12-04 22:46:50175 'resource_util.cc',
176 'resource_util.h',
177 'safe_strerror_posix.cc',
178 'safe_strerror_posix.h',
[email protected]21ae1f92010-07-30 23:05:15179 'scoped_callback_factory.h',
[email protected]ef4fa4072009-12-04 22:46:50180 'scoped_handle.h',
[email protected]709a847e2010-11-10 01:16:11181 'scoped_native_library.cc',
182 'scoped_native_library.h',
[email protected]ef4fa4072009-12-04 22:46:50183 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04184 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50185 'scoped_ptr.h',
186 'scoped_temp_dir.cc',
187 'scoped_temp_dir.h',
[email protected]ef4fa4072009-12-04 22:46:50188 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50189 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40190 'sha1_portable.cc',
191 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50192 'shared_memory.h',
193 'shared_memory_posix.cc',
194 'shared_memory_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50195 'singleton.h',
196 'spin_wait.h',
197 'stack_container.h',
[email protected]ef4fa4072009-12-04 22:46:50198 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44199 'string_number_conversions.cc',
200 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50201 'string_piece.cc',
202 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25203 'string_split.cc',
204 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50205 'string_tokenizer.h',
206 'string_util.cc',
207 'string_util.h',
208 'string_util_win.h',
[email protected]176ab802010-11-18 02:15:12209 'stringize_macros.h',
[email protected]e6811ed52010-08-17 03:45:37210 'stringprintf.cc',
211 'stringprintf.h',
[email protected]bc581a682011-01-01 23:16:20212 'synchronization/condition_variable.h',
213 'synchronization/condition_variable_posix.cc',
214 'synchronization/condition_variable_win.cc',
215 'synchronization/lock.cc',
216 'synchronization/lock.h',
217 'synchronization/lock_impl.h',
218 'synchronization/lock_impl_posix.cc',
219 'synchronization/lock_impl_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50220 'sys_info.h',
221 'sys_info_chromeos.cc',
222 'sys_info_freebsd.cc',
223 'sys_info_linux.cc',
224 'sys_info_mac.cc',
225 'sys_info_openbsd.cc',
226 'sys_info_posix.cc',
227 'sys_info_win.cc',
228 'sys_string_conversions.h',
229 'sys_string_conversions_linux.cc',
230 'sys_string_conversions_mac.mm',
231 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54232 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50233 'task.h',
[email protected]6fd0ca52010-08-26 06:09:38234 'task_queue.cc',
235 'task_queue.h',
[email protected]951269b2010-06-15 19:39:24236 'template_util.h',
[email protected]c9177502011-01-01 04:48:49237 'threading/non_thread_safe.cc',
238 'threading/non_thread_safe.h',
[email protected]ce072a72010-12-31 20:02:16239 'threading/platform_thread.h',
240 'threading/platform_thread_mac.mm',
241 'threading/platform_thread_posix.cc',
242 'threading/platform_thread_win.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36243 'threading/simple_thread.cc',
244 'threading/simple_thread.h',
[email protected]34b99632011-01-01 01:01:06245 'threading/thread.cc',
246 'threading/thread.h',
[email protected]ce072a72010-12-31 20:02:16247 'threading/thread_checker.cc',
248 'threading/thread_checker.h',
[email protected]34b99632011-01-01 01:01:06249 'threading/thread_collision_warner.cc',
250 'threading/thread_collision_warner.h',
[email protected]1357c322010-12-30 22:18:56251 'threading/thread_local.h',
252 'threading/thread_local_posix.cc',
253 'threading/thread_local_storage.h',
254 'threading/thread_local_storage_posix.cc',
255 'threading/thread_local_storage_win.cc',
256 'threading/thread_local_win.cc',
[email protected]34b99632011-01-01 01:01:06257 'threading/thread_restrictions.h',
258 'threading/thread_restrictions.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36259 'threading/watchdog.cc',
260 'threading/watchdog.h',
261 'threading/worker_pool.h',
262 'threading/worker_pool_posix.cc',
263 'threading/worker_pool_posix.h',
264 'threading/worker_pool_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50265 'time.cc',
266 'time.h',
267 'time_win.cc',
268 'timer.cc',
269 'timer.h',
[email protected]ef4fa4072009-12-04 22:46:50270 'tracked.cc',
271 'tracked.h',
272 'tracked_objects.cc',
273 'tracked_objects.h',
274 'tuple.h',
275 '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]6c751e72010-11-23 10:11:10283 'values_util.cc',
284 'values_util.h',
[email protected]6dc910c2010-11-10 17:02:19285 'version.cc',
286 'version.h',
[email protected]99b7c57f2010-09-29 19:26:36287 'vlog.cc',
288 'vlog.h',
[email protected]ef4fa4072009-12-04 22:46:50289 'waitable_event.h',
290 'waitable_event_posix.cc',
291 'waitable_event_watcher.h',
292 'waitable_event_watcher_posix.cc',
293 'waitable_event_watcher_win.cc',
294 'waitable_event_win.cc',
[email protected]3a3d47472010-07-15 21:03:54295 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50296 'weak_ptr.h',
[email protected]337ca072010-11-16 15:28:45297 'win/i18n.cc',
298 'win/i18n.h',
[email protected]a8d1ebbe2011-01-01 18:26:16299 'win/object_watcher.cc',
300 'win/object_watcher.h',
[email protected]2d6503982010-10-17 04:41:54301 'win/pe_image.cc',
[email protected]ba50d1922010-11-06 15:39:40302 'win/event_trace_consumer.h',
303 'win/event_trace_controller.cc',
304 'win/event_trace_controller.h',
305 'win/event_trace_provider.cc',
306 'win/event_trace_provider.h',
[email protected]2d6503982010-10-17 04:41:54307 'win/pe_image.h',
308 'win/registry.cc',
309 'win/registry.h',
[email protected]ce0e72462010-10-16 03:46:05310 'win/scoped_bstr.cc',
311 'win/scoped_bstr.h',
312 'win/scoped_comptr.h',
313 'win/scoped_gdi_object.h',
314 'win/scoped_handle.h',
315 'win/scoped_hdc.h',
316 'win/scoped_hglobal.h',
317 'win/scoped_variant.cc',
318 'win/scoped_variant.h',
[email protected]a8e20582010-12-31 17:18:50319 'win/win_util.cc',
320 'win/win_util.h',
[email protected]935aa542010-10-15 01:59:15321 'win/windows_version.cc',
322 'win/windows_version.h',
[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 ],
354 },
355 ],
[email protected]824ff722010-08-13 15:24:53356 [ 'OS != "mac"', {
357 'sources!': [
358 'scoped_aedesc.h'
359 ],
360 }],
[email protected]ef4fa4072009-12-04 22:46:50361 # For now, just test the *BSD platforms enough to exclude them.
362 # Subsequent changes will include them further.
363 [ 'OS != "freebsd"', {
364 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
365 },
366 ],
367 [ 'OS != "openbsd"', {
368 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
369 },
370 ],
[email protected]ce0e72462010-10-16 03:46:05371 ['OS != "win"', {
372 'sources/': [ ['exclude', '^win/'] ],
373 },
374 ],
[email protected]ef4fa4072009-12-04 22:46:50375 [ 'OS == "win"', {
[email protected]935aa542010-10-15 01:59:15376 'include_dirs': [
377 '<(DEPTH)/third_party/wtl/include',
378 ],
379 'sources!': [
380 'event_recorder_stubs.cc',
381 'file_descriptor_shuffle.cc',
382 'message_pump_libevent.cc',
383 # Not using sha1_win.cc because it may have caused a
384 # regression to page cycler moz.
385 'sha1_win.cc',
386 'string16.cc',
[email protected]58580352010-10-26 04:07:50387 'debug/trace_event.cc',
[email protected]935aa542010-10-15 01:59:15388 ],
[email protected]ef4fa4072009-12-04 22:46:50389 },],
390 ],
391 }],
392 ],
393 },
394 'targets': [
395 {
396 'target_name': 'base',
397 'type': '<(library)',
398 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
399 'variables': {
400 'base_target': 1,
401 },
402 'dependencies': [
403 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37404 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50405 ],
406 # TODO(gregoryd): direct_dependent_settings should be shared with the
407 # 64-bit target, but it doesn't work due to a bug in gyp
408 'direct_dependent_settings': {
409 'include_dirs': [
410 '..',
411 ],
412 },
[email protected]ef4fa4072009-12-04 22:46:50413 'conditions': [
[email protected]325cca02010-12-01 20:22:49414 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50415 'conditions': [
[email protected]325cca02010-12-01 20:22:49416 [ 'chromeos==1', {
417 'sources/': [ ['include', '_chromeos\\.cc$'] ]
418 },
419 ],
[email protected]3e0a8b82010-07-02 01:12:18420 [ 'linux_use_tcmalloc==0', {
421 'defines': [
422 'NO_TCMALLOC',
423 ],
424 'direct_dependent_settings': {
425 'defines': [
426 'NO_TCMALLOC',
427 ],
428 },
429 },
430 ],
[email protected]70372d42010-10-22 13:12:34431 [ 'use_openssl==1', {
432 'dependencies': [
[email protected]32e1dee2010-12-09 18:36:24433 '../third_party/openssl/openssl.gyp:openssl',
[email protected]70372d42010-10-22 13:12:34434 ],
435 }, { # use_openssl==0
436 'dependencies': [
437 '../build/linux/system.gyp:nss',
438 ],
439 }
440 ],
[email protected]ef4fa4072009-12-04 22:46:50441 ],
442 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37443 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50444 '../build/util/build_util.gyp:lastchange',
445 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47446 '../build/linux/system.gyp:x11',
[email protected]2d48004e2010-02-03 02:11:40447 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26448 ],
[email protected]325cca02010-12-01 20:22:49449 'defines': [
450 'USE_SYMBOLIZE',
451 ],
452 'cflags': [
453 '-Wno-write-strings',
454 ],
[email protected]ef4fa4072009-12-04 22:46:50455 'export_dependent_settings': [
456 '../build/linux/system.gyp:gtk',
[email protected]71ad9c6f2010-10-22 16:17:47457 '../build/linux/system.gyp:x11',
[email protected]ef4fa4072009-12-04 22:46:50458 ],
[email protected]325cca02010-12-01 20:22:49459 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
460 'sources/': [
461 ['exclude', '/xdg_user_dirs/'],
462 ['exclude', '_nss\.cc$'],
463 ],
464 }],
[email protected]1d53ce12010-06-11 05:41:00465 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37466 'link_settings': {
467 'libraries': [
468 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00469 ],
470 },
471 },
472 ],
[email protected]72d31962010-06-11 22:45:37473 [ 'OS == "linux"', {
474 'link_settings': {
475 'libraries': [
476 # We need rt for clock_gettime().
477 '-lrt',
478 # For 'native_library_linux.cc'
479 '-ldl',
480 ],
481 },
482 }],
[email protected]1d53ce12010-06-11 05:41:00483 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37484 'link_settings': {
485 'libraries': [
486 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
487 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
488 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
489 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
490 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
491 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
492 ],
493 },
[email protected]325cca02010-12-01 20:22:49494 }, { # OS != "mac"
495 'sources!': [
496 'crypto/cssm_init.cc',
497 'crypto/cssm_init.h',
498 ],
499 }],
[email protected]3dd6f5e2010-06-01 20:28:03500 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22501 'dependencies': [
502 '../third_party/nss/nss.gyp:nss',
503 ],
[email protected]3dd6f5e2010-06-01 20:28:03504 },],
505 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50506 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]325cca02010-12-01 20:22:49507 'sources!': [
508 'third_party/purify/pure_api.c',
509 'base_drag_source.cc',
510 'base_drop_target.cc',
511 'cpu.cc',
512 'crypto/capi_util.h',
513 'crypto/capi_util.cc',
[email protected]325cca02010-12-01 20:22:49514 'event_recorder.cc',
515 'file_version_info.cc',
[email protected]325cca02010-12-01 20:22:49516 'pe_image.cc',
517 'registry.cc',
518 'resource_util.cc',
519 'win_util.cc',
520 ],
[email protected]abd4aba2010-01-27 19:36:22521 },],
[email protected]325cca02010-12-01 20:22:49522 [ 'use_openssl==1', {
523 # TODO(joth): Use a glob to match exclude patterns once the
524 # OpenSSL file set is complete.
525 'sources!': [
526 'crypto/encryptor_nss.cc',
527 'crypto/rsa_private_key_nss.cc',
528 'crypto/signature_creator_nss.cc',
529 'crypto/signature_verifier_nss.cc',
530 'crypto/symmetric_key_nss.cc',
531 'hmac_nss.cc',
532 'nss_util.cc',
533 'nss_util.h',
534 # Note that sha2.cc depends on the NSS files bundled into
535 # chromium; it does not have the _nss postfix as it is required
536 # on platforms besides linux and *bsd.
537 'sha2.cc',
538 'third_party/nss/blapi.h',
539 'third_party/nss/blapit.h',
540 'third_party/nss/sha256.h',
541 'third_party/nss/sha512.cc',
542 ],
543 }, {
544 'sources!': [
545 'crypto/encryptor_openssl.cc',
546 'crypto/rsa_private_key_openssl.cc',
547 'crypto/signature_creator_openssl.cc',
548 'crypto/signature_verifier_openssl.cc',
549 'crypto/symmetric_key_openssl.cc',
550 'hmac_openssl.cc',
551 'openssl_util.cc',
552 'openssl_util.h',
553 'sha2_openssl.cc',
554 ],
555 },],
556 ],
557 'sources': [
558 'crypto/capi_util.cc',
559 'crypto/capi_util.h',
560 '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',
567 '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}