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