blob: 3fe12aefb2a7fb2fb4405f48719e903b8a7c0125 [file] [log] [blame]
[email protected]ef4fa4072009-12-04 22:46:501# Copyright (c) 2009 The Chromium Authors. All rights reserved.
2# 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': [
11 # This part is shared between the targets defined below. Only files and
12 # settings relevant for building the Win64 target should be added here.
13 # All the rest should be added to the 'base' target below.
14 ['base_target==1', {
15 'sources': [
16 '../build/build_config.h',
17 'third_party/dmg_fp/dmg_fp.h',
18 'third_party/dmg_fp/dtoa.cc',
19 'third_party/dmg_fp/g_fmt.cc',
20 'third_party/icu/icu_utf.cc',
21 'third_party/icu/icu_utf.h',
22 'third_party/nspr/prtime.cc',
23 'third_party/nspr/prtime.h',
24 'atomicops_internals_x86_gcc.cc',
25 'at_exit.cc',
26 'at_exit.h',
27 'atomic_ref_count.h',
28 'atomic_sequence_num.h',
29 'atomicops.h',
30 'atomicops_internals_x86_msvc.h',
31 'base_paths.cc',
32 'base_paths.h',
33 'base_paths_mac.h',
34 'base_paths_mac.mm',
35 'base_paths_posix.cc',
36 'base_paths_win.cc',
37 'base_paths_win.h',
38 'base_switches.cc',
39 'base_switches.h',
40 'basictypes.h',
41 'bits.h',
42 'bzip2_error_handler.cc',
43 'cancellation_flag.h',
44 'cancellation_flag.cc',
45 'chrome_application_mac.h',
46 'chrome_application_mac.mm',
47 'cocoa_protocols_mac.h',
48 'command_line.cc',
49 'command_line.h',
50 'compiler_specific.h',
51 'condition_variable.h',
52 'condition_variable_posix.cc',
53 'condition_variable_win.cc',
54 'cpu.cc',
55 'cpu.h',
56 'debug_on_start.cc',
57 'debug_on_start.h',
58 'debug_util.cc',
59 'debug_util.h',
60 'debug_util_mac.cc',
61 'debug_util_posix.cc',
62 'debug_util_win.cc',
63 'event_trace_consumer_win.h',
64 'event_trace_controller_win.cc',
65 'event_trace_controller_win.h',
66 'event_trace_provider_win.cc',
67 'event_trace_provider_win.h',
68 'file_path.cc',
69 'file_path.h',
70 'file_util.cc',
71 'file_util.h',
72 'file_util_linux.cc',
73 'file_util_mac.mm',
74 'file_util_posix.cc',
75 'file_util_win.cc',
76 'file_version_info.cc',
77 'file_version_info.h',
78 'file_version_info_mac.mm',
79 'fix_wp64.h',
80 'float_util.h',
81 'foundation_utils_mac.h',
82 'global_descriptors_posix.h',
83 'global_descriptors_posix.cc',
84 'hash_tables.h',
85 'histogram.cc',
86 'histogram.h',
87 'iat_patch.cc',
88 'iat_patch.h',
89 'id_map.h',
90 'lazy_instance.cc',
91 'lazy_instance.h',
92 'leak_annotations.h',
93 'leak_tracker.h',
94 'linked_list.h',
95 'linked_ptr.h',
96 'lock.cc',
97 'lock.h',
98 'lock_impl.h',
99 'lock_impl_posix.cc',
100 'lock_impl_win.cc',
101 'logging.cc',
102 'logging_win.cc',
103 'logging.h',
104 'mac_util.h',
105 'mac_util.mm',
[email protected]c0028792010-01-12 00:39:15106 'mach_ipc_mac.h',
107 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50108 'memory_debug.cc',
109 'memory_debug.h',
110 'message_loop.cc',
111 'message_loop.h',
112 'message_pump.h',
113 'message_pump_default.cc',
114 'message_pump_default.h',
115 'message_pump_win.cc',
116 'message_pump_win.h',
117 'mime_util.h',
118 'mime_util_linux.cc',
119 'native_library.h',
120 'native_library_linux.cc',
121 'native_library_mac.mm',
122 'native_library_win.cc',
123 'non_thread_safe.cc',
124 'non_thread_safe.h',
125 'nullable_string16.h',
126 'object_watcher.cc',
127 'object_watcher.h',
128 'observer_list.h',
129 'observer_list_threadsafe.h',
130 'path_service.cc',
131 'path_service.h',
132 'pickle.cc',
133 'pickle.h',
134 'platform_file.h',
135 'platform_file_win.cc',
136 'platform_file_posix.cc',
137 'platform_thread.h',
138 'platform_thread_mac.mm',
139 'platform_thread_posix.cc',
140 'platform_thread_win.cc',
141 'port.h',
142 'profiler.cc',
143 'profiler.h',
144 'process.h',
145 'process_linux.cc',
146 'process_posix.cc',
147 'process_util.h',
148 'process_util_linux.cc',
149 'process_util_mac.mm',
150 'process_util_posix.cc',
151 'process_util_win.cc',
152 'process_win.cc',
153 'rand_util.cc',
154 'rand_util.h',
155 'rand_util_posix.cc',
156 'rand_util_win.cc',
157 'raw_scoped_refptr_mismatch_checker.h',
158 'ref_counted.cc',
159 'ref_counted.h',
160 'ref_counted_memory.h',
161 'registry.cc',
162 'registry.h',
163 'resource_util.cc',
164 'resource_util.h',
165 'safe_strerror_posix.cc',
166 'safe_strerror_posix.h',
167 'scoped_bstr_win.cc',
168 'scoped_bstr_win.h',
169 'scoped_cftyperef.h',
170 'scoped_comptr_win.h',
171 'scoped_handle.h',
172 'scoped_handle_gtk.h',
173 'scoped_handle_win.h',
174 'scoped_nsautorelease_pool.h',
175 'scoped_nsautorelease_pool.mm',
176 'scoped_nsdisable_screen_updates.h',
177 'scoped_nsobject.h',
178 'scoped_ptr.h',
179 'scoped_temp_dir.cc',
180 'scoped_temp_dir.h',
181 'scoped_variant_win.cc',
182 'scoped_variant_win.h',
183 'scoped_vector.h',
184 'sha1.cc',
185 'sha1.h',
186 'shared_memory.h',
187 'shared_memory_posix.cc',
188 'shared_memory_win.cc',
189 'simple_thread.cc',
190 'simple_thread.h',
191 'singleton.h',
192 'spin_wait.h',
193 'stack_container.h',
194 'stats_counters.h',
195 'stats_table.cc',
196 'stats_table.h',
197 'stl_util-inl.h',
198 'string_piece.cc',
199 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25200 'string_split.cc',
201 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50202 'string_tokenizer.h',
203 'string_util.cc',
204 'string_util.h',
205 'string_util_win.h',
206 'sys_info.h',
207 'sys_info_chromeos.cc',
208 'sys_info_freebsd.cc',
209 'sys_info_linux.cc',
210 'sys_info_mac.cc',
211 'sys_info_openbsd.cc',
212 'sys_info_posix.cc',
213 'sys_info_win.cc',
214 'sys_string_conversions.h',
215 'sys_string_conversions_linux.cc',
216 'sys_string_conversions_mac.mm',
217 'sys_string_conversions_win.cc',
218 'task.h',
219 'thread.cc',
220 'thread.h',
221 'thread_collision_warner.cc',
222 'thread_collision_warner.h',
223 'thread_local.h',
224 'thread_local_posix.cc',
225 'thread_local_storage.h',
226 'thread_local_storage_posix.cc',
227 'thread_local_storage_win.cc',
228 'thread_local_win.cc',
229 'time.cc',
230 'time.h',
231 'time_win.cc',
232 'timer.cc',
233 'timer.h',
234 'trace_event.cc',
235 'trace_event.h',
236 'tracked.cc',
237 'tracked.h',
238 'tracked_objects.cc',
239 'tracked_objects.h',
240 'tuple.h',
241 'utf_offset_string_conversions.cc',
242 'utf_offset_string_conversions.h',
243 'utf_string_conversion_utils.cc',
244 'utf_string_conversion_utils.h',
245 'utf_string_conversions.cc',
246 'utf_string_conversions.h',
247 'unix_domain_socket_posix.cc',
248 'waitable_event.h',
249 'waitable_event_posix.cc',
250 'waitable_event_watcher.h',
251 'waitable_event_watcher_posix.cc',
252 'waitable_event_watcher_win.cc',
253 'waitable_event_win.cc',
254 'watchdog.cc',
255 'watchdog.h',
256 'weak_ptr.h',
257 'win_util.cc',
258 'win_util.h',
259 'windows_message_list.h',
260 'wmi_util.cc',
261 'wmi_util.h',
262 'worker_pool.h',
263 'worker_pool_linux.cc',
264 'worker_pool_linux.h',
265 'worker_pool_mac.h',
266 'worker_pool_mac.mm',
267 'worker_pool_win.cc',
268 ],
269 'include_dirs': [
270 '..',
271 ],
272 # These warnings are needed for the files in third_party\dmg_fp.
273 'msvs_disabled_warnings': [
274 4244, 4554, 4018, 4102,
275 ],
276 'mac_framework_dirs': [
277 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
278 ],
279 'conditions': [
[email protected]8d578822010-01-25 23:54:54280 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd"', {
[email protected]ef4fa4072009-12-04 22:46:50281 'sources/': [
282 ['exclude', '/xdg_mime/'],
283 ['exclude', '/xdg_user_dirs/'],
284 ['exclude', '_nss\.cc$'],
285 ],
286 'sources!': [
287 'atomicops_internals_x86_gcc.cc',
288 'base_paths_posix.cc',
289 'directory_watcher_inotify.cc',
290 'linux_util.cc',
291 'message_pump_glib.cc',
[email protected]1b1a264a2010-01-14 22:36:35292 'nss_util.cc',
293 'nss_util.h',
[email protected]ef4fa4072009-12-04 22:46:50294 ],
295 },],
296 [ 'OS != "linux"', {
297 'sources!': [
298 # Not automatically excluded by the *linux.cc rules.
299 'setproctitle_linux.c',
300 'setproctitle_linux.h',
301 ],
302 },
303 ],
304 # For now, just test the *BSD platforms enough to exclude them.
305 # Subsequent changes will include them further.
306 [ 'OS != "freebsd"', {
307 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
308 },
309 ],
310 [ 'OS != "openbsd"', {
311 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
312 },
313 ],
314 [ 'GENERATOR == "quentin"', {
315 # Quentin builds don't have a recent enough glibc to include the
316 # inotify headers
317 'sources!': [
318 'directory_watcher_inotify.cc',
319 ],
320 'sources': [
321 'directory_watcher_stub.cc',
322 ],
323 },
324 ],
325 [ 'OS != "mac"', {
326 'sources!': [
327 'crypto/cssm_init.cc',
328 'crypto/cssm_init.h',
329 ],
330 }
331 ],
332 [ 'OS == "win"', {
333 'include_dirs': [
334 '../chrome/third_party/wtl/include',
335 ],
336 'sources!': [
[email protected]ef4fa4072009-12-04 22:46:50337 'event_recorder_stubs.cc',
338 'file_descriptor_shuffle.cc',
339 'message_pump_libevent.cc',
340 'string16.cc',
341 ],
342 },],
343 ],
344 }],
345 ],
346 },
347 'targets': [
348 {
349 'target_name': 'base',
350 'type': '<(library)',
351 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
352 'variables': {
353 'base_target': 1,
354 },
355 'dependencies': [
356 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
357 ],
358 # TODO(gregoryd): direct_dependent_settings should be shared with the
359 # 64-bit target, but it doesn't work due to a bug in gyp
360 'direct_dependent_settings': {
361 'include_dirs': [
362 '..',
363 ],
364 },
365 # Conditions that are not relevant for Win64 build
366 'conditions': [
367 [ 'OS == "linux" or OS == "freebsd"', {
368 'conditions': [
[email protected]fdc5bed2010-01-09 01:16:57369 [ 'chromeos==1', {
[email protected]ef4fa4072009-12-04 22:46:50370 'sources/': [ ['include', '_chromeos\\.cc$'] ]
371 },
372 ],
373 [ 'linux_use_tcmalloc==1', {
374 'defines': [
375 'LINUX_USE_TCMALLOC',
376 ],
377 'direct_dependent_settings': {
378 'defines': [
379 'LINUX_USE_TCMALLOC',
380 ],
381 },
382 },
383 ],
[email protected]e43eddf12009-12-29 00:32:52384 [ 'OS == "linux"', {
385 'link_settings': {
386 'libraries': [
387 # We need rt for clock_gettime().
388 '-lrt',
389 ],
390 },
391 }],
[email protected]ef4fa4072009-12-04 22:46:50392 ],
393 'dependencies': [
394 '../build/util/build_util.gyp:lastchange',
395 '../build/linux/system.gyp:gtk',
396 '../build/linux/system.gyp:nss',
[email protected]48c27f72010-01-26 06:26:26397 'symbolize'
398 ],
399 'defines': [
400 'USE_SYMBOLIZE',
[email protected]ef4fa4072009-12-04 22:46:50401 ],
402 'cflags': [
403 '-Wno-write-strings',
404 ],
[email protected]ef4fa4072009-12-04 22:46:50405 'export_dependent_settings': [
406 '../build/linux/system.gyp:gtk',
407 ],
408 },],
409 [ 'OS == "freebsd"', {
410 'sources!': [
411 'directory_watcher_inotify.cc',
412 ],
413 'sources': [
414 'directory_watcher_stub.cc',
415 ],
[email protected]e43eddf12009-12-29 00:32:52416 'link_settings': {
417 'libraries': [
418 '-L/usr/local/lib -lexecinfo',
419 ],
420 },
[email protected]ef4fa4072009-12-04 22:46:50421 },
422 ],
423 [ 'OS == "mac"', {
424 'link_settings': {
425 'libraries': [
426 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
427 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
428 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
429 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
430 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
431 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
432 ],
433 },
434 },],
435 [ 'OS != "win"', {
436 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
437 'sources!': [
438 'third_party/purify/pure_api.c',
439 'base_drag_source.cc',
440 'base_drop_target.cc',
441 'cpu.cc',
442 'debug_on_start.cc',
443 'event_recorder.cc',
444 'file_version_info.cc',
445 'iat_patch.cc',
446 'image_util.cc',
447 'object_watcher.cc',
448 'pe_image.cc',
449 'registry.cc',
450 'resource_util.cc',
451 'win_util.cc',
452 'wmi_util.cc',
453 ],
454 },
455 ],
456 ],
457 'sources': [
458 'crypto/cssm_init.cc',
459 'crypto/cssm_init.h',
460 'crypto/rsa_private_key.h',
461 'crypto/rsa_private_key.cc',
462 'crypto/rsa_private_key_mac.cc',
463 'crypto/rsa_private_key_nss.cc',
464 'crypto/rsa_private_key_win.cc',
465 'crypto/signature_creator.h',
466 'crypto/signature_creator_mac.cc',
467 'crypto/signature_creator_nss.cc',
468 'crypto/signature_creator_win.cc',
469 'crypto/signature_verifier.h',
470 'crypto/signature_verifier_mac.cc',
471 'crypto/signature_verifier_nss.cc',
472 'crypto/signature_verifier_win.cc',
473 'third_party/nspr/prcpucfg.h',
474 'third_party/nspr/prcpucfg_win.h',
475 'third_party/nspr/prtypes.h',
476 'third_party/nss/blapi.h',
477 'third_party/nss/blapit.h',
478 'third_party/nss/sha256.h',
479 'third_party/nss/sha512.cc',
480 'third_party/purify/pure.h',
481 'third_party/purify/pure_api.c',
482 'third_party/xdg_mime/xdgmime.c',
483 'third_party/xdg_mime/xdgmime.h',
484 'third_party/xdg_mime/xdgmimealias.c',
485 'third_party/xdg_mime/xdgmimealias.h',
486 'third_party/xdg_mime/xdgmimecache.c',
487 'third_party/xdg_mime/xdgmimecache.h',
488 'third_party/xdg_mime/xdgmimeglob.c',
489 'third_party/xdg_mime/xdgmimeglob.h',
490 'third_party/xdg_mime/xdgmimeicon.c',
491 'third_party/xdg_mime/xdgmimeicon.h',
492 'third_party/xdg_mime/xdgmimeint.c',
493 'third_party/xdg_mime/xdgmimeint.h',
494 'third_party/xdg_mime/xdgmimemagic.c',
495 'third_party/xdg_mime/xdgmimemagic.h',
496 'third_party/xdg_mime/xdgmimeparent.c',
497 'third_party/xdg_mime/xdgmimeparent.h',
498 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
499 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
500 'auto_reset.h',
501 'base64.cc',
502 'base64.h',
503 'base_drag_source.cc',
504 'base_drag_source.h',
505 'base_drop_target.cc',
506 'base_drop_target.h',
507 'data_pack.cc',
508 'directory_watcher.h',
509 'directory_watcher_inotify.cc',
510 'directory_watcher_mac.cc',
511 'directory_watcher_win.cc',
512 'dynamic_annotations.h',
513 'dynamic_annotations.cc',
514 'event_recorder.cc',
515 'event_recorder.h',
516 'event_recorder_stubs.cc',
517 'field_trial.cc',
518 'field_trial.h',
519 'file_descriptor_shuffle.cc',
520 'file_descriptor_shuffle.h',
521 'gfx/point.cc',
522 'gfx/point.h',
523 'gfx/rect.cc',
524 'gfx/rect.h',
525 'gfx/size.cc',
526 'gfx/size.h',
527 'hmac.h',
528 'hmac_mac.cc',
529 'hmac_nss.cc',
530 'hmac_win.cc',
531 'image_util.cc',
532 'image_util.h',
533 'json/json_reader.cc',
534 'json/json_reader.h',
535 'json/json_writer.cc',
536 'json/json_writer.h',
537 'json/string_escape.cc',
538 'json/string_escape.h',
539 'keyboard_code_conversion_gtk.cc',
540 'keyboard_code_conversion_gtk.h',
541 'keyboard_codes.h',
542 'keyboard_codes_win.h',
543 'keyboard_codes_posix.h',
544 'linux_util.cc',
545 'linux_util.h',
546 'md5.cc',
547 'md5.h',
548 'message_pump_glib.cc',
549 'message_pump_glib.h',
550 'message_pump_libevent.cc',
551 'message_pump_libevent.h',
552 'message_pump_mac.h',
553 'message_pump_mac.mm',
554 'nsimage_cache_mac.h',
555 'nsimage_cache_mac.mm',
[email protected]1b1a264a2010-01-14 22:36:35556 'nss_util.cc',
557 'nss_util.h',
[email protected]ef4fa4072009-12-04 22:46:50558 'pe_image.cc',
559 'pe_image.h',
560 'setproctitle_linux.c',
561 'setproctitle_linux.h',
562 'sha2.cc',
563 'sha2.h',
564 'string16.cc',
565 'string16.h',
566 'sync_socket.h',
567 'sync_socket_win.cc',
568 'sync_socket_posix.cc',
569 'time_mac.cc',
570 'time_posix.cc',
571 'values.cc',
572 'values.h',
573 'version.cc',
574 'version.h',
575 ],
576 },
577 ],
578 'conditions': [
579 [ 'OS == "win"', {
580 'targets': [
581 {
582 'target_name': 'base_nacl_win64',
583 'type': '<(library)',
584 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
585 'variables': {
586 'base_target': 1,
587 },
588 # TODO(gregoryd): direct_dependent_settings should be shared with the
589 # 32-bit target, but it doesn't work due to a bug in gyp
590 'direct_dependent_settings': {
591 'include_dirs': [
592 '..',
593 ],
594 },
595 'defines': [
596 '<@(nacl_win64_defines)',
597 ],
598 'sources': [
599 'i18n/icu_util_nacl_win64.cc',
600 ],
601 'configurations': {
[email protected]8782f7072009-12-22 22:57:37602 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50603 'msvs_target_platform': 'x64',
604 },
605 },
606 },
607 ],
608 }],
[email protected]48c27f72010-01-26 06:26:26609 [ 'OS == "linux" or OS == "freebsd"', {
610 'targets': [
611 {
612 'target_name': 'symbolize',
613 'type': '<(library)',
614 'cflags': [
615 '-Wno-sign-compare',
616 ],
617 'sources': [
618 'third_party/symbolize/symbolize.cc',
619 'third_party/symbolize/demangle.cc',
620 ],
621 },
622 ],
623 }],
[email protected]ef4fa4072009-12-04 22:46:50624 ],
625}