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 # Technically, this directory should not depend on files from src/chrome, but | 5 # Technically, this directory should not depend on files from src/chrome, but |
6 # that's where the VERSION file is. This should probably all be moved to | 6 # that's where the VERSION file is. This should probably all be moved to |
7 # src/build. | 7 # src/build. |
8 import("//chrome/version.gni") | 8 import("//chrome/version.gni") |
9 import("//tools/grit/grit_rule.gni") | 9 import("//tools/grit/grit_rule.gni") |
| 10 import("//components/nacl/nacl_defines.gni") |
10 | 11 |
11 assert(enable_extensions) | 12 assert(enable_extensions) |
12 | 13 |
13 grit("resources") { | 14 grit("resources") { |
14 source = "app_shell_resources.grd" | 15 source = "app_shell_resources.grd" |
15 outputs = [ | 16 outputs = [ |
16 "grit/app_shell_resources.h", | 17 "grit/app_shell_resources.h", |
17 "app_shell_resources.pak", | 18 "app_shell_resources.pak", |
18 ] | 19 ] |
19 } | 20 } |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 "common/shell_extensions_client.h", | 134 "common/shell_extensions_client.h", |
134 "common/switches.cc", | 135 "common/switches.cc", |
135 "common/switches.h", | 136 "common/switches.h", |
136 "renderer/shell_content_renderer_client.cc", | 137 "renderer/shell_content_renderer_client.cc", |
137 "renderer/shell_content_renderer_client.h", | 138 "renderer/shell_content_renderer_client.h", |
138 "renderer/shell_extensions_renderer_client.cc", | 139 "renderer/shell_extensions_renderer_client.cc", |
139 "renderer/shell_extensions_renderer_client.h", | 140 "renderer/shell_extensions_renderer_client.h", |
140 "utility/shell_content_utility_client.cc", | 141 "utility/shell_content_utility_client.cc", |
141 "utility/shell_content_utility_client.h", | 142 "utility/shell_content_utility_client.h", |
142 ] | 143 ] |
| 144 |
143 if (is_chromeos) { | 145 if (is_chromeos) { |
144 deps += [ | 146 deps += [ |
145 "//chromeos", | 147 "//chromeos", |
146 "//ui/chromeos:ui_chromeos", | 148 "//ui/chromeos:ui_chromeos", |
147 "//ui/display", | 149 "//ui/display", |
148 ] | 150 ] |
149 sources += [ | 151 sources += [ |
150 "browser/api/shell_gcd/shell_gcd_api.cc", | 152 "browser/api/shell_gcd/shell_gcd_api.cc", |
151 "browser/api/shell_gcd/shell_gcd_api.h", | 153 "browser/api/shell_gcd/shell_gcd_api.h", |
152 "browser/api/vpn_provider/vpn_service_factory.cc", | 154 "browser/api/vpn_provider/vpn_service_factory.cc", |
153 ] | 155 ] |
154 } | 156 } |
| 157 |
| 158 if (enable_nacl) { |
| 159 sources += [ |
| 160 "browser/shell_nacl_browser_delegate.cc", |
| 161 "browser/shell_nacl_browser_delegate.h", |
| 162 ] |
| 163 |
| 164 defines = nacl_defines |
| 165 |
| 166 deps += [ |
| 167 "//components/nacl", |
| 168 "//components/nacl:nacl_browser", |
| 169 "//components/nacl:nacl_common", |
| 170 "//components/nacl:nacl_renderer", |
| 171 "//components/nacl:nacl_switches", |
| 172 "//components/nacl/renderer/plugin:nacl_trusted_plugin", |
| 173 ] |
| 174 |
| 175 if (is_linux) { |
| 176 deps += [ "//components/nacl:nacl_helper" ] |
| 177 } |
| 178 } |
155 } | 179 } |
156 | 180 |
157 if (!(is_chromeos && !use_ozone) && (!is_win || link_chrome_on_windows)) { | 181 if (!(is_chromeos && !use_ozone) && (!is_win || link_chrome_on_windows)) { |
158 executable("app_shell") { | 182 executable("app_shell") { |
159 # testonly because :app_shell_lib is testonly. See :app_shell_lib comment. | 183 # testonly because :app_shell_lib is testonly. See :app_shell_lib comment. |
160 testonly = true | 184 testonly = true |
161 sources = [ | 185 sources = [ |
162 "app/shell_main.cc", | 186 "app/shell_main.cc", |
163 ] | 187 ] |
164 deps = [ | 188 deps = [ |
165 ":app_shell_lib", | 189 ":app_shell_lib", |
166 "//extensions:shell_and_test_pak", | 190 "//extensions:shell_and_test_pak", |
167 ] | 191 ] |
168 | 192 |
169 if (is_win) { | 193 if (is_win) { |
170 configs += [ "//build/config/win:windowed" ] | 194 configs += [ "//build/config/win:windowed" ] |
171 configs -= [ "//build/config/win:console" ] | 195 configs -= [ "//build/config/win:console" ] |
172 } | 196 } |
173 } | 197 } |
174 } | 198 } |
175 | 199 |
176 process_version("version_header") { | 200 process_version("version_header") { |
177 source = "common/version.h.in" | 201 source = "common/version.h.in" |
178 output = "$target_gen_dir/common/version.h" | 202 output = "$target_gen_dir/common/version.h" |
179 } | 203 } |
OLD | NEW |