| 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 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 97 } |
| 98 | 98 |
| 99 source_set(main_target_name) { | 99 source_set(main_target_name) { |
| 100 sources = [ | 100 sources = [ |
| 101 "content_service_manager_main_delegate.cc", | 101 "content_service_manager_main_delegate.cc", |
| 102 "content_service_manager_main_delegate.h", | 102 "content_service_manager_main_delegate.h", |
| 103 "mojo/mojo_init.cc", | 103 "mojo/mojo_init.cc", |
| 104 "mojo/mojo_init.h", | 104 "mojo/mojo_init.h", |
| 105 ] | 105 ] |
| 106 | 106 |
| 107 configs += extra_configs |
| 108 deps = content_app_deps + [ |
| 109 ":$runner_target_name", |
| 110 "//ipc", |
| 111 "//services/service_manager/embedder", |
| 112 ] |
| 113 forward_variables_from(invoker, |
| 114 [ |
| 115 "defines", |
| 116 "visibility", |
| 117 ]) |
| 118 |
| 107 if (is_android) { | 119 if (is_android) { |
| 108 sources += [ | 120 sources += [ |
| 109 "android/app_jni_registrar.cc", | 121 "android/app_jni_registrar.cc", |
| 110 "android/app_jni_registrar.h", | 122 "android/app_jni_registrar.h", |
| 111 "android/child_process_service_impl.cc", | 123 "android/child_process_service_impl.cc", |
| 112 "android/child_process_service_impl.h", | 124 "android/child_process_service_impl.h", |
| 113 "android/content_jni_onload.cc", | 125 "android/content_jni_onload.cc", |
| 114 "android/content_main.cc", | 126 "android/content_main.cc", |
| 115 "android/content_main.h", | 127 "android/content_main.h", |
| 116 "android/library_loader_hooks.cc", | 128 "android/library_loader_hooks.cc", |
| 117 "android/library_loader_hooks.h", | 129 "android/library_loader_hooks.h", |
| 118 ] | 130 ] |
| 131 deps += [ "//mojo/android:libsystem_java" ] |
| 119 } else { | 132 } else { |
| 120 sources += [ "content_main.cc" ] | 133 sources += [ "content_main.cc" ] |
| 121 } | 134 } |
| 122 | |
| 123 configs += extra_configs | |
| 124 deps = content_app_deps + [ | |
| 125 ":$runner_target_name", | |
| 126 "//ipc", | |
| 127 "//services/service_manager/embedder", | |
| 128 ] | |
| 129 forward_variables_from(invoker, | |
| 130 [ | |
| 131 "defines", | |
| 132 "visibility", | |
| 133 ]) | |
| 134 } | 135 } |
| 135 } | 136 } |
| 136 | 137 |
| 137 group("content_app_browser_deps") { | 138 group("content_app_browser_deps") { |
| 138 deps = [ | 139 deps = [ |
| 139 "//content/browser", | 140 "//content/browser", |
| 140 "//content/public/browser:browser_sources", | 141 "//content/public/browser:browser_sources", |
| 141 ] | 142 ] |
| 142 } | 143 } |
| 143 | 144 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |