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 3 # found in the LICENSE file. 4 5 import("//content/browser/browser.gni") 6 import("//build/config/ui.gni") 7 8 # See //content/BUILD.gn for how this works. 9 group("browser") { 10 if (is_component_build) { 11 public_deps = [ "//content" ] 12 } else { 13 public_deps = [ ":browser_sources" ] 14 } 15 } 16 17 source_set("browser_sources") { 18 visibility = [ "//content/*" ] 19 20 if (is_ios) { 21 # iOS doesn't get the normal file list and only takes these whitelisted 22 # files. 23 sources = [ 24 "browser_main_parts.cc", 25 "content_browser_client.cc", 26 "favicon_status.cc", 27 "navigation_details.cc", 28 "notification_registrar.cc", 29 "page_navigator.cc", 30 "web_ui_controller.cc", 31 ] 32 } else { 33 sources = rebase_path(content_browser_gypi_values.public_browser_sources, 34 ".", "//content") 35 } 36 37 if (use_aura) { 38 sources -= [ "context_factory.h" ] 39 } 40 41 configs += [ "//content:content_implementation" ] 42 43 public_deps = [ 44 # We expose skia headers in the public API. 45 "//skia", 46 ] 47 deps = [ 48 "//content/browser", 49 "//content/public/common:common_sources", 50 "//net", 51 "//ui/accessibility", 52 "//ui/base", 53 "//ui/events", 54 ] 55 56 allow_circular_includes_from = [ 57 # This target is a pair with content/browser. They always go together and 58 # include headers from each other. 59 "//content/browser", 60 ] 61 } 62