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

Unified Diff: chrome/BUILD.gn

Issue 570203002: Make chrome_shell_apk build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-chrome-jamesr
Patch Set: Rebase 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
Index: chrome/BUILD.gn
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
index bb7a670fa60fbec45bd3e5522b24c83b5bb129b1..5b3c6d4ec618282ce659340a130a45b443aceccc 100644
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -8,6 +8,10 @@ import("//build/config/ui.gni")
import("//chrome/chrome_repack_locales.gni")
import("//chrome/version.gni")
+if (is_android) {
+ import("//build/config/android/rules.gni")
+}
+
if (!is_android) {
# TODO(GYP) for Windows need to the the reorder-imports step which probably
@@ -322,7 +326,7 @@ group("packed_resources") {
}
repack("packed_extra_resources") {
- visibility = [ ":*" ]
+ visibility = [ "./*" ]
sources = [
"$root_gen_dir/chrome/browser_resources.pak",
"$root_gen_dir/chrome/app/theme/chrome_unscaled_resources.pak",
@@ -522,3 +526,38 @@ group("strings") {
"//chrome/app/resources:locale_settings",
]
}
+
+if (is_android) {
+
+# GYP: //chrome/chrome_android.gypi:chrome_android_core
+static_library("chrome_android_core") {
+ deps = [
brettw 2014/10/09 17:05:31 Ordering should be sources, includes/libs, deps.
cjhopman 2014/10/10 01:10:09 Done.
+ "//chrome/browser",
+ "//chrome/browser/ui",
+ "//chrome/plugin",
+ "//chrome/renderer",
+ "//chrome/utility",
+ "//components/enhanced_bookmarks",
+ "//content/public/app:browser",
+ ]
+
+ include_dirs = [
+ android_ndk_include_dir,
+ ]
+
+ sources = [
+ "app/android/chrome_android_initializer.cc",
+ "app/android/chrome_android_initializer.h",
+ "app/android/chrome_main_delegate_android.cc",
+ "app/android/chrome_main_delegate_android.h",
+ "app/chrome_main_delegate.cc",
+ "app/chrome_main_delegate.h",
+ ]
+
+ libs = [
+ "android",
+ "jnigraphics",
+ ]
+}
+
+}

Powered by Google App Engine
This is Rietveld 408576698