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

Unified Diff: chrome/browser/ui/BUILD.gn

Issue 1400243002: Aura on Android: Making it possible to generate GN build configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming chrome_browser_ui_android_sources to chrome_browser_ui_android_non_aura_sources. Created 5 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 | « no previous file | chrome/browser/ui/views/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/BUILD.gn
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
index 8811af527ade69a528266e4be485cedc856e07a2..e31cd8862b4a37a5e39dbac8c8d8d9c26d70009e 100644
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -124,7 +124,7 @@ source_set("ui") {
deps += [ "//net" ]
}
- if (!is_android && !is_ios) {
+ if ((!is_android || use_aura) && !is_ios) {
sources += rebase_path(gypi_values.chrome_browser_ui_non_mobile_sources,
".",
"//chrome")
@@ -139,6 +139,10 @@ source_set("ui") {
"//device/bluetooth",
"//third_party/libusb",
]
+
+ if (is_android) {
+ deps -= [ "//third_party/libusb" ]
+ }
}
if (enable_basic_printing || enable_print_preview) {
@@ -292,17 +296,21 @@ source_set("ui") {
deps += [
"//chrome/browser:jni_headers",
"//crypto:platform",
- "//components/web_contents_delegate_android",
- ]
- deps -= [
- "//chrome/browser/ui/views",
- "//ui/events",
]
- sources += rebase_path(gypi_values.chrome_browser_ui_android_sources,
- ".",
- "//chrome")
defines += [ "CHROME_BUILD_ID=" + android_chrome_build_id ]
+
+ if (!use_aura) {
+ sources +=
+ rebase_path(gypi_values.chrome_browser_ui_android_non_aura_sources,
+ ".",
+ "//chrome")
+ deps += [ "//components/web_contents_delegate_android" ]
+ deps -= [
+ "//chrome/browser/ui/views",
+ "//ui/events",
+ ]
+ }
}
if (is_mac) {
@@ -423,7 +431,7 @@ source_set("ui") {
rebase_path(gypi_values.chrome_browser_ui_autofill_dialog_sources,
".",
"//chrome")
- if (!is_android && !is_ios) {
+ if ((!is_android || use_aura) && !is_ios) {
sources += rebase_path(
gypi_values.chrome_browser_ui_autofill_dialog_non_mobile_sources,
".",
« no previous file with comments | « no previous file | chrome/browser/ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698