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

Side by Side Diff: chrome/BUILD.gn

Issue 1884543004: Android: Avoid linking with --gc-sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | chrome/android/chrome_apk.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/locales.gni") 9 import("//build/config/locales.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 ] 980 ]
981 } 981 }
982 982
983 # GYP: //chrome/chrome.gyp:website_settings_action_java 983 # GYP: //chrome/chrome.gyp:website_settings_action_java
984 java_cpp_enum("website_settings_action_javagen") { 984 java_cpp_enum("website_settings_action_javagen") {
985 sources = [ 985 sources = [
986 "browser/ui/website_settings/website_settings.h", 986 "browser/ui/website_settings/website_settings.h",
987 ] 987 ]
988 } 988 }
989 989
990 # Some android targets still depend on --gc-sections to link.
991 # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
992 config("gc_sections") {
993 ldflags = [ "-Wl,--gc-sections" ]
994 }
995
996 # GYP: //chrome/chrome_android.gypi:chrome_android_core 990 # GYP: //chrome/chrome_android.gypi:chrome_android_core
997 source_set("chrome_android_core") { 991 source_set("chrome_android_core") {
998 sources = [ 992 sources = [
999 "app/android/chrome_android_initializer.cc", 993 "app/android/chrome_android_initializer.cc",
1000 "app/android/chrome_android_initializer.h", 994 "app/android/chrome_android_initializer.h",
1001 "app/android/chrome_jni_onload.cc", 995 "app/android/chrome_jni_onload.cc",
1002 "app/android/chrome_jni_onload.h", 996 "app/android/chrome_jni_onload.h",
1003 "app/android/chrome_main_delegate_android.cc", 997 "app/android/chrome_main_delegate_android.cc",
1004 "app/android/chrome_main_delegate_android.h", 998 "app/android/chrome_main_delegate_android.h",
1005 "app/chrome_main_delegate.cc", 999 "app/chrome_main_delegate.cc",
1006 "app/chrome_main_delegate.h", 1000 "app/chrome_main_delegate.h",
1007 ] 1001 ]
1008 public_configs = [ ":gc_sections" ]
1009 1002
1010 include_dirs = [ android_ndk_include_dir ] 1003 include_dirs = [ android_ndk_include_dir ]
1011 1004
1012 libs = [ 1005 libs = [
1013 "android", 1006 "android",
1014 "jnigraphics", 1007 "jnigraphics",
1015 ] 1008 ]
1016 1009
1017 deps = [ 1010 deps = [
1018 "//chrome/browser", 1011 "//chrome/browser",
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1096 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1104 "//chrome/tools/build/linux/chrome-wrapper", 1097 "//chrome/tools/build/linux/chrome-wrapper",
1105 "//third_party/xdg-utils/scripts/xdg-mime", 1098 "//third_party/xdg-utils/scripts/xdg-mime",
1106 "//third_party/xdg-utils/scripts/xdg-settings", 1099 "//third_party/xdg-utils/scripts/xdg-settings",
1107 ] 1100 ]
1108 outputs = [ 1101 outputs = [
1109 "$root_out_dir/{{source_file_part}}", 1102 "$root_out_dir/{{source_file_part}}",
1110 ] 1103 ]
1111 } 1104 }
1112 } 1105 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/chrome_apk.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698