blob: ecdc0a0b62653d9fc4d9b82c4dd6728200735144 [file] [log] [blame]
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +09001# 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',
thakis@chromium.org281e2102010-01-12 09:39:15 +0900106 'mach_ipc_mac.h',
107 'mach_ipc_mac.mm',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900108 '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',
200 'string_tokenizer.h',
201 'string_util.cc',
202 'string_util.h',
203 'string_util_win.h',
204 'sys_info.h',
205 'sys_info_chromeos.cc',
206 'sys_info_freebsd.cc',
207 'sys_info_linux.cc',
208 'sys_info_mac.cc',
209 'sys_info_openbsd.cc',
210 'sys_info_posix.cc',
211 'sys_info_win.cc',
212 'sys_string_conversions.h',
213 'sys_string_conversions_linux.cc',
214 'sys_string_conversions_mac.mm',
215 'sys_string_conversions_win.cc',
216 'task.h',
217 'thread.cc',
218 'thread.h',
219 'thread_collision_warner.cc',
220 'thread_collision_warner.h',
221 'thread_local.h',
222 'thread_local_posix.cc',
223 'thread_local_storage.h',
224 'thread_local_storage_posix.cc',
225 'thread_local_storage_win.cc',
226 'thread_local_win.cc',
227 'time.cc',
228 'time.h',
229 'time_win.cc',
230 'timer.cc',
231 'timer.h',
232 'trace_event.cc',
233 'trace_event.h',
234 'tracked.cc',
235 'tracked.h',
236 'tracked_objects.cc',
237 'tracked_objects.h',
238 'tuple.h',
239 'utf_offset_string_conversions.cc',
240 'utf_offset_string_conversions.h',
241 'utf_string_conversion_utils.cc',
242 'utf_string_conversion_utils.h',
243 'utf_string_conversions.cc',
244 'utf_string_conversions.h',
245 'unix_domain_socket_posix.cc',
246 'waitable_event.h',
247 'waitable_event_posix.cc',
248 'waitable_event_watcher.h',
249 'waitable_event_watcher_posix.cc',
250 'waitable_event_watcher_win.cc',
251 'waitable_event_win.cc',
252 'watchdog.cc',
253 'watchdog.h',
254 'weak_ptr.h',
255 'win_util.cc',
256 'win_util.h',
257 'windows_message_list.h',
258 'wmi_util.cc',
259 'wmi_util.h',
260 'worker_pool.h',
261 'worker_pool_linux.cc',
262 'worker_pool_linux.h',
263 'worker_pool_mac.h',
264 'worker_pool_mac.mm',
265 'worker_pool_win.cc',
266 ],
267 'include_dirs': [
268 '..',
269 ],
270 # These warnings are needed for the files in third_party\dmg_fp.
271 'msvs_disabled_warnings': [
272 4244, 4554, 4018, 4102,
273 ],
274 'mac_framework_dirs': [
275 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
276 ],
277 'conditions': [
278 [ 'OS != "linux" and OS != "freebsd"', {
279 'sources/': [
280 ['exclude', '/xdg_mime/'],
281 ['exclude', '/xdg_user_dirs/'],
282 ['exclude', '_nss\.cc$'],
283 ],
284 'sources!': [
285 'atomicops_internals_x86_gcc.cc',
286 'base_paths_posix.cc',
287 'directory_watcher_inotify.cc',
288 'linux_util.cc',
289 'message_pump_glib.cc',
mattm@chromium.org4bea5962010-01-15 07:36:35 +0900290 'nss_util.cc',
291 'nss_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900292 ],
293 },],
294 [ 'OS != "linux"', {
295 'sources!': [
296 # Not automatically excluded by the *linux.cc rules.
297 'setproctitle_linux.c',
298 'setproctitle_linux.h',
299 ],
300 },
301 ],
302 # For now, just test the *BSD platforms enough to exclude them.
303 # Subsequent changes will include them further.
304 [ 'OS != "freebsd"', {
305 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
306 },
307 ],
308 [ 'OS != "openbsd"', {
309 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
310 },
311 ],
312 [ 'GENERATOR == "quentin"', {
313 # Quentin builds don't have a recent enough glibc to include the
314 # inotify headers
315 'sources!': [
316 'directory_watcher_inotify.cc',
317 ],
318 'sources': [
319 'directory_watcher_stub.cc',
320 ],
321 },
322 ],
323 [ 'OS != "mac"', {
324 'sources!': [
325 'crypto/cssm_init.cc',
326 'crypto/cssm_init.h',
327 ],
328 }
329 ],
330 [ 'OS == "win"', {
331 'include_dirs': [
332 '../chrome/third_party/wtl/include',
333 ],
334 'sources!': [
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900335 'event_recorder_stubs.cc',
336 'file_descriptor_shuffle.cc',
337 'message_pump_libevent.cc',
338 'string16.cc',
339 ],
340 },],
341 ],
342 }],
343 ],
344 },
345 'targets': [
346 {
347 'target_name': 'base',
348 'type': '<(library)',
349 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
350 'variables': {
351 'base_target': 1,
352 },
353 'dependencies': [
354 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
355 ],
356 # TODO(gregoryd): direct_dependent_settings should be shared with the
357 # 64-bit target, but it doesn't work due to a bug in gyp
358 'direct_dependent_settings': {
359 'include_dirs': [
360 '..',
361 ],
362 },
363 # Conditions that are not relevant for Win64 build
364 'conditions': [
365 [ 'OS == "linux" or OS == "freebsd"', {
366 'conditions': [
oshima@chromium.orgf34010a2010-01-09 10:16:57 +0900367 [ 'chromeos==1', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900368 'sources/': [ ['include', '_chromeos\\.cc$'] ]
369 },
370 ],
371 [ 'linux_use_tcmalloc==1', {
372 'defines': [
373 'LINUX_USE_TCMALLOC',
374 ],
375 'direct_dependent_settings': {
376 'defines': [
377 'LINUX_USE_TCMALLOC',
378 ],
379 },
380 },
381 ],
evan@chromium.org875bb6e2009-12-29 09:32:52 +0900382 [ 'OS == "linux"', {
383 'link_settings': {
384 'libraries': [
385 # We need rt for clock_gettime().
386 '-lrt',
387 ],
388 },
389 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900390 ],
391 'dependencies': [
392 '../build/util/build_util.gyp:lastchange',
393 '../build/linux/system.gyp:gtk',
394 '../build/linux/system.gyp:nss',
395 ],
396 'cflags': [
397 '-Wno-write-strings',
398 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900399 'export_dependent_settings': [
400 '../build/linux/system.gyp:gtk',
401 ],
402 },],
403 [ 'OS == "freebsd"', {
404 'sources!': [
405 'directory_watcher_inotify.cc',
406 ],
407 'sources': [
408 'directory_watcher_stub.cc',
409 ],
evan@chromium.org875bb6e2009-12-29 09:32:52 +0900410 'link_settings': {
411 'libraries': [
412 '-L/usr/local/lib -lexecinfo',
413 ],
414 },
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900415 },
416 ],
417 [ 'OS == "mac"', {
418 'link_settings': {
419 'libraries': [
420 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
421 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
422 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
423 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
424 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
425 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
426 ],
427 },
428 },],
429 [ 'OS != "win"', {
430 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
431 'sources!': [
432 'third_party/purify/pure_api.c',
433 'base_drag_source.cc',
434 'base_drop_target.cc',
435 'cpu.cc',
436 'debug_on_start.cc',
437 'event_recorder.cc',
438 'file_version_info.cc',
439 'iat_patch.cc',
440 'image_util.cc',
441 'object_watcher.cc',
442 'pe_image.cc',
443 'registry.cc',
444 'resource_util.cc',
445 'win_util.cc',
446 'wmi_util.cc',
447 ],
448 },
449 ],
450 ],
451 'sources': [
452 'crypto/cssm_init.cc',
453 'crypto/cssm_init.h',
454 'crypto/rsa_private_key.h',
455 'crypto/rsa_private_key.cc',
456 'crypto/rsa_private_key_mac.cc',
457 'crypto/rsa_private_key_nss.cc',
458 'crypto/rsa_private_key_win.cc',
459 'crypto/signature_creator.h',
460 'crypto/signature_creator_mac.cc',
461 'crypto/signature_creator_nss.cc',
462 'crypto/signature_creator_win.cc',
463 'crypto/signature_verifier.h',
464 'crypto/signature_verifier_mac.cc',
465 'crypto/signature_verifier_nss.cc',
466 'crypto/signature_verifier_win.cc',
467 'third_party/nspr/prcpucfg.h',
468 'third_party/nspr/prcpucfg_win.h',
469 'third_party/nspr/prtypes.h',
470 'third_party/nss/blapi.h',
471 'third_party/nss/blapit.h',
472 'third_party/nss/sha256.h',
473 'third_party/nss/sha512.cc',
474 'third_party/purify/pure.h',
475 'third_party/purify/pure_api.c',
476 'third_party/xdg_mime/xdgmime.c',
477 'third_party/xdg_mime/xdgmime.h',
478 'third_party/xdg_mime/xdgmimealias.c',
479 'third_party/xdg_mime/xdgmimealias.h',
480 'third_party/xdg_mime/xdgmimecache.c',
481 'third_party/xdg_mime/xdgmimecache.h',
482 'third_party/xdg_mime/xdgmimeglob.c',
483 'third_party/xdg_mime/xdgmimeglob.h',
484 'third_party/xdg_mime/xdgmimeicon.c',
485 'third_party/xdg_mime/xdgmimeicon.h',
486 'third_party/xdg_mime/xdgmimeint.c',
487 'third_party/xdg_mime/xdgmimeint.h',
488 'third_party/xdg_mime/xdgmimemagic.c',
489 'third_party/xdg_mime/xdgmimemagic.h',
490 'third_party/xdg_mime/xdgmimeparent.c',
491 'third_party/xdg_mime/xdgmimeparent.h',
492 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
493 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
494 'auto_reset.h',
495 'base64.cc',
496 'base64.h',
497 'base_drag_source.cc',
498 'base_drag_source.h',
499 'base_drop_target.cc',
500 'base_drop_target.h',
501 'data_pack.cc',
502 'directory_watcher.h',
503 'directory_watcher_inotify.cc',
504 'directory_watcher_mac.cc',
505 'directory_watcher_win.cc',
506 'dynamic_annotations.h',
507 'dynamic_annotations.cc',
508 'event_recorder.cc',
509 'event_recorder.h',
510 'event_recorder_stubs.cc',
511 'field_trial.cc',
512 'field_trial.h',
513 'file_descriptor_shuffle.cc',
514 'file_descriptor_shuffle.h',
515 'gfx/point.cc',
516 'gfx/point.h',
517 'gfx/rect.cc',
518 'gfx/rect.h',
519 'gfx/size.cc',
520 'gfx/size.h',
521 'hmac.h',
522 'hmac_mac.cc',
523 'hmac_nss.cc',
524 'hmac_win.cc',
525 'image_util.cc',
526 'image_util.h',
527 'json/json_reader.cc',
528 'json/json_reader.h',
529 'json/json_writer.cc',
530 'json/json_writer.h',
531 'json/string_escape.cc',
532 'json/string_escape.h',
533 'keyboard_code_conversion_gtk.cc',
534 'keyboard_code_conversion_gtk.h',
535 'keyboard_codes.h',
536 'keyboard_codes_win.h',
537 'keyboard_codes_posix.h',
538 'linux_util.cc',
539 'linux_util.h',
540 'md5.cc',
541 'md5.h',
542 'message_pump_glib.cc',
543 'message_pump_glib.h',
544 'message_pump_libevent.cc',
545 'message_pump_libevent.h',
546 'message_pump_mac.h',
547 'message_pump_mac.mm',
548 'nsimage_cache_mac.h',
549 'nsimage_cache_mac.mm',
mattm@chromium.org4bea5962010-01-15 07:36:35 +0900550 'nss_util.cc',
551 'nss_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900552 'pe_image.cc',
553 'pe_image.h',
554 'setproctitle_linux.c',
555 'setproctitle_linux.h',
556 'sha2.cc',
557 'sha2.h',
558 'string16.cc',
559 'string16.h',
560 'sync_socket.h',
561 'sync_socket_win.cc',
562 'sync_socket_posix.cc',
563 'time_mac.cc',
564 'time_posix.cc',
565 'values.cc',
566 'values.h',
567 'version.cc',
568 'version.h',
569 ],
570 },
571 ],
572 'conditions': [
573 [ 'OS == "win"', {
574 'targets': [
575 {
576 'target_name': 'base_nacl_win64',
577 'type': '<(library)',
578 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
579 'variables': {
580 'base_target': 1,
581 },
582 # TODO(gregoryd): direct_dependent_settings should be shared with the
583 # 32-bit target, but it doesn't work due to a bug in gyp
584 'direct_dependent_settings': {
585 'include_dirs': [
586 '..',
587 ],
588 },
589 'defines': [
590 '<@(nacl_win64_defines)',
591 ],
592 'sources': [
593 'i18n/icu_util_nacl_win64.cc',
594 ],
595 'configurations': {
gregoryd@google.comacc30ba2009-12-23 07:57:37 +0900596 'Common_Base': {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900597 'msvs_target_platform': 'x64',
598 },
599 },
600 },
601 ],
602 }],
603 ],
604}