OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 config("base_libs") { | |
6 if (!is_win) { | |
7 libs = [ "dl" ] | |
8 } | |
9 } | |
10 | |
11 component("base") { | 5 component("base") { |
12 external = true | 6 external = true |
13 sources = [ | 7 sources = [ |
14 "../build/build_config.h", | 8 "../build/build_config.h", |
15 "third_party/dmg_fp/dmg_fp.h", | 9 "third_party/dmg_fp/dmg_fp.h", |
16 "third_party/dmg_fp/g_fmt.cc", | 10 "third_party/dmg_fp/g_fmt.cc", |
17 "third_party/dmg_fp/dtoa_wrapper.cc", | 11 "third_party/dmg_fp/dtoa_wrapper.cc", |
18 "third_party/icu/icu_utf.cc", | 12 "third_party/icu/icu_utf.cc", |
19 "third_party/icu/icu_utf.h", | 13 "third_party/icu/icu_utf.h", |
20 "allocator/allocator_extension.cc", | 14 "allocator/allocator_extension.cc", |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 ] | 683 ] |
690 | 684 |
691 deps = [ | 685 deps = [ |
692 ":base_static", | 686 ":base_static", |
693 "//base/allocator:allocator_extension_thunks", | 687 "//base/allocator:allocator_extension_thunks", |
694 "//base/third_party/dynamic_annotations", | 688 "//base/third_party/dynamic_annotations", |
695 "//base/third_party/nspr", | 689 "//base/third_party/nspr", |
696 "//third_party/modp_b64", | 690 "//third_party/modp_b64", |
697 ] | 691 ] |
698 | 692 |
699 # So we can append below without worrying about whether it has been | 693 libs = [] |
700 # previously defined or not. | |
701 all_dependent_configs = [ ":base_libs" ] | |
702 | 694 |
703 if (!is_chromeos) { | 695 if (!is_chromeos) { |
704 sources -= [ | 696 sources -= [ |
705 "sys_info_chromeos.cc", | 697 "sys_info_chromeos.cc", |
706 ] | 698 ] |
707 } | 699 } |
708 | 700 |
709 if (is_nacl) { | 701 if (is_nacl) { |
710 # These things would otherwise be built on a Posix build but aren't | 702 # These things would otherwise be built on a Posix build but aren't |
711 # supported on NaCl. | 703 # supported on NaCl. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 # regression to page cycler moz. | 735 # regression to page cycler moz. |
744 "sha1_win.cc", | 736 "sha1_win.cc", |
745 ] | 737 ] |
746 | 738 |
747 if (is_component_build) { | 739 if (is_component_build) { |
748 sources -= "debug/debug_on_start_win.cc" | 740 sources -= "debug/debug_on_start_win.cc" |
749 } | 741 } |
750 } else if (!is_nacl) { | 742 } else if (!is_nacl) { |
751 # Non-Windows. | 743 # Non-Windows. |
752 deps += "//third_party/libevent" | 744 deps += "//third_party/libevent" |
| 745 libs += "dl" |
753 } | 746 } |
754 | 747 |
755 # Mac. | 748 # Mac. |
756 if (is_mac) { | 749 if (is_mac) { |
757 sources -= [ | 750 sources -= [ |
758 "base_paths_posix.cc", | 751 "base_paths_posix.cc", |
759 "native_library_posix.cc", | 752 "native_library_posix.cc", |
760 "strings/sys_string_conversions_posix.cc", | 753 "strings/sys_string_conversions_posix.cc", |
761 ] | 754 ] |
762 deps += "//third_party/mach_override" | 755 deps += "//third_party/mach_override" |
| 756 libs += [ |
| 757 "AppKit.framework", |
| 758 "ApplicationServices.framework", |
| 759 "Carbon.framework", |
| 760 "CoreFoundation.framework", |
| 761 "Foundation.framework", |
| 762 "IOKit.framework", |
| 763 "Security.framework", |
| 764 ] |
763 } else { | 765 } else { |
764 # Non-Mac. | 766 # Non-Mac. |
765 sources -= "files/file_path_watcher_kqueue.cc" | 767 sources -= "files/file_path_watcher_kqueue.cc" |
766 } | 768 } |
767 | 769 |
| 770 # IOS. |
| 771 if (is_ios) { |
| 772 libs += [ |
| 773 "CoreFoundation.framework", |
| 774 "CoreGraphics.framework", |
| 775 "CoreText.framework", |
| 776 "Foundation.framework", |
| 777 "UIKit.framework", |
| 778 ] |
| 779 } |
| 780 |
768 # Linux. | 781 # Linux. |
769 if (is_linux) { | 782 if (is_linux) { |
770 # TODO(brettw) these will need to be parameterized at some point. | 783 # TODO(brettw) these will need to be parameterized at some point. |
771 linux_configs = [ | 784 linux_configs = [ |
772 "//build/config/linux:glib", | 785 "//build/config/linux:glib", |
773 "//build/config/linux:gtk", | 786 "//build/config/linux:gtk", |
774 "//build/config/linux:x11", | 787 "//build/config/linux:x11", |
775 ] | 788 ] |
776 configs += linux_configs | 789 configs += linux_configs |
777 all_dependent_configs += linux_configs | 790 all_dependent_configs += linux_configs |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 static_library("run_all_unittests") { | 1026 static_library("run_all_unittests") { |
1014 external = true | 1027 external = true |
1015 sources = [ | 1028 sources = [ |
1016 "test/run_all_unittests.cc", | 1029 "test/run_all_unittests.cc", |
1017 ] | 1030 ] |
1018 deps = [ | 1031 deps = [ |
1019 ":test_support_base", | 1032 ":test_support_base", |
1020 ] | 1033 ] |
1021 } | 1034 } |
1022 | 1035 |
OLD | NEW |