| 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 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/embedder", | 30 "//services/service_manager/public/cpp", |
| 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 Loading... |
| 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 "content_service_manager_main_delegate.cc", | 102 "mac/mac_init.h", |
| 103 "content_service_manager_main_delegate.h", | 103 "mac/mac_init.mm", |
| 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", | |
| 129 ] | 128 ] |
| 130 forward_variables_from(invoker, | 129 forward_variables_from(invoker, |
| 131 [ | 130 [ |
| 132 "defines", | 131 "defines", |
| 133 "visibility", | 132 "visibility", |
| 134 ]) | 133 ]) |
| 135 } | 134 } |
| 136 } | 135 } |
| 137 | 136 |
| 138 group("content_app_browser_deps") { | 137 group("content_app_browser_deps") { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 } | 189 } |
| 191 | 190 |
| 192 implement_content_app("child") { | 191 implement_content_app("child") { |
| 193 visibility = [ "//content/public/app:child" ] | 192 visibility = [ "//content/public/app:child" ] |
| 194 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] | 193 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] |
| 195 deps = [ | 194 deps = [ |
| 196 ":content_app_child_deps", | 195 ":content_app_child_deps", |
| 197 ] | 196 ] |
| 198 } | 197 } |
| 199 } | 198 } |
| OLD | NEW |