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

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

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order Created 3 years, 9 months 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/DEPS ('k') | content/app/DEPS » ('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 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//ppapi/features/features.gni") 7 import("//ppapi/features/features.gni")
8 8
9 # Implements "content_main" given the defines and visibility. On Windows this 9 # Implements "content_main" given the defines and visibility. On Windows this
10 # is compiled with a different define for browser and child, but all code needs 10 # is compiled with a different define for browser and child, but all code needs
11 # to be shared. 11 # to be shared.
12 template("implement_content_app") { 12 template("implement_content_app") {
13 runner_target_name = "content_main_runner_" + target_name 13 runner_target_name = "content_main_runner_" + target_name
14 main_target_name = target_name 14 main_target_name = target_name
15 15
16 extra_configs = [ 16 extra_configs = [
17 "//build/config/compiler:wexit_time_destructors", 17 "//build/config/compiler:wexit_time_destructors",
18 "//content:content_implementation", 18 "//content:content_implementation",
19 "//v8:external_startup_data", 19 "//v8:external_startup_data",
20 ] 20 ]
21 21
22 content_app_deps = [ 22 content_app_deps = [
23 "//base", 23 "//base",
24 "//base:i18n", 24 "//base:i18n",
25 "//components/tracing:startup_tracing", 25 "//components/tracing:startup_tracing",
26 "//content:export", 26 "//content:export",
27 "//content:sandbox_helper_win", 27 "//content:sandbox_helper_win",
28 "//content/public/common:common_sources", 28 "//content/public/common:common_sources",
29 "//crypto", 29 "//crypto",
30 "//services/service_manager/public/cpp", 30 "//services/service_manager/embedder",
31 "//services/service_manager/public/interfaces", 31 "//services/service_manager/public/interfaces",
32 "//mojo/edk/system", 32 "//mojo/edk/system",
33 "//ppapi/features", 33 "//ppapi/features",
34 "//ui/base", 34 "//ui/base",
35 "//ui/gfx", 35 "//ui/gfx",
36 "//ui/gfx/geometry", 36 "//ui/gfx/geometry",
37 ] 37 ]
38 38
39 if (is_win) { 39 if (is_win) {
40 content_app_deps += [ "//sandbox" ] 40 content_app_deps += [ "//sandbox" ]
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 deps = content_app_deps 92 deps = content_app_deps
93 if (defined(invoker.deps)) { 93 if (defined(invoker.deps)) {
94 deps += invoker.deps 94 deps += invoker.deps
95 } 95 }
96 96
97 forward_variables_from(invoker, [ "defines" ]) 97 forward_variables_from(invoker, [ "defines" ])
98 } 98 }
99 99
100 source_set(main_target_name) { 100 source_set(main_target_name) {
101 sources = [ 101 sources = [
102 "mac/mac_init.h", 102 "content_service_manager_main_delegate.cc",
103 "mac/mac_init.mm", 103 "content_service_manager_main_delegate.h",
104 "mojo/mojo_init.cc", 104 "mojo/mojo_init.cc",
105 "mojo/mojo_init.h", 105 "mojo/mojo_init.h",
106 ] 106 ]
107 107
108 if (is_android) { 108 if (is_android) {
109 sources += [ 109 sources += [
110 "android/app_jni_registrar.cc", 110 "android/app_jni_registrar.cc",
111 "android/app_jni_registrar.h", 111 "android/app_jni_registrar.h",
112 "android/child_process_service_impl.cc", 112 "android/child_process_service_impl.cc",
113 "android/child_process_service_impl.h", 113 "android/child_process_service_impl.h",
114 "android/content_jni_onload.cc", 114 "android/content_jni_onload.cc",
115 "android/content_main.cc", 115 "android/content_main.cc",
116 "android/content_main.h", 116 "android/content_main.h",
117 "android/library_loader_hooks.cc", 117 "android/library_loader_hooks.cc",
118 "android/library_loader_hooks.h", 118 "android/library_loader_hooks.h",
119 ] 119 ]
120 } else { 120 } else {
121 sources += [ "content_main.cc" ] 121 sources += [ "content_main.cc" ]
122 } 122 }
123 123
124 configs += extra_configs 124 configs += extra_configs
125 deps = content_app_deps + [ 125 deps = content_app_deps + [
126 ":$runner_target_name", 126 ":$runner_target_name",
127 "//ipc", 127 "//ipc",
128 "//services/service_manager/embedder",
128 ] 129 ]
129 forward_variables_from(invoker, 130 forward_variables_from(invoker,
130 [ 131 [
131 "defines", 132 "defines",
132 "visibility", 133 "visibility",
133 ]) 134 ])
134 } 135 }
135 } 136 }
136 137
137 group("content_app_browser_deps") { 138 group("content_app_browser_deps") {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 190 }
190 191
191 implement_content_app("child") { 192 implement_content_app("child") {
192 visibility = [ "//content/public/app:child" ] 193 visibility = [ "//content/public/app:child" ]
193 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] 194 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ]
194 deps = [ 195 deps = [
195 ":content_app_child_deps", 196 ":content_app_child_deps",
196 ] 197 ]
197 } 198 }
198 } 199 }
OLDNEW
« no previous file with comments | « content/DEPS ('k') | content/app/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698