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

Side by Side Diff: chrome/browser/ui/BUILD.gn

Issue 1371863002: Android: Do not build files not needed on the platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('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/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 8
9 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("../../chrome_browser_ui.gypi") ], 10 [ rebase_path("../../chrome_browser_ui.gypi") ],
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ".", 175 ".",
176 "//chrome") 176 "//chrome")
177 } 177 }
178 178
179 if (is_chromeos) { 179 if (is_chromeos) {
180 sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources, 180 sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources,
181 ".", 181 ".",
182 "//chrome") 182 "//chrome")
183 deps += [ "//chrome/browser/chromeos" ] 183 deps += [ "//chrome/browser/chromeos" ]
184 } else { 184 } else {
185 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources,
186 ".",
187 "//chrome")
188 defines += [ "FRAME_AVATAR_BUTTON=1" ] 185 defines += [ "FRAME_AVATAR_BUTTON=1" ]
189 } 186 }
190 if (use_cups) { 187 if (use_cups) {
191 configs += [ "//printing:cups" ] 188 configs += [ "//printing:cups" ]
192 } 189 }
193 if (use_ash) { 190 if (use_ash) {
194 sources += 191 sources +=
195 rebase_path(gypi_values.chrome_browser_ui_ash_sources, ".", "//chrome") 192 rebase_path(gypi_values.chrome_browser_ui_ash_sources, ".", "//chrome")
196 deps += [ 193 deps += [
197 "//ash", 194 "//ash",
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 "website_settings/mock_permission_bubble_request.h", 516 "website_settings/mock_permission_bubble_request.h",
520 ] 517 ]
521 518
522 if (toolkit_views) { 519 if (toolkit_views) {
523 sources += [ "views/find_bar_host_unittest_util_views.cc" ] 520 sources += [ "views/find_bar_host_unittest_util_views.cc" ]
524 if (!is_mac) { 521 if (!is_mac) {
525 sources += [ "views/toolbar/browser_action_test_util_views.cc" ] 522 sources += [ "views/toolbar/browser_action_test_util_views.cc" ]
526 } 523 }
527 } 524 }
528 525
526 if (is_android) {
527 sources -= [
528 "exclusive_access/fullscreen_controller_state_test.cc",
529 "exclusive_access/fullscreen_controller_state_test.h",
530 "exclusive_access/fullscreen_controller_state_tests.h",
531 "exclusive_access/fullscreen_controller_test.cc",
532 "exclusive_access/fullscreen_controller_test.h",
533 ]
534 }
535
529 public_deps = [ 536 public_deps = [
530 ":ui", 537 ":ui",
531 ] 538 ]
532 deps = [ 539 deps = [
533 "//chrome/app/theme:theme_resources", 540 "//chrome/app/theme:theme_resources",
534 "//chrome/browser", 541 "//chrome/browser",
535 "//content/public/browser", 542 "//content/public/browser",
536 "//content/public/common", 543 "//content/public/common",
537 "//content/test:test_support", 544 "//content/test:test_support",
538 "//net:test_support", 545 "//net:test_support",
539 "//skia", 546 "//skia",
540 "//testing/gtest", 547 "//testing/gtest",
541 "//ui/base", 548 "//ui/base",
542 ] 549 ]
543 } 550 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698