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

Side by Side Diff: content/public/app/BUILD.gn

Issue 2567113002: Adds ability to specify how aura::Env is created in content (Closed)
Patch Set: more ifdef Created 4 years 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 | « content/browser/browser_main_loop.cc ('k') | content/public/app/content_main.h » ('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 # 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:
11 # foo -> 11 # foo ->
12 # //content/public/app:child (group) -> 12 # //content/public/app:child (group) ->
13 # //content/public/app:child_sources (source set) -> 13 # //content/public/app:child_sources (source set) ->
14 # //content/app:child (source set) 14 # //content/app:child (source set)
15 15
16 # In component mode, content is linked as one big turd so there is only one 16 # In component mode, content is linked as one big turd so there is only one
17 # app target containing sources ("both") and the other ones forward to it: 17 # app target containing sources ("both") and the other ones forward to it:
18 # foo -> 18 # foo ->
19 # //content/public/app:child (group; "browser" and "both" ones look the same) 19 # //content/public/app:child (group; "browser" and "both" ones look the same)
20 # //content (shared library) -> 20 # //content (shared library) ->
21 # //content/public/app:both_sources (source set) 21 # //content/public/app:both_sources (source set)
22 22
23 import("//build/config/chrome_build.gni") 23 import("//build/config/chrome_build.gni")
24 import("//build/config/ui.gni")
24 import("//services/service_manager/public/service_manifest.gni") 25 import("//services/service_manager/public/service_manifest.gni")
25 26
26 public_app_shared_sources = [ 27 public_app_shared_sources = [
27 "content_jni_onload.h", 28 "content_jni_onload.h",
28 "content_main.h", 29 "content_main.h",
29 "content_main_delegate.cc", 30 "content_main_delegate.cc",
30 "content_main_delegate.h", 31 "content_main_delegate.h",
31 "content_main_runner.h", 32 "content_main_runner.h",
32 "sandbox_helper_win.h", 33 "sandbox_helper_win.h",
33 ] 34 ]
34 35
35 public_app_shared_deps = [ 36 public_app_shared_deps = [
36 "//base", 37 "//base",
37 "//base:i18n", 38 "//base:i18n",
38 "//content:export", 39 "//content:export",
39 "//content/public/common:common_sources", 40 "//content/public/common:common_sources",
40 "//content/public/gpu:gpu_sources", 41 "//content/public/gpu:gpu_sources",
41 "//content/public/renderer:renderer_sources", 42 "//content/public/renderer:renderer_sources",
42 "//content/public/utility:utility_sources", 43 "//content/public/utility:utility_sources",
43 ] 44 ]
44 45
46 if (use_aura) {
47 public_app_shared_deps += [ "//ui/aura" ]
48 }
49
45 if (is_component_build) { 50 if (is_component_build) {
46 source_set("both_sources") { 51 source_set("both_sources") {
47 # Only the main content shared library can pull this in. 52 # Only the main content shared library can pull this in.
48 visibility = [ "//content:content" ] 53 visibility = [ "//content:content" ]
49 54
50 sources = public_app_shared_sources 55 sources = public_app_shared_sources
51 56
52 configs += [ "//content:content_implementation" ] 57 configs += [ "//content:content_implementation" ]
53 58
54 deps = public_app_shared_deps + [ 59 deps = public_app_shared_deps + [
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 198
194 service_manifest("renderer_manifest") { 199 service_manifest("renderer_manifest") {
195 name = "content_renderer" 200 name = "content_renderer"
196 source = "mojo/content_renderer_manifest.json" 201 source = "mojo/content_renderer_manifest.json"
197 } 202 }
198 203
199 service_manifest("utility_manifest") { 204 service_manifest("utility_manifest") {
200 name = "content_utility" 205 name = "content_utility"
201 source = "mojo/content_utility_manifest.json" 206 source = "mojo/content_utility_manifest.json"
202 } 207 }
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/public/app/content_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698