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

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

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: . 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
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",
103 "mac/mac_init.mm",
104 "mojo/mojo_init.cc", 102 "mojo/mojo_init.cc",
105 "mojo/mojo_init.h", 103 "mojo/mojo_init.h",
106 ] 104 ]
107 105
108 if (is_android) { 106 if (is_android) {
109 sources += [ 107 sources += [
110 "android/app_jni_registrar.cc", 108 "android/app_jni_registrar.cc",
111 "android/app_jni_registrar.h", 109 "android/app_jni_registrar.h",
112 "android/child_process_service_impl.cc", 110 "android/child_process_service_impl.cc",
113 "android/child_process_service_impl.h", 111 "android/child_process_service_impl.h",
114 "android/content_jni_onload.cc", 112 "android/content_jni_onload.cc",
115 "android/content_main.cc", 113 "android/content_main.cc",
116 "android/content_main.h", 114 "android/content_main.h",
117 "android/library_loader_hooks.cc", 115 "android/library_loader_hooks.cc",
118 "android/library_loader_hooks.h", 116 "android/library_loader_hooks.h",
119 ] 117 ]
120 } else { 118 } else {
121 sources += [ "content_main.cc" ] 119 sources += [ "content_main.cc" ]
122 } 120 }
123 121
124 configs += extra_configs 122 configs += extra_configs
125 deps = content_app_deps + [ 123 deps = content_app_deps + [
126 ":$runner_target_name", 124 ":$runner_target_name",
127 "//ipc", 125 "//ipc",
126 "//services/service_manager/embedder",
128 ] 127 ]
129 forward_variables_from(invoker, 128 forward_variables_from(invoker,
130 [ 129 [
131 "defines", 130 "defines",
132 "visibility", 131 "visibility",
133 ]) 132 ])
134 } 133 }
135 } 134 }
136 135
137 group("content_app_browser_deps") { 136 group("content_app_browser_deps") {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 188 }
190 189
191 implement_content_app("child") { 190 implement_content_app("child") {
192 visibility = [ "//content/public/app:child" ] 191 visibility = [ "//content/public/app:child" ]
193 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] 192 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ]
194 deps = [ 193 deps = [
195 ":content_app_child_deps", 194 ":content_app_child_deps",
196 ] 195 ]
197 } 196 }
198 } 197 }
OLDNEW
« no previous file with comments | « content/DEPS ('k') | content/app/DEPS » ('j') | content/app/android/content_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698