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 import("//build/util/process_version.gni") | 7 |
| 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") |
8 import("//testing/test.gni") | 12 import("//testing/test.gni") |
9 import("//tools/grit/grit_rule.gni") | 13 import("//tools/grit/grit_rule.gni") |
10 | 14 |
11 assert(enable_extensions) | 15 assert(enable_extensions) |
12 | 16 |
13 grit("resources") { | 17 grit("resources") { |
14 source = "app_shell_resources.grd" | 18 source = "app_shell_resources.grd" |
15 outputs = [ | 19 outputs = [ |
16 "grit/app_shell_resources.h", | 20 "grit/app_shell_resources.h", |
17 "app_shell_resources.pak", | 21 "app_shell_resources.pak", |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 deps += [ "//chromeos:test_support_without_gmock" ] | 273 deps += [ "//chromeos:test_support_without_gmock" ] |
270 } | 274 } |
271 | 275 |
272 if (enable_nacl) { | 276 if (enable_nacl) { |
273 sources += [ "browser/shell_nacl_browser_delegate_unittest.cc" ] | 277 sources += [ "browser/shell_nacl_browser_delegate_unittest.cc" ] |
274 } | 278 } |
275 } | 279 } |
276 | 280 |
277 process_version("version_header") { | 281 process_version("version_header") { |
278 template_file = "common/version.h.in" | 282 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 |