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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 "common/shell_extensions_client.h", | 132 "common/shell_extensions_client.h", |
132 "common/switches.cc", | 133 "common/switches.cc", |
133 "common/switches.h", | 134 "common/switches.h", |
134 "renderer/shell_content_renderer_client.cc", | 135 "renderer/shell_content_renderer_client.cc", |
135 "renderer/shell_content_renderer_client.h", | 136 "renderer/shell_content_renderer_client.h", |
136 "renderer/shell_extensions_renderer_client.cc", | 137 "renderer/shell_extensions_renderer_client.cc", |
137 "renderer/shell_extensions_renderer_client.h", | 138 "renderer/shell_extensions_renderer_client.h", |
138 "utility/shell_content_utility_client.cc", | 139 "utility/shell_content_utility_client.cc", |
139 "utility/shell_content_utility_client.h", | 140 "utility/shell_content_utility_client.h", |
140 ] | 141 ] |
| 142 |
141 if (is_chromeos) { | 143 if (is_chromeos) { |
142 deps += [ | 144 deps += [ |
143 "//chromeos", | 145 "//chromeos", |
144 "//ui/chromeos:ui_chromeos", | 146 "//ui/chromeos:ui_chromeos", |
145 "//ui/display", | 147 "//ui/display", |
146 ] | 148 ] |
147 sources += [ | 149 sources += [ |
148 "browser/api/shell_gcd/shell_gcd_api.cc", | 150 "browser/api/shell_gcd/shell_gcd_api.cc", |
149 "browser/api/shell_gcd/shell_gcd_api.h", | 151 "browser/api/shell_gcd/shell_gcd_api.h", |
150 "browser/api/vpn_provider/vpn_service_factory.cc", | 152 "browser/api/vpn_provider/vpn_service_factory.cc", |
151 ] | 153 ] |
152 } | 154 } |
| 155 |
| 156 if (enable_nacl) { |
| 157 sources += [ |
| 158 "browser/shell_nacl_browser_delegate.cc", |
| 159 "browser/shell_nacl_browser_delegate.h", |
| 160 ] |
| 161 |
| 162 defines = nacl_defines |
| 163 |
| 164 deps += [ |
| 165 "//components/nacl", |
| 166 "//components/nacl:nacl_browser", |
| 167 "//components/nacl:nacl_common", |
| 168 "//components/nacl:nacl_renderer", |
| 169 "//components/nacl:nacl_switches", |
| 170 "//components/nacl/renderer/plugin:nacl_trusted_plugin", |
| 171 ] |
| 172 |
| 173 if (is_linux) { |
| 174 deps += [ "//components/nacl:nacl_helper" ] |
| 175 } |
| 176 } |
153 } | 177 } |
154 | 178 |
155 if (!(is_chromeos && !use_ozone) && (!is_win || link_chrome_on_windows)) { | 179 if (!(is_chromeos && !use_ozone) && (!is_win || link_chrome_on_windows)) { |
156 executable("app_shell") { | 180 executable("app_shell") { |
157 # testonly because :app_shell_lib is testonly. See :app_shell_lib comment. | 181 # testonly because :app_shell_lib is testonly. See :app_shell_lib comment. |
158 testonly = true | 182 testonly = true |
159 sources = [ | 183 sources = [ |
160 "app/shell_main.cc", | 184 "app/shell_main.cc", |
161 ] | 185 ] |
162 deps = [ | 186 deps = [ |
163 ":app_shell_lib", | 187 ":app_shell_lib", |
164 "//extensions:shell_and_test_pak", | 188 "//extensions:shell_and_test_pak", |
165 ] | 189 ] |
166 | 190 |
167 if (is_win) { | 191 if (is_win) { |
168 configs += [ "//build/config/win:windowed" ] | 192 configs += [ "//build/config/win:windowed" ] |
169 configs -= [ "//build/config/win:console" ] | 193 configs -= [ "//build/config/win:console" ] |
170 } | 194 } |
171 } | 195 } |
172 } | 196 } |
173 | 197 |
174 process_version("version_header") { | 198 process_version("version_header") { |
175 source = "common/version.h.in" | 199 source = "common/version.h.in" |
176 output = "$target_gen_dir/common/version.h" | 200 output = "$target_gen_dir/common/version.h" |
177 } | 201 } |
OLD | NEW |