Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: tools/gn/secondary/base/BUILD.gn

Issue 21983003: Make the Mac build work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dunnow Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gn/secondary/BUILD.gn ('k') | tools/gn/secondary/build/config/BUILDCONFIG.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # found in the LICENSE file. 1 # found in the LICENSE file.
2 2
3 component("base") { 3 component("base") {
4 sources = [ 4 sources = [
5 "../build/build_config.h", 5 "../build/build_config.h",
6 "third_party/dmg_fp/dmg_fp.h", 6 "third_party/dmg_fp/dmg_fp.h",
7 "third_party/dmg_fp/g_fmt.cc", 7 "third_party/dmg_fp/g_fmt.cc",
8 "third_party/dmg_fp/dtoa_wrapper.cc", 8 "third_party/dmg_fp/dtoa_wrapper.cc",
9 "third_party/icu/icu_utf.cc", 9 "third_party/icu/icu_utf.cc",
10 "third_party/icu/icu_utf.h", 10 "third_party/icu/icu_utf.h",
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 "memory/scoped_vector.h", 284 "memory/scoped_vector.h",
285 "memory/shared_memory.h", 285 "memory/shared_memory.h",
286 "memory/shared_memory_android.cc", 286 "memory/shared_memory_android.cc",
287 "memory/shared_memory_nacl.cc", 287 "memory/shared_memory_nacl.cc",
288 "memory/shared_memory_posix.cc", 288 "memory/shared_memory_posix.cc",
289 "memory/shared_memory_win.cc", 289 "memory/shared_memory_win.cc",
290 "memory/singleton.cc", 290 "memory/singleton.cc",
291 "memory/singleton.h", 291 "memory/singleton.h",
292 "memory/weak_ptr.cc", 292 "memory/weak_ptr.cc",
293 "memory/weak_ptr.h", 293 "memory/weak_ptr.h",
294 "message_loop/incoming_task_queue.cc",
295 "message_loop/incoming_task_queue.h",
294 "message_loop/message_loop.cc", 296 "message_loop/message_loop.cc",
295 "message_loop/message_loop.h", 297 "message_loop/message_loop.h",
296 "message_loop/message_loop_proxy.cc", 298 "message_loop/message_loop_proxy.cc",
297 "message_loop/message_loop_proxy.h", 299 "message_loop/message_loop_proxy.h",
298 "message_loop/message_loop_proxy_impl.cc", 300 "message_loop/message_loop_proxy_impl.cc",
299 "message_loop/message_loop_proxy_impl.h", 301 "message_loop/message_loop_proxy_impl.h",
300 "message_loop/message_pump.cc", 302 "message_loop/message_pump.cc",
301 "message_loop/message_pump.h", 303 "message_loop/message_pump.h",
302 "message_loop/message_pump_android.cc", 304 "message_loop/message_pump_android.cc",
303 "message_loop/message_pump_android.h", 305 "message_loop/message_pump_android.h",
306 "message_loop/message_pump_aurax11.cc",
307 "message_loop/message_pump_aurax11.h",
304 "message_loop/message_pump_default.cc", 308 "message_loop/message_pump_default.cc",
305 "message_loop/message_pump_default.h", 309 "message_loop/message_pump_default.h",
310 "message_loop/message_pump_glib.cc",
311 "message_loop/message_pump_glib.h",
312 "message_loop/message_pump_gtk.cc",
313 "message_loop/message_pump_gtk.h",
314 "message_loop/message_pump_io_ios.cc",
315 "message_loop/message_pump_io_ios.h",
316 "message_loop/message_pump_libevent.cc",
317 "message_loop/message_pump_libevent.h",
318 "message_loop/message_pump_mac.h",
319 "message_loop/message_pump_mac.mm",
320 "message_loop/message_pump_observer.h",
306 "message_loop/message_pump_ozone.cc", 321 "message_loop/message_pump_ozone.cc",
307 "message_loop/message_pump_ozone.h", 322 "message_loop/message_pump_ozone.h",
308 "message_loop/message_pump_win.cc", 323 "message_loop/message_pump_win.cc",
309 "message_loop/message_pump_win.h", 324 "message_loop/message_pump_win.h",
325 "metrics/field_trial.cc",
326 "metrics/field_trial.h",
310 "metrics/sample_map.cc", 327 "metrics/sample_map.cc",
311 "metrics/sample_map.h", 328 "metrics/sample_map.h",
312 "metrics/sample_vector.cc", 329 "metrics/sample_vector.cc",
313 "metrics/sample_vector.h", 330 "metrics/sample_vector.h",
314 "metrics/bucket_ranges.cc", 331 "metrics/bucket_ranges.cc",
315 "metrics/bucket_ranges.h", 332 "metrics/bucket_ranges.h",
316 "metrics/histogram.cc", 333 "metrics/histogram.cc",
317 "metrics/histogram.h", 334 "metrics/histogram.h",
318 "metrics/histogram_base.cc", 335 "metrics/histogram_base.cc",
319 "metrics/histogram_base.h", 336 "metrics/histogram_base.h",
(...skipping 30 matching lines...) Expand all
350 "pending_task.cc", 367 "pending_task.cc",
351 "pending_task.h", 368 "pending_task.h",
352 "pickle.cc", 369 "pickle.cc",
353 "pickle.h", 370 "pickle.h",
354 "platform_file.cc", 371 "platform_file.cc",
355 "platform_file.h", 372 "platform_file.h",
356 "platform_file_posix.cc", 373 "platform_file_posix.cc",
357 "platform_file_win.cc", 374 "platform_file_win.cc",
358 "port.h", 375 "port.h",
359 "posix/eintr_wrapper.h", 376 "posix/eintr_wrapper.h",
377 "posix/file_descriptor_shuffle.cc",
378 "posix/file_descriptor_shuffle.y",
360 "posix/global_descriptors.cc", 379 "posix/global_descriptors.cc",
361 "posix/global_descriptors.h", 380 "posix/global_descriptors.h",
362 "posix/unix_domain_socket_linux.cc", 381 "posix/unix_domain_socket_linux.cc",
363 "posix/unix_domain_socket_linux.h", 382 "posix/unix_domain_socket_linux.h",
364 "power_monitor/power_monitor.cc", 383 "power_monitor/power_monitor.cc",
365 "power_monitor/power_monitor.h", 384 "power_monitor/power_monitor.h",
366 "power_monitor/power_monitor_android.cc", 385 "power_monitor/power_monitor_android.cc",
367 "power_monitor/power_monitor_android.h", 386 "power_monitor/power_monitor_android.h",
368 "power_monitor/power_monitor_ios.mm", 387 "power_monitor/power_monitor_ios.mm",
369 "power_monitor/power_monitor_mac.mm", 388 "power_monitor/power_monitor_mac.mm",
370 "power_monitor/power_monitor_posix.cc", 389 "power_monitor/power_monitor_posix.cc",
371 "power_monitor/power_monitor_win.cc", 390 "power_monitor/power_monitor_win.cc",
372 "power_monitor/power_observer.h", 391 "power_monitor/power_observer.h",
373 "process.h",
374 "process_info.h",
375 "process_info_mac.cc",
376 "process_info_win.cc",
377 "process_linux.cc",
378 "process_posix.cc",
379 "process_util.h",
380 "process_win.cc",
381 "process/internal_linux.cc", 392 "process/internal_linux.cc",
382 "process/internal_linux.h", 393 "process/internal_linux.h",
383 "process/kill.cc", 394 "process/kill.cc",
384 "process/kill.h", 395 "process/kill.h",
385 "process/kill_mac.cc", 396 "process/kill_mac.cc",
386 "process/kill_posix.cc", 397 "process/kill_posix.cc",
387 "process/kill_win.cc", 398 "process/kill_win.cc",
388 "process/launch.h", 399 "process/launch.h",
389 "process/launch_ios.cc", 400 "process/launch_ios.cc",
390 "process/launch_mac.cc", 401 "process/launch_mac.cc",
391 "process/launch_posix.cc", 402 "process/launch_posix.cc",
392 "process/launch_win.cc", 403 "process/launch_win.cc",
393 "process/memory.h", 404 "process/memory.h",
394 "process/memory_linux.cc", 405 "process/memory_linux.cc",
395 "process/memory_mac.mm", 406 "process/memory_mac.mm",
396 "process/memory_win.cc", 407 "process/memory_win.cc",
408 "process/process.h",
397 "process/process_handle_freebsd.cc", 409 "process/process_handle_freebsd.cc",
398 "process/process_handle_linux.cc", 410 "process/process_handle_linux.cc",
399 "process/process_handle_mac.cc", 411 "process/process_handle_mac.cc",
400 "process/process_handle_openbsd.cc", 412 "process/process_handle_openbsd.cc",
401 "process/process_handle_posix.cc", 413 "process/process_handle_posix.cc",
402 "process/process_handle_win.cc", 414 "process/process_handle_win.cc",
415 "process/process_info.h",
416 "process/process_info_mac.cc",
417 "process/process_info_win.cc",
403 "process/process_iterator.cc", 418 "process/process_iterator.cc",
404 "process/process_iterator.h", 419 "process/process_iterator.h",
405 "process/process_iterator_freebsd.cc", 420 "process/process_iterator_freebsd.cc",
406 "process/process_iterator_linux.cc", 421 "process/process_iterator_linux.cc",
407 "process/process_iterator_mac.cc", 422 "process/process_iterator_mac.cc",
408 "process/process_iterator_openbsd.cc", 423 "process/process_iterator_openbsd.cc",
409 "process/process_iterator_win.cc", 424 "process/process_iterator_win.cc",
425 "process/process_linux.cc",
410 "process/process_metrics.h", 426 "process/process_metrics.h",
411 "process/process_metrics_freebsd.cc", 427 "process/process_metrics_freebsd.cc",
412 "process/process_metrics_ios.cc", 428 "process/process_metrics_ios.cc",
413 "process/process_metrics_linux.cc", 429 "process/process_metrics_linux.cc",
414 "process/process_metrics_mac.cc", 430 "process/process_metrics_mac.cc",
415 "process/process_metrics_openbsd.cc", 431 "process/process_metrics_openbsd.cc",
416 "process/process_metrics_posix.cc", 432 "process/process_metrics_posix.cc",
417 "process/process_metrics_win.cc", 433 "process/process_metrics_win.cc",
434 "process/process_posix.cc",
435 "process/process_util.h",
436 "process/process_win.cc",
418 "profiler/scoped_profile.cc", 437 "profiler/scoped_profile.cc",
419 "profiler/scoped_profile.h", 438 "profiler/scoped_profile.h",
420 "profiler/alternate_timer.cc", 439 "profiler/alternate_timer.cc",
421 "profiler/alternate_timer.h", 440 "profiler/alternate_timer.h",
422 "profiler/tracked_time.cc", 441 "profiler/tracked_time.cc",
423 "profiler/tracked_time.h", 442 "profiler/tracked_time.h",
424 "rand_util.cc", 443 "rand_util.cc",
425 "rand_util.h", 444 "rand_util.h",
426 "rand_util_nacl.cc", 445 "rand_util_nacl.cc",
427 "rand_util_posix.cc", 446 "rand_util_posix.cc",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 "strings/sys_string_conversions_posix.cc", 489 "strings/sys_string_conversions_posix.cc",
471 "strings/sys_string_conversions_win.cc", 490 "strings/sys_string_conversions_win.cc",
472 "strings/utf_offset_string_conversions.cc", 491 "strings/utf_offset_string_conversions.cc",
473 "strings/utf_offset_string_conversions.h", 492 "strings/utf_offset_string_conversions.h",
474 "strings/utf_string_conversion_utils.cc", 493 "strings/utf_string_conversion_utils.cc",
475 "strings/utf_string_conversion_utils.h", 494 "strings/utf_string_conversion_utils.h",
476 "strings/utf_string_conversions.cc", 495 "strings/utf_string_conversions.cc",
477 "strings/utf_string_conversions.h", 496 "strings/utf_string_conversions.h",
478 "supports_user_data.cc", 497 "supports_user_data.cc",
479 "supports_user_data.h", 498 "supports_user_data.h",
499 "sync_socket.h",
500 "sync_socket_posix.cc",
501 "sync_socket_win.cc",
480 "synchronization/cancellation_flag.cc", 502 "synchronization/cancellation_flag.cc",
481 "synchronization/cancellation_flag.h", 503 "synchronization/cancellation_flag.h",
482 "synchronization/condition_variable.h", 504 "synchronization/condition_variable.h",
483 "synchronization/condition_variable_posix.cc", 505 "synchronization/condition_variable_posix.cc",
484 "synchronization/condition_variable_win.cc", 506 "synchronization/condition_variable_win.cc",
485 "synchronization/lock.cc", 507 "synchronization/lock.cc",
486 "synchronization/lock.h", 508 "synchronization/lock.h",
487 "synchronization/lock_impl.h", 509 "synchronization/lock_impl.h",
488 "synchronization/lock_impl_posix.cc", 510 "synchronization/lock_impl_posix.cc",
489 "synchronization/lock_impl_win.cc", 511 "synchronization/lock_impl_win.cc",
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 "win/windows_version.cc", 658 "win/windows_version.cc",
637 "win/windows_version.h", 659 "win/windows_version.h",
638 "win/wrapped_window_proc.cc", 660 "win/wrapped_window_proc.cc",
639 "win/wrapped_window_proc.h", 661 "win/wrapped_window_proc.h",
640 ] 662 ]
641 663
642 # TODO(brettw) I don't understand the conditions this file is used. 664 # TODO(brettw) I don't understand the conditions this file is used.
643 sources -= "files/file_path_watcher_stub.cc" 665 sources -= "files/file_path_watcher_stub.cc"
644 666
645 sources -= [ 667 sources -= [
646 # TODO(brettw) ozone 668 # TODO(brettw) do these properly.
669 "message_loop/message_pump_aurax11.cc",
670 "message_loop/message_pump_aurax11.h",
671 "message_loop/message_pump_glib.cc",
672 "message_loop/message_pump_glib.h",
673 "message_loop/message_pump_gtk.cc",
674 "message_loop/message_pump_gtk.h",
647 "message_loop/message_pump_ozone.cc", 675 "message_loop/message_pump_ozone.cc",
648 "message_loop/message_pump_ozone.h", 676 "message_loop/message_pump_ozone.h",
649 677
650 "process/process_handle_freebsd.cc", 678 "process/process_handle_freebsd.cc",
651 "process/process_handle_openbsd.cc", 679 "process/process_handle_openbsd.cc",
652 "process/process_iterator_freebsd.cc", 680 "process/process_iterator_freebsd.cc",
653 "process/process_iterator_openbsd.cc", 681 "process/process_iterator_openbsd.cc",
654 "process/process_metrics_freebsd.cc", 682 "process/process_metrics_freebsd.cc",
655 "process/process_metrics_openbsd.cc", 683 "process/process_metrics_openbsd.cc",
656 "sys_info_freebsd.cc", 684 "sys_info_freebsd.cc",
657 "sys_info_openbsd.cc", 685 "sys_info_openbsd.cc",
658 ] 686 ]
659 687
660 if (!is_chromeos) { 688 if (!is_chromeos) {
661 sources -= [ 689 sources -= [
662 "sys_info_chromeos.cc", 690 "sys_info_chromeos.cc",
663 ] 691 ]
664 } 692 }
665 if (!is_mac) {
666 sources -= "files/file_path_watcher_kqueue.cc"
667 }
668 693
669 # Remove nacl stuff. 694 # Remove nacl stuff.
670 if (!is_nacl) { 695 if (!is_nacl) {
671 sources -= [ 696 sources -= [
672 "os_compat_nacl.cc", 697 "os_compat_nacl.cc",
673 "os_compat_nacl.h", 698 "os_compat_nacl.h",
674 "rand_util_nacl.cc", 699 "rand_util_nacl.cc",
675 "third_party/nspr/prcpucfg_nacl.h", 700 "third_party/nspr/prcpucfg_nacl.h",
676 "memory/shared_memory_nacl.cc", 701 "memory/shared_memory_nacl.cc",
677 ] 702 ]
678 } 703 }
679 704
680 # Windows stuff. 705 # Windows.
681 if (is_win && !is_nacl) { 706 if (is_win && !is_nacl) {
682 sources -= [ 707 sources -= [
683 "strings/string16.cc", 708 "strings/string16.cc",
684 # Not using sha1_win.cc because it may have caused a 709 # Not using sha1_win.cc because it may have caused a
685 # regression to page cycler moz. 710 # regression to page cycler moz.
686 "sha1_win.cc", 711 "sha1_win.cc",
687 ] 712 ]
688 713
689 if (is_component_build) { 714 if (is_component_build) {
690 sources -= "debug/debug_on_start_win.cc" 715 sources -= "debug/debug_on_start_win.cc"
691 } 716 }
692 } 717 }
693 718
694 # Remove non-Mac Unix stuff. 719 # Mac.
695 if (!is_posix || is_mac) { 720 if (is_mac) {
721 sources -= [
722 "base_paths_posix.cc",
723 "native_library_posix.cc",
724 "strings/sys_string_conversions_posix.cc",
725 ]
726 } else {
727 sources -= "files/file_path_watcher_kqueue.cc"
728 }
729
730 # Non-Mac Unix stuff.
731 if (is_mac) { #!is_posix || is_mac) {
696 sources -= [ 732 sources -= [
697 "nix/mime_util_xdg.cc", 733 "nix/mime_util_xdg.cc",
698 "nix/mime_util_xdg.h", 734 "nix/mime_util_xdg.h",
699 "nix/xdg_util.cc", 735 "nix/xdg_util.cc",
700 "nix/xdg_util.h", 736 "nix/xdg_util.h",
737 "third_party/xdg_mime/xdgmime.h",
701 ] 738 ]
702 } 739 }
703 740
704 defines = [ 741 defines = [
705 "BASE_IMPLEMENTATION", 742 "BASE_IMPLEMENTATION",
706 ] 743 ]
707 744
708 deps = [ 745 deps = [
709 ":base_static", 746 ":base_static",
710 "//base/allocator:allocator_extension_thunks", 747 "//base/allocator:allocator_extension_thunks",
711 "//third_party/modp_b64", 748 "//third_party/modp_b64",
712 "//base/third_party/dynamic_annotations", 749 "//base/third_party/dynamic_annotations",
713 ] 750 ]
751
752 if (!is_win) {
753 deps += "//third_party/libevent"
754 }
755 if (is_mac) {
756 deps += "//third_party/mach_override"
757 }
714 } 758 }
715 759
716 # This is the subset of files from base that should not be used with a dynamic 760 # This is the subset of files from base that should not be used with a dynamic
717 # library. Note that this library cannot depend on base because base depends on 761 # library. Note that this library cannot depend on base because base depends on
718 # base_static. 762 # base_static.
719 static_library("base_static") { 763 static_library("base_static") {
720 sources = [ 764 sources = [
721 "base_switches.cc", 765 "base_switches.cc",
722 "base_switches.h", 766 "base_switches.h",
723 "win/pe_image.cc", 767 "win/pe_image.cc",
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 } 954 }
911 955
912 static_library("run_all_unittests") { 956 static_library("run_all_unittests") {
913 sources = [ 957 sources = [
914 "test/run_all_unittests.cc", 958 "test/run_all_unittests.cc",
915 ] 959 ]
916 deps = [ 960 deps = [
917 ":test_support_base", 961 ":test_support_base",
918 ] 962 ]
919 } 963 }
OLDNEW
« no previous file with comments | « tools/gn/secondary/BUILD.gn ('k') | tools/gn/secondary/build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698