| 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 # Used internally to hold the sources shared between the various targets below. | 5 # Used internally to hold the sources shared between the various targets below. |
| 6 source_set("app_sources") { | 6 source_set("app_shared_sources") { |
| 7 # content_main_delegate.cc has ifdefs that depend on whether the file is |
| 8 # being used in the context of the browser or child process. So that file has |
| 9 # to be included in the per-type targets below rather than in this shared one. |
| 7 sources = [ | 10 sources = [ |
| 8 "android_library_loader_hooks.h", | 11 "android_library_loader_hooks.h", |
| 9 "content_main.h", | 12 "content_main.h", |
| 10 "content_main_delegate.cc", | |
| 11 "content_main_delegate.h", | |
| 12 "content_main_runner.h", | 13 "content_main_runner.h", |
| 13 "startup_helper_win.h", | 14 "startup_helper_win.h", |
| 14 ] | 15 ] |
| 15 | 16 |
| 16 configs += [ "//content:content_implementation" ] | 17 configs += [ "//content:content_implementation" ] |
| 17 | 18 |
| 18 deps = [ | 19 deps = [ |
| 19 "//base", | 20 "//base", |
| 20 "//base:i18n", | 21 "//base:i18n", |
| 21 "//content:export", | 22 "//content:export", |
| 23 "//content/common", |
| 22 "//content/public/plugin", | 24 "//content/public/plugin", |
| 23 "//content/public/renderer", | 25 "//content/public/renderer", |
| 24 "//content/public/utility", | 26 "//content/public/utility", |
| 25 ] | 27 ] |
| 26 } | 28 } |
| 27 | 29 |
| 28 # The structure of this is like the private content/app implementation. | 30 # The structure of this is like the private content/app implementation. |
| 29 if (is_component_build) { | 31 if (is_component_build) { |
| 30 | 32 |
| 31 group("app") { | 33 source_set("app") { |
| 34 sources = [ |
| 35 "content_main_delegate.cc", |
| 36 "content_main_delegate.h", |
| 37 ] |
| 38 |
| 32 deps = [ | 39 deps = [ |
| 33 ":app_sources", | 40 ":app_shared_sources", |
| 34 "//content/app", | 41 "//content/app", |
| 42 "//content/common", |
| 43 "//content/public/browser", |
| 35 ] | 44 ] |
| 36 } | 45 } |
| 37 group("browser") { | 46 group("browser") { |
| 38 deps = [ "//content" ] | 47 deps = [ "//content" ] |
| 39 } | 48 } |
| 40 group("child") { | 49 group("child") { |
| 41 deps = [ "//content" ] | 50 deps = [ "//content" ] |
| 42 } | 51 } |
| 43 group("both") { | 52 group("both") { |
| 44 deps = [ "//content" ] | 53 deps = [ "//content" ] |
| 45 } | 54 } |
| 46 | 55 |
| 47 } else { | 56 } else { |
| 48 | 57 |
| 49 group("browser") { | 58 source_set("browser") { |
| 59 # See comment in "child" target. |
| 60 check_includes = false |
| 61 sources = [ |
| 62 "content_main_delegate.cc", |
| 63 "content_main_delegate.h", |
| 64 ] |
| 50 deps = [ | 65 deps = [ |
| 51 ":app_sources", | 66 ":app_shared_sources", |
| 52 "//content/app:browser" | 67 "//content/app:browser", |
| 68 "//content/public/browser", |
| 69 "//content/public/common", |
| 53 ] | 70 ] |
| 54 } | 71 } |
| 55 group("child") { | 72 source_set("child") { |
| 73 # content_main_delegate.cc conditionally includes content_browser_client.h |
| 74 # from //content/public/browser when it's not the child build. However, |
| 75 # the header checker doesn't know this doesn't apply and throws an error. |
| 76 # |
| 77 # TODO(brettw) either teach the header checker to understand simple |
| 78 # ifdefs or split the file apart so we can enable header checking here. |
| 79 # Furthermore, since this file exists in more than one target, they all |
| 80 # have to opt-out of header checking (a file is checked once for all |
| 81 # targets using a source file). |
| 82 check_includes = false |
| 83 |
| 84 sources = [ |
| 85 "content_main_delegate.cc", |
| 86 "content_main_delegate.h", |
| 87 ] |
| 56 deps = [ | 88 deps = [ |
| 57 ":app_sources", | 89 ":app_shared_sources", |
| 58 "//content/app:child" | 90 "//content/app:child", |
| 91 "//content/public/common", |
| 59 ] | 92 ] |
| 60 } | 93 } |
| 61 group("both") { | 94 source_set("both") { |
| 95 # See comment in "child" target. |
| 96 check_includes = false |
| 97 sources = [ |
| 98 "content_main_delegate.cc", |
| 99 "content_main_delegate.h", |
| 100 ] |
| 62 deps = [ | 101 deps = [ |
| 63 ":app_sources", | 102 ":app_shared_sources", |
| 64 "//content/app:both" | 103 "//content/app:both", |
| 104 "//content/public/browser", |
| 105 "//content/public/common", |
| 65 ] | 106 ] |
| 66 } | 107 } |
| 67 | 108 |
| 68 } | 109 } |
| OLD | NEW |