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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 | 7 import("//build/util/process_version.gni") |
8 # Technically, this directory should not depend on files from src/chrome, but | |
9 # that's where the VERSION file is. This should probably all be moved to | |
10 # src/build. | |
11 import("//chrome/version.gni") | |
12 import("//testing/test.gni") | 8 import("//testing/test.gni") |
13 import("//tools/grit/grit_rule.gni") | 9 import("//tools/grit/grit_rule.gni") |
14 | 10 |
15 assert(enable_extensions) | 11 assert(enable_extensions) |
16 | 12 |
17 grit("resources") { | 13 grit("resources") { |
18 source = "app_shell_resources.grd" | 14 source = "app_shell_resources.grd" |
19 outputs = [ | 15 outputs = [ |
20 "grit/app_shell_resources.h", | 16 "grit/app_shell_resources.h", |
21 "app_shell_resources.pak", | 17 "app_shell_resources.pak", |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 deps += [ "//chromeos:test_support_without_gmock" ] | 269 deps += [ "//chromeos:test_support_without_gmock" ] |
274 } | 270 } |
275 | 271 |
276 if (enable_nacl) { | 272 if (enable_nacl) { |
277 sources += [ "browser/shell_nacl_browser_delegate_unittest.cc" ] | 273 sources += [ "browser/shell_nacl_browser_delegate_unittest.cc" ] |
278 } | 274 } |
279 } | 275 } |
280 | 276 |
281 process_version("version_header") { | 277 process_version("version_header") { |
282 template_file = "common/version.h.in" | 278 template_file = "common/version.h.in" |
| 279 sources = [ |
| 280 "//build/util/LASTCHANGE", |
| 281 "//chrome/VERSION", |
| 282 ] |
283 output = "$target_gen_dir/common/version.h" | 283 output = "$target_gen_dir/common/version.h" |
284 } | 284 } |
285 | 285 |
286 if (is_mac) { | 286 if (is_mac) { |
287 # TODO(GYP) this should be a bundle. Lots of other stuff in this target. | 287 # TODO(GYP) this should be a bundle. Lots of other stuff in this target. |
288 # Should be able to copy content shell framework (this is basically a | 288 # Should be able to copy content shell framework (this is basically a |
289 # copy-paste of that target). | 289 # copy-paste of that target). |
290 shared_library("app_shell_framework") { | 290 shared_library("app_shell_framework") { |
291 testonly = true | 291 testonly = true |
292 sources = [ | 292 sources = [ |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 "//extensions/browser", | 343 "//extensions/browser", |
344 ] | 344 ] |
345 | 345 |
346 if (is_chromeos) { | 346 if (is_chromeos) { |
347 deps += [ | 347 deps += [ |
348 "//chromeos:test_support", | 348 "//chromeos:test_support", |
349 "//components/keyed_service/content", | 349 "//components/keyed_service/content", |
350 ] | 350 ] |
351 } | 351 } |
352 } | 352 } |
OLD | NEW |