| 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 # App different than the regular content subcomponents (see comments in | 5 # App different than the regular content subcomponents (see comments in |
| 6 # //content/BUILD.gn) because it has to support the browser/child process split | 6 # //content/BUILD.gn) because it has to support the browser/child process split |
| 7 # (the "both" target include both browser and child process files and is used | 7 # (the "both" target include both browser and child process files and is used |
| 8 # for testing). | 8 # for testing). |
| 9 # | 9 # |
| 10 # In non-component mode, browser, child, and both all follow the same structure: | 10 # In non-component mode, browser, child, and both all follow the same structure: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 visibility = [ "//content:content" ] | 48 visibility = [ "//content:content" ] |
| 49 | 49 |
| 50 sources = public_app_shared_sources | 50 sources = public_app_shared_sources |
| 51 | 51 |
| 52 configs += [ "//content:content_implementation" ] | 52 configs += [ "//content:content_implementation" ] |
| 53 | 53 |
| 54 deps = public_app_shared_deps + [ | 54 deps = public_app_shared_deps + [ |
| 55 "//content/app:both", | 55 "//content/app:both", |
| 56 "//content/public/browser:browser_sources", | 56 "//content/public/browser:browser_sources", |
| 57 ] | 57 ] |
| 58 |
| 59 allow_circular_includes_from = [ |
| 60 # This target is a pair with the non-public version. They always go |
| 61 # together and include headers from each other. |
| 62 "//content/app:both", |
| 63 ] |
| 58 } | 64 } |
| 59 | 65 |
| 60 # These all just forward to content, which in turn depends on "both_sources". | 66 # These all just forward to content, which in turn depends on "both_sources". |
| 61 group("browser") { | 67 group("browser") { |
| 62 public_deps = [ | 68 public_deps = [ |
| 63 "//content", | 69 "//content", |
| 64 ] | 70 ] |
| 65 } | 71 } |
| 66 group("child") { | 72 group("child") { |
| 67 public_deps = [ | 73 public_deps = [ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 88 source_set("both") { | 94 source_set("both") { |
| 89 check_includes = false # See comment above. | 95 check_includes = false # See comment above. |
| 90 | 96 |
| 91 sources = public_app_shared_sources | 97 sources = public_app_shared_sources |
| 92 configs += [ "//content:content_implementation" ] | 98 configs += [ "//content:content_implementation" ] |
| 93 deps = public_app_shared_deps + [ | 99 deps = public_app_shared_deps + [ |
| 94 "//content/app:both", | 100 "//content/app:both", |
| 95 "//content/public/browser", | 101 "//content/public/browser", |
| 96 "//content/public/common", | 102 "//content/public/common", |
| 97 ] | 103 ] |
| 104 |
| 105 allow_circular_includes_from = [ |
| 106 # This target is a pair with the non-public version. They always go |
| 107 # together and include headers from each other. |
| 108 "//content/app:both", |
| 109 ] |
| 98 } | 110 } |
| 99 | 111 |
| 100 if (is_multi_dll_chrome) { | 112 if (is_multi_dll_chrome) { |
| 101 source_set("browser") { | 113 source_set("browser") { |
| 102 check_includes = false # See comment above. | 114 check_includes = false # See comment above. |
| 103 | 115 |
| 104 sources = public_app_shared_sources | 116 sources = public_app_shared_sources |
| 105 | 117 |
| 106 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] | 118 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] |
| 107 configs += [ "//content:content_implementation" ] | 119 configs += [ "//content:content_implementation" ] |
| 108 | 120 |
| 109 deps = public_app_shared_deps + [ | 121 deps = public_app_shared_deps + [ |
| 110 "//content/app:browser", | 122 "//content/app:browser", |
| 111 "//content/public/browser", | 123 "//content/public/browser", |
| 112 "//content/public/common", | 124 "//content/public/common", |
| 113 ] | 125 ] |
| 126 |
| 127 allow_circular_includes_from = [ |
| 128 # This target is a pair with the non-public version. They always go |
| 129 # together and include headers from each other. |
| 130 "//content/app:browser", |
| 131 ] |
| 114 } | 132 } |
| 115 | 133 |
| 116 source_set("child") { | 134 source_set("child") { |
| 117 check_includes = false # See comment above. | 135 check_includes = false # See comment above. |
| 118 | 136 |
| 119 sources = public_app_shared_sources | 137 sources = public_app_shared_sources |
| 120 | 138 |
| 121 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] | 139 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] |
| 122 configs += [ "//content:content_implementation" ] | 140 configs += [ "//content:content_implementation" ] |
| 123 | 141 |
| 124 deps = public_app_shared_deps + [ | 142 deps = public_app_shared_deps + [ |
| 125 "//content/app:child", | 143 "//content/app:child", |
| 126 "//content/public/common", | 144 "//content/public/common", |
| 127 ] | 145 ] |
| 146 |
| 147 allow_circular_includes_from = [ |
| 148 # This target is a pair with the non-public version. They always go |
| 149 # together and include headers from each other. |
| 150 "//content/app:child", |
| 151 ] |
| 128 } | 152 } |
| 129 } else { | 153 } else { |
| 130 # When the multi-DLL build is disabled, there is only one type of the | 154 # When the multi-DLL build is disabled, there is only one type of the |
| 131 # "app" target, and "browser" and "child" are the same as "both". | 155 # "app" target, and "browser" and "child" are the same as "both". |
| 132 group("browser") { | 156 group("browser") { |
| 133 deps = [ | 157 deps = [ |
| 134 ":both", | 158 ":both", |
| 135 ] | 159 ] |
| 136 } | 160 } |
| 137 group("child") { | 161 group("child") { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 166 type = "exe" | 190 type = "exe" |
| 167 name = "content_renderer" | 191 name = "content_renderer" |
| 168 source = "mojo/content_renderer_manifest.json" | 192 source = "mojo/content_renderer_manifest.json" |
| 169 } | 193 } |
| 170 | 194 |
| 171 service_manifest("utility_manifest") { | 195 service_manifest("utility_manifest") { |
| 172 type = "exe" | 196 type = "exe" |
| 173 name = "content_utility" | 197 name = "content_utility" |
| 174 source = "mojo/content_utility_manifest.json" | 198 source = "mojo/content_utility_manifest.json" |
| 175 } | 199 } |
| OLD | NEW |