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

Side by Side Diff: base/BUILD.gn

Issue 275703003: Make GN Android build link executables (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
OLDNEW
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 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 7
8 component("base") { 8 component("base") {
9 sources = [ 9 sources = [
10 "third_party/dmg_fp/dmg_fp.h", 10 "third_party/dmg_fp/dmg_fp.h",
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 707
708 deps = [ 708 deps = [
709 ":base_static", 709 ":base_static",
710 "//base/allocator:allocator_extension_thunks", 710 "//base/allocator:allocator_extension_thunks",
711 "//base/third_party/dynamic_annotations", 711 "//base/third_party/dynamic_annotations",
712 "//base/third_party/nspr", 712 "//base/third_party/nspr",
713 "//third_party/modp_b64", 713 "//third_party/modp_b64",
714 ] 714 ]
715 715
716 if (is_android) { 716 if (is_android) {
717 sources += [
718 "memory/discardable_memory_ashmem_allocator.cc",
719 "memory/discardable_memory_ashmem_allocator.h",
720 "memory/discardable_memory_ashmem.cc",
721 "memory/discardable_memory_ashmem.h",
722 ]
723 sources -= [
724 "base_paths_posix.cc",
725 "power_monitor/power_monitor_device_source_posix.cc",
726 ]
727
728 # Android uses some Linux sources, put those back.
729 set_sources_assignment_filter([])
730 sources += [
731 "debug/proc_maps_linux.cc",
732 "files/file_path_watcher_linux.cc",
733 "process/memory_linux.cc",
734 "process/internal_linux.cc",
735 "process/process_handle_linux.cc",
736 "process/process_iterator_linux.cc",
737 "process/process_metrics_linux.cc",
738 "posix/unix_domain_socket_linux.cc",
739 "sys_info_linux.cc",
740 ]
741
717 deps += [ 742 deps += [
718 ":base_jni_headers", 743 ":base_jni_headers",
744 "//third_party/ashmem",
719 "//third_party/android_tools:cpu_features" 745 "//third_party/android_tools:cpu_features"
720 ] 746 ]
721 747
748 # logging.cc uses the Android logging library.
749 libs = [ "log" ]
750
722 sources -= [ 751 sources -= [
723 "debug/stack_trace_posix.cc", 752 "debug/stack_trace_posix.cc",
724 ] 753 ]
725 } 754 }
726 755
727 if (is_nacl) { 756 if (is_nacl) {
728 # These things would otherwise be built on a Posix build but aren't 757 # These things would otherwise be built on a Posix build but aren't
729 # supported on NaCl. 758 # supported on NaCl.
730 sources -= [ 759 sources -= [
731 "debug/stack_trace_posix.cc", 760 "debug/stack_trace_posix.cc",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 linux_configs = [ 821 linux_configs = [
793 "//build/config/linux:glib", 822 "//build/config/linux:glib",
794 ] 823 ]
795 if (toolkit_uses_gtk) { 824 if (toolkit_uses_gtk) {
796 linux_configs += [ "//build/config/linux:gtk" ] 825 linux_configs += [ "//build/config/linux:gtk" ]
797 } 826 }
798 827
799 configs += linux_configs 828 configs += linux_configs
800 all_dependent_configs = linux_configs 829 all_dependent_configs = linux_configs
801 830
802 if (!is_android) { 831 # These dependencies are not required on Android, and in the case
803 # These dependencies are not required on Android, and in the case 832 # of xdg_mime must be excluded due to licensing restrictions.
804 # of xdg_mime must be excluded due to licensing restrictions. 833 deps += [
805 deps += [ 834 "//base/third_party/symbolize",
806 "//base/third_party/symbolize", 835 "//base/third_party/xdg_mime",
807 "//base/third_party/xdg_mime", 836 "//base/third_party/xdg_user_dirs",
808 "//base/third_party/xdg_user_dirs", 837 ]
809 ]
810 }
811 } else { 838 } else {
812 # Non-Linux. 839 # Non-Linux.
813 sources -= [ 840 sources -= [
814 "nix/mime_util_xdg.cc", 841 "nix/mime_util_xdg.cc",
815 "nix/mime_util_xdg.h", 842 "nix/mime_util_xdg.h",
816 "nix/xdg_util.cc", 843 "nix/xdg_util.cc",
817 "nix/xdg_util.h", 844 "nix/xdg_util.h",
818 ] 845 ]
819 } 846 }
820 847
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 "android/java/src/org/chromium/base/PathUtils.java", 952 "android/java/src/org/chromium/base/PathUtils.java",
926 "android/java/src/org/chromium/base/PowerMonitor.java", 953 "android/java/src/org/chromium/base/PowerMonitor.java",
927 "android/java/src/org/chromium/base/SystemMessageHandler.java", 954 "android/java/src/org/chromium/base/SystemMessageHandler.java",
928 "android/java/src/org/chromium/base/SysUtils.java", 955 "android/java/src/org/chromium/base/SysUtils.java",
929 "android/java/src/org/chromium/base/ThreadUtils.java", 956 "android/java/src/org/chromium/base/ThreadUtils.java",
930 "android/java/src/org/chromium/base/TraceEvent.java", 957 "android/java/src/org/chromium/base/TraceEvent.java",
931 ] 958 ]
932 jni_package = "base" 959 jni_package = "base"
933 } 960 }
934 } 961 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | build/config/BUILDCONFIG.gn » ('j') | build/config/compiler/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698