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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 import("//build/config/nacl/config.gni") | |
6 | 7 |
7 # Applied by targets internal to content. | 8 # Applied by targets internal to content. |
8 config("content_implementation") { | 9 config("content_implementation") { |
9 defines = [ "CONTENT_IMPLEMENTATION" ] | 10 defines = [ "CONTENT_IMPLEMENTATION" ] |
10 } | 11 } |
11 | 12 |
12 # When targets depend on, e.g. //content/public/browser, what happens? To | 13 # When targets depend on, e.g. //content/public/browser, what happens? To |
13 # facilitate the complexity here, the "public" targets are groups that forward | 14 # facilitate the complexity here, the "public" targets are groups that forward |
14 # to the right thing depending on the build mode. Say for additional | 15 # to the right thing depending on the build mode. Say for additional |
15 # illustration, the public browser sources also depend on the public common | 16 # illustration, the public browser sources also depend on the public common |
(...skipping 14 matching lines...) Expand all Loading... | |
30 # //content/public/browser:browser_sources (source set) -> | 31 # //content/public/browser:browser_sources (source set) -> |
31 # //content/browser (source set; this is the non-public browser target) | 32 # //content/browser (source set; this is the non-public browser target) |
32 # //content/public/common:common_sources (source set) | 33 # //content/public/common:common_sources (source set) |
33 # | 34 # |
34 # That the internal content dependencies must depend on the *_sources targets | 35 # That the internal content dependencies must depend on the *_sources targets |
35 # to avoid dependency cycles, and external dependencies must depend on the | 36 # to avoid dependency cycles, and external dependencies must depend on the |
36 # //content/public/browser and similar targets to avoid double-linking (these | 37 # //content/public/browser and similar targets to avoid double-linking (these |
37 # targets make sure the dependency goes through the content shared library | 38 # targets make sure the dependency goes through the content shared library |
38 # when doing a component build). | 39 # when doing a component build). |
39 | 40 |
40 content_shared_components = [ | 41 if (!is_nacl_nonsfi) { |
41 "//content/gpu:gpu_sources", | 42 content_shared_components = [ |
42 "//content/public/browser:browser_sources", | 43 "//content/gpu:gpu_sources", |
43 "//content/public/child:child_sources", | 44 "//content/public/browser:browser_sources", |
44 "//content/public/common:common_sources", | 45 "//content/public/child:child_sources", |
45 "//content/public/plugin:plugin_sources", | 46 "//content/public/common:common_sources", |
46 "//content/public/renderer:renderer_sources", | 47 "//content/public/plugin:plugin_sources", |
47 "//content/public/utility:utility_sources", | 48 "//content/public/renderer:renderer_sources", |
48 ] | 49 "//content/public/utility:utility_sources", |
50 ] | |
49 | 51 |
50 if (enable_plugins) { | 52 if (enable_plugins) { |
51 content_shared_components += [ "//content/ppapi_plugin:ppapi_plugin_sources" ] | 53 content_shared_components += |
54 [ "//content/ppapi_plugin:ppapi_plugin_sources" ] | |
55 } | |
52 } | 56 } |
53 | 57 |
54 if (is_component_build) { | 58 if (is_component_build) { |
55 shared_library("content") { | 59 shared_library("content") { |
56 public_deps = | 60 public_deps = |
57 content_shared_components + [ "//content/public/app:both_sources" ] | 61 content_shared_components + [ "//content/public/app:both_sources" ] |
58 deps = [ | 62 deps = [ |
59 "//build/config/sanitizers:deps", | 63 "//build/config/sanitizers:deps", |
60 ] | 64 ] |
61 } | 65 } |
66 } else if (is_nacl_nonsfi) { | |
Dirk Pranke
2015/10/21 20:03:52
there's a part of content that's built w/ the nacl
Petr Hosek
2015/10/22 18:32:13
Done. Why we build only a subset of content is a q
| |
67 static_library("content") { | |
68 set_sources_assignment_filter([]) | |
69 sources = [ | |
70 "common/sandbox_linux/sandbox_init_linux.cc", | |
71 "common/sandbox_linux/sandbox_seccomp_bpf_linux.cc", | |
72 "common/send_zygote_child_ping_linux.cc", | |
73 "public/common/content_switches.cc", | |
74 ] | |
75 set_sources_assignment_filter(sources_assignment_filter) | |
76 | |
77 defines = [ "USE_SECCOMP_BPF=1" ] | |
78 | |
79 deps = [ | |
80 "//base", | |
81 ] | |
82 } | |
62 } else { | 83 } else { |
63 group("content") { | 84 group("content") { |
64 deps = content_shared_components | 85 deps = content_shared_components |
65 } | 86 } |
66 } | 87 } |
67 | 88 |
68 grit("resources") { | 89 grit("resources") { |
69 source = "content_resources.grd" | 90 source = "content_resources.grd" |
70 use_qualified_include = true | 91 use_qualified_include = true |
71 outputs = [ | 92 outputs = [ |
(...skipping 21 matching lines...) Expand all Loading... | |
93 "public/app/startup_helper_win.h", | 114 "public/app/startup_helper_win.h", |
94 ] | 115 ] |
95 | 116 |
96 deps = [ | 117 deps = [ |
97 "//base", | 118 "//base", |
98 "//base:i18n", | 119 "//base:i18n", |
99 "//sandbox", | 120 "//sandbox", |
100 ] | 121 ] |
101 } | 122 } |
102 } | 123 } |
OLD | NEW |