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 source_set("app") { | 5 # Used internally to hold the sources shared between the various targets below. |
| 6 source_set("app_sources") { |
6 sources = [ | 7 sources = [ |
7 "android_library_loader_hooks.h", | 8 "android_library_loader_hooks.h", |
8 "content_main.h", | 9 "content_main.h", |
9 "content_main_delegate.cc", | 10 "content_main_delegate.cc", |
10 "content_main_delegate.h", | 11 "content_main_delegate.h", |
11 "content_main_runner.h", | 12 "content_main_runner.h", |
12 "startup_helper_win.h", | 13 "startup_helper_win.h", |
13 ] | 14 ] |
14 | 15 |
15 configs += [ "//content:content_implementation" ] | 16 configs += [ "//content:content_implementation" ] |
16 | 17 |
17 deps = [ | 18 deps = [ |
18 "//base", | 19 "//base", |
19 "//base:i18n", | 20 "//base:i18n", |
20 "//content:export", | 21 "//content:export", |
21 "//content/public/plugin", | 22 "//content/public/plugin", |
22 "//content/public/renderer", | 23 "//content/public/renderer", |
23 "//content/public/utility", | 24 "//content/public/utility", |
24 ] | 25 ] |
25 } | 26 } |
| 27 |
| 28 # The structure of this is like the private content/app implementation. |
| 29 if (is_component_build) { |
| 30 |
| 31 group("app") { |
| 32 deps = [ |
| 33 ":app_sources", |
| 34 "//content/app", |
| 35 ] |
| 36 } |
| 37 group("browser") { |
| 38 deps = [ "//content" ] |
| 39 } |
| 40 group("child") { |
| 41 deps = [ "//content" ] |
| 42 } |
| 43 group("both") { |
| 44 deps = [ "//content" ] |
| 45 } |
| 46 |
| 47 } else { |
| 48 |
| 49 group("browser") { |
| 50 deps = [ |
| 51 ":app_sources", |
| 52 "//content/app:browser" |
| 53 ] |
| 54 } |
| 55 group("child") { |
| 56 deps = [ |
| 57 ":app_sources", |
| 58 "//content/app:child" |
| 59 ] |
| 60 } |
| 61 group("both") { |
| 62 deps = [ |
| 63 ":app_sources", |
| 64 "//content/app:both" |
| 65 ] |
| 66 } |
| 67 |
| 68 } |
OLD | NEW |