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

Unified Diff: chrome/android/BUILD.gn

Issue 666813002: GN: Fix Android component build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-clank
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | chrome/browser/BUILD.gn » ('j') | gpu/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/BUILD.gn
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn
index e852cfeadaf438b0e30521f0d2e3850c5dfc8f63..e38af50a08dd3ab1f2d11edc6156d09568ef9bfc 100644
--- a/chrome/android/BUILD.gn
+++ b/chrome/android/BUILD.gn
@@ -170,6 +170,8 @@ static_library("chrome_shell_base") {
"//skia",
]
+ ldflags = [ "-Wl,--gc-sections" ]
Lei Zhang 2014/10/24 21:57:04 Should this reference http://crbug.com/159847 ?
cjhopman 2014/10/27 07:32:07 Yes, it should. Done.
+
# TODO(GYP):
#[ 'order_profiling!=0', {
#'conditions': [
@@ -180,24 +182,18 @@ static_library("chrome_shell_base") {
#}],
}
-# TODO(GYP, cjhopman): make chrome_shell_base actually link and then move it to
-# deps. Also, actually compile the main delegates at that point.
# GYP: //chrome/chrome_shell.gypi:libchromeshell
shared_library("chrome_shell") {
testonly = true
sources = [
# This file must always be included in the shared_library step to ensure
# JNI_OnLoad is exported.
-#"//chrome/app/android/chrome_jni_onload.cc",
-#"shell/chrome_main_delegate_chrome_shell_android.cc",
-#"shell/chrome_main_delegate_chrome_shell_android.h",
+ "//chrome/app/android/chrome_jni_onload.cc",
+ "shell/chrome_main_delegate_chrome_shell_android.cc",
+ "shell/chrome_main_delegate_chrome_shell_android.h",
]
deps = [
-#":chrome_shell_base",
- ]
- deps = [ ":chrome_java" ]
- datadeps = [
- ":chrome_shell_base"
+ ":chrome_shell_base",
]
}
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | chrome/browser/BUILD.gn » ('j') | gpu/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698