blob: ee794fd56352a2ac3f17ea99fff3a6b56fa1bf20 [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',
[email protected]58580352010-10-26 04:07:5054 'debug/debugger.cc',
55 'debug/debugger.h',
56 'debug/debugger_posix.cc',
57 'debug/debugger_win.cc',
58 'debug/leak_annotations.h',
59 'debug/leak_tracker.h',
60 'debug/stack_trace.cc',
61 'debug/stack_trace.h',
62 'debug/stack_trace_posix.cc',
63 'debug/stack_trace_win.cc',
64 'debug/trace_event_win.cc',
65 'debug/trace_event.cc',
66 'debug/trace_event.h',
[email protected]ef73044e2010-03-11 15:25:5467 'dir_reader_fallback.h',
68 'dir_reader_linux.h',
69 'dir_reader_posix.h',
[email protected]76b90d312010-08-03 03:00:5070 'environment.cc',
71 'environment.h',
[email protected]ef4fa4072009-12-04 22:46:5072 'file_path.cc',
73 'file_path.h',
74 'file_util.cc',
75 'file_util.h',
[email protected]a84ab952010-02-23 11:34:5476 'file_util_deprecated.h',
[email protected]1d01d412010-08-20 00:36:0177 'file_util_linux.cc',
[email protected]ef4fa4072009-12-04 22:46:5078 'file_util_mac.mm',
79 'file_util_posix.cc',
80 'file_util_win.cc',
[email protected]b90c93ff2010-08-20 22:42:5081 'file_util_proxy.cc',
82 'file_util_proxy.h',
[email protected]ef4fa4072009-12-04 22:46:5083 'file_version_info.h',
[email protected]bcff05a2010-04-14 01:46:4384 'file_version_info_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5085 'file_version_info_mac.mm',
[email protected]bcff05a2010-04-14 01:46:4386 'file_version_info_win.cc',
87 'file_version_info_win.h',
[email protected]ef4fa4072009-12-04 22:46:5088 'fix_wp64.h',
89 'float_util.h',
90 'foundation_utils_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5091 'global_descriptors_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:3992 'global_descriptors_posix.h',
[email protected]a918f872010-06-01 14:30:5193 'gtest_prod_util.h',
[email protected]ef4fa4072009-12-04 22:46:5094 'hash_tables.h',
[email protected]ef4fa4072009-12-04 22:46:5095 'id_map.h',
[email protected]252cad62010-08-18 18:33:5796 'json/json_reader.cc',
97 'json/json_reader.h',
98 'json/json_writer.cc',
99 'json/json_writer.h',
100 'json/string_escape.cc',
101 'json/string_escape.h',
[email protected]ef4fa4072009-12-04 22:46:50102 'lazy_instance.cc',
103 'lazy_instance.h',
[email protected]ef4fa4072009-12-04 22:46:50104 'linked_list.h',
105 'linked_ptr.h',
106 'lock.cc',
107 'lock.h',
108 'lock_impl.h',
109 'lock_impl_posix.cc',
110 'lock_impl_win.cc',
111 'logging.cc',
[email protected]ef4fa4072009-12-04 22:46:50112 'logging.h',
[email protected]9bc8cff2010-04-03 01:05:39113 'logging_win.cc',
[email protected]c040fee2010-12-23 00:43:36114 'mac/cocoa_protocols.h',
[email protected]0378bf42011-01-01 18:20:14115 'mac/mac_util.h',
116 'mac/mac_util.mm',
[email protected]d0282962011-01-01 16:08:52117 'mac/os_crash_dumps.cc',
118 'mac/os_crash_dumps.h',
[email protected]c2818d42010-10-18 02:47:39119 'mac/scoped_aedesc.h',
[email protected]ac0f8be2010-11-12 12:03:54120 'mac/scoped_cftyperef.h',
[email protected]c2818d42010-10-18 02:47:39121 'mac/scoped_nsautorelease_pool.h',
122 'mac/scoped_nsautorelease_pool.mm',
[email protected]c0028792010-01-12 00:39:15123 'mach_ipc_mac.h',
124 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50125 'memory_debug.cc',
126 'memory_debug.h',
127 'message_loop.cc',
128 'message_loop.h',
[email protected]d4799a32010-09-28 22:54:58129 'message_loop_proxy.cc',
[email protected]2cbac9e2010-04-29 03:31:34130 'message_loop_proxy.h',
[email protected]656475d2010-05-06 18:34:24131 'message_loop_proxy_impl.cc',
132 'message_loop_proxy_impl.h',
[email protected]d4799a32010-09-28 22:54:58133 'message_pump.cc',
[email protected]ef4fa4072009-12-04 22:46:50134 'message_pump.h',
135 'message_pump_default.cc',
136 'message_pump_default.h',
137 'message_pump_win.cc',
138 'message_pump_win.h',
[email protected]835d7c82010-10-14 04:38:38139 'metrics/histogram.cc',
140 'metrics/histogram.h',
[email protected]9ec74462010-10-28 16:48:05141 'metrics/nacl_histogram.cc',
[email protected]176ab802010-11-18 02:15:12142 'metrics/nacl_histogram.h',
[email protected]835d7c82010-10-14 04:38:38143 'metrics/stats_counters.cc',
144 'metrics/stats_counters.h',
145 'metrics/stats_table.cc',
146 'metrics/stats_table.h',
[email protected]ef4fa4072009-12-04 22:46:50147 'mime_util.h',
[email protected]1c657852010-04-22 23:28:05148 'mime_util_xdg.cc',
[email protected]ef4fa4072009-12-04 22:46:50149 'native_library.h',
150 'native_library_linux.cc',
151 'native_library_mac.mm',
152 'native_library_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50153 'object_watcher.cc',
154 'object_watcher.h',
155 'observer_list.h',
156 'observer_list_threadsafe.h',
157 'path_service.cc',
158 'path_service.h',
159 'pickle.cc',
160 'pickle.h',
161 'platform_file.h',
[email protected]ef4fa4072009-12-04 22:46:50162 'platform_file_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:39163 'platform_file_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50164 'port.h',
[email protected]ef4fa4072009-12-04 22:46:50165 'process.h',
166 'process_linux.cc',
167 'process_posix.cc',
[email protected]b6128aa2010-04-29 17:44:42168 'process_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50169 'process_util.h',
170 'process_util_linux.cc',
171 'process_util_mac.mm',
172 'process_util_posix.cc',
173 'process_util_win.cc',
174 'process_win.cc',
175 'rand_util.cc',
176 'rand_util.h',
177 'rand_util_posix.cc',
178 'rand_util_win.cc',
179 'raw_scoped_refptr_mismatch_checker.h',
180 'ref_counted.cc',
181 'ref_counted.h',
[email protected]3071754432010-07-28 00:09:54182 'ref_counted_memory.cc',
[email protected]ef4fa4072009-12-04 22:46:50183 'ref_counted_memory.h',
[email protected]ef4fa4072009-12-04 22:46:50184 'resource_util.cc',
185 'resource_util.h',
186 'safe_strerror_posix.cc',
187 'safe_strerror_posix.h',
[email protected]21ae1f92010-07-30 23:05:15188 'scoped_callback_factory.h',
[email protected]ef4fa4072009-12-04 22:46:50189 'scoped_handle.h',
[email protected]709a847e2010-11-10 01:16:11190 'scoped_native_library.cc',
191 'scoped_native_library.h',
[email protected]ef4fa4072009-12-04 22:46:50192 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04193 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50194 'scoped_ptr.h',
195 'scoped_temp_dir.cc',
196 'scoped_temp_dir.h',
[email protected]ef4fa4072009-12-04 22:46:50197 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50198 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40199 'sha1_portable.cc',
200 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50201 'shared_memory.h',
202 'shared_memory_posix.cc',
203 'shared_memory_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50204 'singleton.h',
205 'spin_wait.h',
206 'stack_container.h',
[email protected]ef4fa4072009-12-04 22:46:50207 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44208 'string_number_conversions.cc',
209 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50210 'string_piece.cc',
211 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25212 'string_split.cc',
213 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50214 'string_tokenizer.h',
215 'string_util.cc',
216 'string_util.h',
217 'string_util_win.h',
[email protected]176ab802010-11-18 02:15:12218 'stringize_macros.h',
[email protected]e6811ed52010-08-17 03:45:37219 'stringprintf.cc',
220 'stringprintf.h',
[email protected]ef4fa4072009-12-04 22:46:50221 'sys_info.h',
222 'sys_info_chromeos.cc',
223 'sys_info_freebsd.cc',
224 'sys_info_linux.cc',
225 'sys_info_mac.cc',
226 'sys_info_openbsd.cc',
227 'sys_info_posix.cc',
228 'sys_info_win.cc',
229 'sys_string_conversions.h',
230 'sys_string_conversions_linux.cc',
231 'sys_string_conversions_mac.mm',
232 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54233 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50234 'task.h',
[email protected]6fd0ca52010-08-26 06:09:38235 'task_queue.cc',
236 'task_queue.h',
[email protected]951269b2010-06-15 19:39:24237 'template_util.h',
[email protected]c9177502011-01-01 04:48:49238 'threading/non_thread_safe.cc',
239 'threading/non_thread_safe.h',
[email protected]ce072a72010-12-31 20:02:16240 'threading/platform_thread.h',
241 'threading/platform_thread_mac.mm',
242 'threading/platform_thread_posix.cc',
243 'threading/platform_thread_win.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36244 'threading/simple_thread.cc',
245 'threading/simple_thread.h',
[email protected]34b99632011-01-01 01:01:06246 'threading/thread.cc',
247 'threading/thread.h',
[email protected]ce072a72010-12-31 20:02:16248 'threading/thread_checker.cc',
249 'threading/thread_checker.h',
[email protected]34b99632011-01-01 01:01:06250 'threading/thread_collision_warner.cc',
251 'threading/thread_collision_warner.h',
[email protected]1357c322010-12-30 22:18:56252 'threading/thread_local.h',
253 'threading/thread_local_posix.cc',
254 'threading/thread_local_storage.h',
255 'threading/thread_local_storage_posix.cc',
256 'threading/thread_local_storage_win.cc',
257 'threading/thread_local_win.cc',
[email protected]34b99632011-01-01 01:01:06258 'threading/thread_restrictions.h',
259 'threading/thread_restrictions.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36260 'threading/watchdog.cc',
261 'threading/watchdog.h',
262 'threading/worker_pool.h',
263 'threading/worker_pool_posix.cc',
264 'threading/worker_pool_posix.h',
265 'threading/worker_pool_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50266 'time.cc',
267 'time.h',
268 'time_win.cc',
269 'timer.cc',
270 'timer.h',
[email protected]ef4fa4072009-12-04 22:46:50271 'tracked.cc',
272 'tracked.h',
273 'tracked_objects.cc',
274 'tracked_objects.h',
275 'tuple.h',
276 'utf_offset_string_conversions.cc',
277 'utf_offset_string_conversions.h',
278 'utf_string_conversion_utils.cc',
279 'utf_string_conversion_utils.h',
280 'utf_string_conversions.cc',
281 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50282 'values.cc',
283 'values.h',
[email protected]6c751e72010-11-23 10:11:10284 'values_util.cc',
285 'values_util.h',
[email protected]6dc910c2010-11-10 17:02:19286 'version.cc',
287 'version.h',
[email protected]99b7c57f2010-09-29 19:26:36288 'vlog.cc',
289 'vlog.h',
[email protected]ef4fa4072009-12-04 22:46:50290 'waitable_event.h',
291 'waitable_event_posix.cc',
292 'waitable_event_watcher.h',
293 'waitable_event_watcher_posix.cc',
294 'waitable_event_watcher_win.cc',
295 'waitable_event_win.cc',
[email protected]3a3d47472010-07-15 21:03:54296 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50297 'weak_ptr.h',
[email protected]337ca072010-11-16 15:28:45298 'win/i18n.cc',
299 'win/i18n.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',
513 'debug_on_start.cc',
514 'event_recorder.cc',
515 'file_version_info.cc',
[email protected]325cca02010-12-01 20:22:49516 'object_watcher.cc',
517 'pe_image.cc',
518 'registry.cc',
519 'resource_util.cc',
520 'win_util.cc',
521 ],
[email protected]abd4aba2010-01-27 19:36:22522 },],
[email protected]325cca02010-12-01 20:22:49523 [ 'use_openssl==1', {
524 # TODO(joth): Use a glob to match exclude patterns once the
525 # OpenSSL file set is complete.
526 'sources!': [
527 'crypto/encryptor_nss.cc',
528 'crypto/rsa_private_key_nss.cc',
529 'crypto/signature_creator_nss.cc',
530 'crypto/signature_verifier_nss.cc',
531 'crypto/symmetric_key_nss.cc',
532 'hmac_nss.cc',
533 'nss_util.cc',
534 'nss_util.h',
535 # Note that sha2.cc depends on the NSS files bundled into
536 # chromium; it does not have the _nss postfix as it is required
537 # on platforms besides linux and *bsd.
538 'sha2.cc',
539 'third_party/nss/blapi.h',
540 'third_party/nss/blapit.h',
541 'third_party/nss/sha256.h',
542 'third_party/nss/sha512.cc',
543 ],
544 }, {
545 'sources!': [
546 'crypto/encryptor_openssl.cc',
547 'crypto/rsa_private_key_openssl.cc',
548 'crypto/signature_creator_openssl.cc',
549 'crypto/signature_verifier_openssl.cc',
550 'crypto/symmetric_key_openssl.cc',
551 'hmac_openssl.cc',
552 'openssl_util.cc',
553 'openssl_util.h',
554 'sha2_openssl.cc',
555 ],
556 },],
557 ],
558 'sources': [
559 'crypto/capi_util.cc',
560 'crypto/capi_util.h',
561 'crypto/cssm_init.cc',
562 'crypto/cssm_init.h',
563 'crypto/encryptor.h',
564 'crypto/encryptor_mac.cc',
565 'crypto/encryptor_nss.cc',
566 'crypto/encryptor_openssl.cc',
567 'crypto/encryptor_win.cc',
568 'crypto/rsa_private_key.h',
569 'crypto/rsa_private_key.cc',
570 'crypto/rsa_private_key_mac.cc',
571 'crypto/rsa_private_key_nss.cc',
572 'crypto/rsa_private_key_openssl.cc',
573 'crypto/rsa_private_key_win.cc',
574 'crypto/signature_creator.h',
575 'crypto/signature_creator_mac.cc',
576 'crypto/signature_creator_nss.cc',
577 'crypto/signature_creator_openssl.cc',
578 'crypto/signature_creator_win.cc',
579 'crypto/signature_verifier.h',
580 'crypto/signature_verifier_mac.cc',
581 'crypto/signature_verifier_nss.cc',
582 'crypto/signature_verifier_openssl.cc',
583 'crypto/signature_verifier_win.cc',
584 'crypto/symmetric_key.h',
585 'crypto/symmetric_key_mac.cc',
586 'crypto/symmetric_key_nss.cc',
587 'crypto/symmetric_key_openssl.cc',
588 'crypto/symmetric_key_win.cc',
589 'third_party/nspr/prcpucfg.h',
590 'third_party/nspr/prcpucfg_win.h',
591 'third_party/nspr/prtypes.h',
592 'third_party/nss/blapi.h',
593 'third_party/nss/blapit.h',
594 'third_party/nss/sha256.h',
595 'third_party/nss/sha512.cc',
596 'third_party/purify/pure.h',
597 'third_party/purify/pure_api.c',
598 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
599 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
600 'auto_reset.h',
601 'base64.cc',
602 'base64.h',
[email protected]325cca02010-12-01 20:22:49603 'event_recorder.cc',
604 'event_recorder.h',
605 'event_recorder_stubs.cc',
606 'file_descriptor_shuffle.cc',
607 'file_descriptor_shuffle.h',
608 'hmac.h',
609 'hmac_mac.cc',
610 'hmac_nss.cc',
611 'hmac_openssl.cc',
612 'hmac_win.cc',
[email protected]325cca02010-12-01 20:22:49613 'linux_util.cc',
614 'linux_util.h',
615 'md5.cc',
616 'md5.h',
617 'message_pump_glib.cc',
618 'message_pump_glib.h',
619 'message_pump_glib_x.cc',
620 'message_pump_glib_x.h',
621 'message_pump_glib_x_dispatch.h',
622 'message_pump_libevent.cc',
623 'message_pump_libevent.h',
624 'message_pump_mac.h',
625 'message_pump_mac.mm',
626 'metrics/field_trial.cc',
627 'metrics/field_trial.h',
[email protected]325cca02010-12-01 20:22:49628 'nss_util.cc',
629 'nss_util.h',
630 'openssl_util.cc',
631 'openssl_util.h',
[email protected]325cca02010-12-01 20:22:49632 'sha2.cc',
633 'sha2.h',
634 'sha2_openssl.cc',
635 'string16.cc',
636 'string16.h',
637 'sync_socket.h',
638 'sync_socket_win.cc',
639 'sync_socket_posix.cc',
640 'time_mac.cc',
641 'time_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50642 ],
[email protected]ef4fa4072009-12-04 22:46:50643 },
644 ],
645 'conditions': [
646 [ 'OS == "win"', {
647 'targets': [
648 {
649 'target_name': 'base_nacl_win64',
650 'type': '<(library)',
651 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
652 'variables': {
653 'base_target': 1,
654 },
[email protected]ee857512010-05-14 08:24:42655 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37656 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42657 ],
[email protected]ef4fa4072009-12-04 22:46:50658 # TODO(gregoryd): direct_dependent_settings should be shared with the
659 # 32-bit target, but it doesn't work due to a bug in gyp
660 'direct_dependent_settings': {
661 'include_dirs': [
662 '..',
663 ],
664 },
665 'defines': [
666 '<@(nacl_win64_defines)',
667 ],
668 'sources': [
669 'i18n/icu_util_nacl_win64.cc',
670 ],
671 'configurations': {
[email protected]8782f7072009-12-22 22:57:37672 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50673 'msvs_target_platform': 'x64',
674 },
675 },
676 },
677 ],
678 }],
[email protected]93f21e42010-04-01 00:35:15679 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26680 'targets': [
681 {
682 'target_name': 'symbolize',
683 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36684 'variables': {
685 'chromium_code': 0,
686 },
[email protected]93f21e42010-04-01 00:35:15687 'conditions': [
688 [ 'OS == "solaris"', {
689 'include_dirs': [
690 '/usr/gnu/include',
691 '/usr/gnu/include/libelf',
692 ],
693 },],
694 ],
[email protected]48c27f72010-01-26 06:26:26695 'cflags': [
696 '-Wno-sign-compare',
697 ],
[email protected]225c8f52010-02-05 22:23:20698 'cflags!': [
699 '-Wextra',
700 ],
[email protected]48c27f72010-01-26 06:26:26701 'sources': [
702 'third_party/symbolize/symbolize.cc',
703 'third_party/symbolize/demangle.cc',
704 ],
705 },
[email protected]2d48004e2010-02-03 02:11:40706 {
707 'target_name': 'xdg_mime',
708 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36709 'variables': {
710 'chromium_code': 0,
711 },
[email protected]225c8f52010-02-05 22:23:20712 'cflags!': [
713 '-Wextra',
714 ],
[email protected]2d48004e2010-02-03 02:11:40715 'sources': [
716 'third_party/xdg_mime/xdgmime.c',
717 'third_party/xdg_mime/xdgmime.h',
718 'third_party/xdg_mime/xdgmimealias.c',
719 'third_party/xdg_mime/xdgmimealias.h',
720 'third_party/xdg_mime/xdgmimecache.c',
721 'third_party/xdg_mime/xdgmimecache.h',
722 'third_party/xdg_mime/xdgmimeglob.c',
723 'third_party/xdg_mime/xdgmimeglob.h',
724 'third_party/xdg_mime/xdgmimeicon.c',
725 'third_party/xdg_mime/xdgmimeicon.h',
726 'third_party/xdg_mime/xdgmimeint.c',
727 'third_party/xdg_mime/xdgmimeint.h',
728 'third_party/xdg_mime/xdgmimemagic.c',
729 'third_party/xdg_mime/xdgmimemagic.h',
730 'third_party/xdg_mime/xdgmimeparent.c',
731 'third_party/xdg_mime/xdgmimeparent.h',
732 ],
733 },
[email protected]48c27f72010-01-26 06:26:26734 ],
735 }],
[email protected]ef4fa4072009-12-04 22:46:50736 ],
737}