blob: c19b34306b13711982a608f54b5e669789231662 [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',
106 'memory_debug.cc',
107 'memory_debug.h',
108 'message_loop.cc',
109 'message_loop.h',
110 'message_pump.h',
111 'message_pump_default.cc',
112 'message_pump_default.h',
113 'message_pump_win.cc',
114 'message_pump_win.h',
115 'mime_util.h',
116 'mime_util_linux.cc',
117 'native_library.h',
118 'native_library_linux.cc',
119 'native_library_mac.mm',
120 'native_library_win.cc',
121 'non_thread_safe.cc',
122 'non_thread_safe.h',
123 'nullable_string16.h',
124 'object_watcher.cc',
125 'object_watcher.h',
126 'observer_list.h',
127 'observer_list_threadsafe.h',
128 'path_service.cc',
129 'path_service.h',
130 'pickle.cc',
131 'pickle.h',
132 'platform_file.h',
133 'platform_file_win.cc',
134 'platform_file_posix.cc',
135 'platform_thread.h',
136 'platform_thread_mac.mm',
137 'platform_thread_posix.cc',
138 'platform_thread_win.cc',
139 'port.h',
140 'profiler.cc',
141 'profiler.h',
142 'process.h',
143 'process_linux.cc',
144 'process_posix.cc',
145 'process_util.h',
146 'process_util_linux.cc',
147 'process_util_mac.mm',
148 'process_util_posix.cc',
149 'process_util_win.cc',
150 'process_win.cc',
151 'rand_util.cc',
152 'rand_util.h',
153 'rand_util_posix.cc',
154 'rand_util_win.cc',
155 'raw_scoped_refptr_mismatch_checker.h',
156 'ref_counted.cc',
157 'ref_counted.h',
158 'ref_counted_memory.h',
159 'registry.cc',
160 'registry.h',
161 'resource_util.cc',
162 'resource_util.h',
163 'safe_strerror_posix.cc',
164 'safe_strerror_posix.h',
165 'scoped_bstr_win.cc',
166 'scoped_bstr_win.h',
167 'scoped_cftyperef.h',
168 'scoped_comptr_win.h',
169 'scoped_handle.h',
170 'scoped_handle_gtk.h',
171 'scoped_handle_win.h',
172 'scoped_nsautorelease_pool.h',
173 'scoped_nsautorelease_pool.mm',
174 'scoped_nsdisable_screen_updates.h',
175 'scoped_nsobject.h',
176 'scoped_ptr.h',
177 'scoped_temp_dir.cc',
178 'scoped_temp_dir.h',
179 'scoped_variant_win.cc',
180 'scoped_variant_win.h',
181 'scoped_vector.h',
182 'sha1.cc',
183 'sha1.h',
184 'shared_memory.h',
185 'shared_memory_posix.cc',
186 'shared_memory_win.cc',
187 'simple_thread.cc',
188 'simple_thread.h',
189 'singleton.h',
190 'spin_wait.h',
191 'stack_container.h',
192 'stats_counters.h',
193 'stats_table.cc',
194 'stats_table.h',
195 'stl_util-inl.h',
196 'string_piece.cc',
197 'string_piece.h',
198 'string_tokenizer.h',
199 'string_util.cc',
200 'string_util.h',
201 'string_util_win.h',
202 'sys_info.h',
203 'sys_info_chromeos.cc',
204 'sys_info_freebsd.cc',
205 'sys_info_linux.cc',
206 'sys_info_mac.cc',
207 'sys_info_openbsd.cc',
208 'sys_info_posix.cc',
209 'sys_info_win.cc',
210 'sys_string_conversions.h',
211 'sys_string_conversions_linux.cc',
212 'sys_string_conversions_mac.mm',
213 'sys_string_conversions_win.cc',
214 'task.h',
215 'thread.cc',
216 'thread.h',
217 'thread_collision_warner.cc',
218 'thread_collision_warner.h',
219 'thread_local.h',
220 'thread_local_posix.cc',
221 'thread_local_storage.h',
222 'thread_local_storage_posix.cc',
223 'thread_local_storage_win.cc',
224 'thread_local_win.cc',
225 'time.cc',
226 'time.h',
227 'time_win.cc',
228 'timer.cc',
229 'timer.h',
230 'trace_event.cc',
231 'trace_event.h',
232 'tracked.cc',
233 'tracked.h',
234 'tracked_objects.cc',
235 'tracked_objects.h',
236 'tuple.h',
237 'utf_offset_string_conversions.cc',
238 'utf_offset_string_conversions.h',
239 'utf_string_conversion_utils.cc',
240 'utf_string_conversion_utils.h',
241 'utf_string_conversions.cc',
242 'utf_string_conversions.h',
243 'unix_domain_socket_posix.cc',
244 'waitable_event.h',
245 'waitable_event_posix.cc',
246 'waitable_event_watcher.h',
247 'waitable_event_watcher_posix.cc',
248 'waitable_event_watcher_win.cc',
249 'waitable_event_win.cc',
250 'watchdog.cc',
251 'watchdog.h',
252 'weak_ptr.h',
253 'win_util.cc',
254 'win_util.h',
255 'windows_message_list.h',
256 'wmi_util.cc',
257 'wmi_util.h',
258 'worker_pool.h',
259 'worker_pool_linux.cc',
260 'worker_pool_linux.h',
261 'worker_pool_mac.h',
262 'worker_pool_mac.mm',
263 'worker_pool_win.cc',
264 ],
265 'include_dirs': [
266 '..',
267 ],
268 # These warnings are needed for the files in third_party\dmg_fp.
269 'msvs_disabled_warnings': [
270 4244, 4554, 4018, 4102,
271 ],
272 'mac_framework_dirs': [
273 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
274 ],
275 'conditions': [
276 [ 'OS != "linux" and OS != "freebsd"', {
277 'sources/': [
278 ['exclude', '/xdg_mime/'],
279 ['exclude', '/xdg_user_dirs/'],
280 ['exclude', '_nss\.cc$'],
281 ],
282 'sources!': [
283 'atomicops_internals_x86_gcc.cc',
284 'base_paths_posix.cc',
285 'directory_watcher_inotify.cc',
286 'linux_util.cc',
287 'message_pump_glib.cc',
288 'nss_init.cc',
289 'nss_init.h',
290 'time_posix.cc',
291 ],
292 },],
293 [ 'OS != "linux"', {
294 'sources!': [
295 # Not automatically excluded by the *linux.cc rules.
296 'setproctitle_linux.c',
297 'setproctitle_linux.h',
298 ],
299 },
300 ],
301 # For now, just test the *BSD platforms enough to exclude them.
302 # Subsequent changes will include them further.
303 [ 'OS != "freebsd"', {
304 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
305 },
306 ],
307 [ 'OS != "openbsd"', {
308 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
309 },
310 ],
311 [ 'GENERATOR == "quentin"', {
312 # Quentin builds don't have a recent enough glibc to include the
313 # inotify headers
314 'sources!': [
315 'directory_watcher_inotify.cc',
316 ],
317 'sources': [
318 'directory_watcher_stub.cc',
319 ],
320 },
321 ],
322 [ 'OS != "mac"', {
323 'sources!': [
324 'crypto/cssm_init.cc',
325 'crypto/cssm_init.h',
326 ],
327 }
328 ],
329 [ 'OS == "win"', {
330 'include_dirs': [
331 '../chrome/third_party/wtl/include',
332 ],
333 'sources!': [
334 'data_pack.cc',
335 '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': [
367 [ 'chromeos==1 or toolkit_views==1', {
368 '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 ],
382 ],
383 'dependencies': [
384 '../build/util/build_util.gyp:lastchange',
385 '../build/linux/system.gyp:gtk',
386 '../build/linux/system.gyp:nss',
387 ],
388 'cflags': [
389 '-Wno-write-strings',
390 ],
391 'link_settings': {
392 'libraries': [
393 # We need rt for clock_gettime().
394 '-lrt',
395 ],
396 },
397 'export_dependent_settings': [
398 '../build/linux/system.gyp:gtk',
399 ],
400 },],
401 [ 'OS == "freebsd"', {
402 'sources!': [
403 'directory_watcher_inotify.cc',
404 ],
405 'sources': [
406 'directory_watcher_stub.cc',
407 ],
408 },
409 ],
410 [ 'OS == "mac"', {
411 'link_settings': {
412 'libraries': [
413 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
414 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
415 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
416 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
417 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
418 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
419 ],
420 },
421 },],
422 [ 'OS != "win"', {
423 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
424 'sources!': [
425 'third_party/purify/pure_api.c',
426 'base_drag_source.cc',
427 'base_drop_target.cc',
428 'cpu.cc',
429 'debug_on_start.cc',
430 'event_recorder.cc',
431 'file_version_info.cc',
432 'iat_patch.cc',
433 'image_util.cc',
434 'object_watcher.cc',
435 'pe_image.cc',
436 'registry.cc',
437 'resource_util.cc',
438 'win_util.cc',
439 'wmi_util.cc',
440 ],
441 },
442 ],
443 ],
444 'sources': [
445 'crypto/cssm_init.cc',
446 'crypto/cssm_init.h',
447 'crypto/rsa_private_key.h',
448 'crypto/rsa_private_key.cc',
449 'crypto/rsa_private_key_mac.cc',
450 'crypto/rsa_private_key_nss.cc',
451 'crypto/rsa_private_key_win.cc',
452 'crypto/signature_creator.h',
453 'crypto/signature_creator_mac.cc',
454 'crypto/signature_creator_nss.cc',
455 'crypto/signature_creator_win.cc',
456 'crypto/signature_verifier.h',
457 'crypto/signature_verifier_mac.cc',
458 'crypto/signature_verifier_nss.cc',
459 'crypto/signature_verifier_win.cc',
460 'third_party/nspr/prcpucfg.h',
461 'third_party/nspr/prcpucfg_win.h',
462 'third_party/nspr/prtypes.h',
463 'third_party/nss/blapi.h',
464 'third_party/nss/blapit.h',
465 'third_party/nss/sha256.h',
466 'third_party/nss/sha512.cc',
467 'third_party/purify/pure.h',
468 'third_party/purify/pure_api.c',
469 'third_party/xdg_mime/xdgmime.c',
470 'third_party/xdg_mime/xdgmime.h',
471 'third_party/xdg_mime/xdgmimealias.c',
472 'third_party/xdg_mime/xdgmimealias.h',
473 'third_party/xdg_mime/xdgmimecache.c',
474 'third_party/xdg_mime/xdgmimecache.h',
475 'third_party/xdg_mime/xdgmimeglob.c',
476 'third_party/xdg_mime/xdgmimeglob.h',
477 'third_party/xdg_mime/xdgmimeicon.c',
478 'third_party/xdg_mime/xdgmimeicon.h',
479 'third_party/xdg_mime/xdgmimeint.c',
480 'third_party/xdg_mime/xdgmimeint.h',
481 'third_party/xdg_mime/xdgmimemagic.c',
482 'third_party/xdg_mime/xdgmimemagic.h',
483 'third_party/xdg_mime/xdgmimeparent.c',
484 'third_party/xdg_mime/xdgmimeparent.h',
485 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
486 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
487 'auto_reset.h',
488 'base64.cc',
489 'base64.h',
490 'base_drag_source.cc',
491 'base_drag_source.h',
492 'base_drop_target.cc',
493 'base_drop_target.h',
494 'data_pack.cc',
495 'directory_watcher.h',
496 'directory_watcher_inotify.cc',
497 'directory_watcher_mac.cc',
498 'directory_watcher_win.cc',
499 'dynamic_annotations.h',
500 'dynamic_annotations.cc',
501 'event_recorder.cc',
502 'event_recorder.h',
503 'event_recorder_stubs.cc',
504 'field_trial.cc',
505 'field_trial.h',
506 'file_descriptor_shuffle.cc',
507 'file_descriptor_shuffle.h',
508 'gfx/point.cc',
509 'gfx/point.h',
510 'gfx/rect.cc',
511 'gfx/rect.h',
512 'gfx/size.cc',
513 'gfx/size.h',
514 'hmac.h',
515 'hmac_mac.cc',
516 'hmac_nss.cc',
517 'hmac_win.cc',
518 'image_util.cc',
519 'image_util.h',
520 'json/json_reader.cc',
521 'json/json_reader.h',
522 'json/json_writer.cc',
523 'json/json_writer.h',
524 'json/string_escape.cc',
525 'json/string_escape.h',
526 'keyboard_code_conversion_gtk.cc',
527 'keyboard_code_conversion_gtk.h',
528 'keyboard_codes.h',
529 'keyboard_codes_win.h',
530 'keyboard_codes_posix.h',
531 'linux_util.cc',
532 'linux_util.h',
533 'md5.cc',
534 'md5.h',
535 'message_pump_glib.cc',
536 'message_pump_glib.h',
537 'message_pump_libevent.cc',
538 'message_pump_libevent.h',
539 'message_pump_mac.h',
540 'message_pump_mac.mm',
541 'nsimage_cache_mac.h',
542 'nsimage_cache_mac.mm',
543 'nss_init.cc',
544 'nss_init.h',
545 'pe_image.cc',
546 'pe_image.h',
547 'setproctitle_linux.c',
548 'setproctitle_linux.h',
549 'sha2.cc',
550 'sha2.h',
551 'string16.cc',
552 'string16.h',
553 'sync_socket.h',
554 'sync_socket_win.cc',
555 'sync_socket_posix.cc',
556 'time_mac.cc',
557 'time_posix.cc',
558 'values.cc',
559 'values.h',
560 'version.cc',
561 'version.h',
562 ],
563 },
564 ],
565 'conditions': [
566 [ 'OS == "win"', {
567 'targets': [
568 {
569 'target_name': 'base_nacl_win64',
570 'type': '<(library)',
571 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
572 'variables': {
573 'base_target': 1,
574 },
575 # TODO(gregoryd): direct_dependent_settings should be shared with the
576 # 32-bit target, but it doesn't work due to a bug in gyp
577 'direct_dependent_settings': {
578 'include_dirs': [
579 '..',
580 ],
581 },
582 'defines': [
583 '<@(nacl_win64_defines)',
584 ],
585 'sources': [
586 'i18n/icu_util_nacl_win64.cc',
587 ],
588 'configurations': {
589 'Common': {
590 'msvs_target_platform': 'x64',
591 },
592 },
593 },
594 ],
595 }],
596 ],
597}