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 import("//build/config/nacl/config.gni") |
7 | 7 |
8 # Applied by targets internal to content. | 8 # Applied by targets internal to content. |
9 config("content_implementation") { | 9 config("content_implementation") { |
10 defines = [ "CONTENT_IMPLEMENTATION" ] | 10 defines = [ "CONTENT_IMPLEMENTATION" ] |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 } | 104 } |
105 } | 105 } |
106 | 106 |
107 grit("resources") { | 107 grit("resources") { |
108 source = "content_resources.grd" | 108 source = "content_resources.grd" |
109 use_qualified_include = true | 109 use_qualified_include = true |
110 outputs = [ | 110 outputs = [ |
111 "grit/content_resources.h", | 111 "grit/content_resources.h", |
112 "content_resources.pak", | 112 "content_resources.pak", |
113 ] | 113 ] |
| 114 grit_flags = [ |
| 115 "-E", |
| 116 "root_out_dir=" + rebase_path(root_out_dir, root_build_dir), |
| 117 ] |
| 118 deps = [ |
| 119 "//content/public/app:browser_manifest", |
| 120 "//content/public/app:renderer_manifest", |
| 121 "//mojo/services/catalog:manifest", |
| 122 ] |
114 } | 123 } |
115 | 124 |
116 # This target exists to "hold" the content_export header so we can do proper | 125 # This target exists to "hold" the content_export header so we can do proper |
117 # inclusion testing of it. | 126 # inclusion testing of it. |
118 source_set("export") { | 127 source_set("export") { |
119 # Must only be used inside of content. | 128 # Must only be used inside of content. |
120 visibility = [ "//content/*" ] | 129 visibility = [ "//content/*" ] |
121 sources = [ | 130 sources = [ |
122 "common/content_export.h", | 131 "common/content_export.h", |
123 ] | 132 ] |
124 } | 133 } |
125 | 134 |
126 # In the GYP build, this file is listed in several targets. In GN just have | 135 # In the GYP build, this file is listed in several targets. In GN just have |
127 # those targets depend on this one. This can be depended on for any | 136 # those targets depend on this one. This can be depended on for any |
128 # platform for simplicity, and is a no-op on non-Windows. | 137 # platform for simplicity, and is a no-op on non-Windows. |
129 source_set("sandbox_helper_win") { | 138 source_set("sandbox_helper_win") { |
130 if (is_win) { | 139 if (is_win) { |
131 sources = [ | 140 sources = [ |
132 "app/sandbox_helper_win.cc", | 141 "app/sandbox_helper_win.cc", |
133 "public/app/sandbox_helper_win.h", | 142 "public/app/sandbox_helper_win.h", |
134 ] | 143 ] |
135 | 144 |
136 deps = [ | 145 deps = [ |
137 "//sandbox", | 146 "//sandbox", |
138 ] | 147 ] |
139 } | 148 } |
140 } | 149 } |
OLD | NEW |