Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Side by Side Diff: extensions/shell/BUILD.gn

Issue 2308313003: gn: Generalize process_version() and move it to build/util (Closed)
Patch Set: Fix chromecast Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 deps += [ "//chromeos:test_support_without_gmock" ] 270 deps += [ "//chromeos:test_support_without_gmock" ]
275 } 271 }
276 272
277 if (enable_nacl) { 273 if (enable_nacl) {
278 sources += [ "browser/shell_nacl_browser_delegate_unittest.cc" ] 274 sources += [ "browser/shell_nacl_browser_delegate_unittest.cc" ]
279 } 275 }
280 } 276 }
281 277
282 process_version("version_header") { 278 process_version("version_header") {
283 template_file = "common/version.h.in" 279 template_file = "common/version.h.in"
280 sources = [
281 "//build/util/LASTCHANGE",
282 "//chrome/VERSION",
283 ]
284 output = "$target_gen_dir/common/version.h" 284 output = "$target_gen_dir/common/version.h"
285 } 285 }
286 286
287 if (is_mac) { 287 if (is_mac) {
288 # TODO(GYP) this should be a bundle. Lots of other stuff in this target. 288 # TODO(GYP) this should be a bundle. Lots of other stuff in this target.
289 # Should be able to copy content shell framework (this is basically a 289 # Should be able to copy content shell framework (this is basically a
290 # copy-paste of that target). 290 # copy-paste of that target).
291 shared_library("app_shell_framework") { 291 shared_library("app_shell_framework") {
292 testonly = true 292 testonly = true
293 sources = [ 293 sources = [
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 "//extensions/browser", 344 "//extensions/browser",
345 ] 345 ]
346 346
347 if (is_chromeos) { 347 if (is_chromeos) {
348 deps += [ 348 deps += [
349 "//chromeos:test_support", 349 "//chromeos:test_support",
350 "//components/keyed_service/content", 350 "//components/keyed_service/content",
351 ] 351 ]
352 } 352 }
353 } 353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698