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 | 7 |
8 # Implements "content_main" given the defines and visibility. On Windows this | 8 # Implements "content_main" given the defines and visibility. On Windows this |
9 # is compiled with a different define for browser and child, but all code needs | 9 # is compiled with a different define for browser and child, but all code needs |
10 # to be shared. | 10 # to be shared. |
11 template("implement_content_app") { | 11 template("implement_content_app") { |
12 runner_target_name = "content_main_runner_" + target_name | 12 runner_target_name = "content_main_runner_" + target_name |
13 main_target_name = target_name | 13 main_target_name = target_name |
14 | 14 |
15 extra_configs = [ | 15 extra_configs = [ |
16 "//build/config/compiler:wexit_time_destructors", | 16 "//build/config/compiler:wexit_time_destructors", |
17 "//content:content_implementation", | 17 "//content:content_implementation", |
18 "//content/public/common:mojo_shell_client", | |
19 "//v8:external_startup_data", | 18 "//v8:external_startup_data", |
20 ] | 19 ] |
21 | 20 |
22 content_app_deps = [ | 21 content_app_deps = [ |
23 "//base", | 22 "//base", |
24 "//base:i18n", | 23 "//base:i18n", |
25 "//components/tracing:startup_tracing", | 24 "//components/tracing:startup_tracing", |
26 "//content:export", | 25 "//content:export", |
27 "//content:sandbox_helper_win", | 26 "//content:sandbox_helper_win", |
28 "//content/public/common:common_sources", | 27 "//content/public/common:common_sources", |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 implement_content_app("browser") { | 158 implement_content_app("browser") { |
160 visibility = [ "//content/public/app:browser" ] | 159 visibility = [ "//content/public/app:browser" ] |
161 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] | 160 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] |
162 } | 161 } |
163 | 162 |
164 implement_content_app("child") { | 163 implement_content_app("child") { |
165 visibility = [ "//content/public/app:child" ] | 164 visibility = [ "//content/public/app:child" ] |
166 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] | 165 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] |
167 } | 166 } |
168 } | 167 } |
OLD | NEW |