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

Side by Side Diff: chrome/common/BUILD.gn

Issue 2341673003: gn: Generalize process_version() and move it to build/util (take #2) (Closed)
Patch Set: Rebase patch 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
« no previous file with comments | « chrome/chrome_watcher/BUILD.gn ('k') | chrome/installer/gcapi/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/util/process_version.gni")
6 import("//chrome/common/features.gni") 7 import("//chrome/common/features.gni")
7 import("//chrome/version.gni") 8 import("//chrome/process_version_rc_template.gni") # For branding_file_path.
8 import("//mojo/public/tools/bindings/mojom.gni") 9 import("//mojo/public/tools/bindings/mojom.gni")
9 import("//tools/grit/grit_rule.gni") 10 import("//tools/grit/grit_rule.gni")
10 11
11 grit("resources") { 12 grit("resources") {
12 source = "common_resources.grd" 13 source = "common_resources.grd"
13 use_qualified_include = true 14 use_qualified_include = true
14 output_dir = "$root_gen_dir/chrome" 15 output_dir = "$root_gen_dir/chrome"
15 output_name = "common_resources" 16 output_name = "common_resources"
16 outputs = [ 17 outputs = [
17 "grit/common_resources.h", 18 "grit/common_resources.h",
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 ] 504 ]
504 } 505 }
505 } 506 }
506 } 507 }
507 508
508 process_version("version_header") { 509 process_version("version_header") {
509 # TODO(brettw) this should have more reduced visibility, but chrome/browser 510 # TODO(brettw) this should have more reduced visibility, but chrome/browser
510 # currently depends on this. 511 # currently depends on this.
511 #visibility = [ ":*" ] 512 #visibility = [ ":*" ]
512 513
513 # This one just uses the custom template and no separate sources. 514 sources = [
514 sources = [] 515 "//build/util/LASTCHANGE",
516 "//chrome/VERSION",
517 branding_file_path,
518 ]
515 template_file = "chrome_version.h.in" 519 template_file = "chrome_version.h.in"
516 520
517 output = "$target_gen_dir/chrome_version.h" 521 output = "$target_gen_dir/chrome_version.h"
518 } 522 }
519 523
520 static_library("constants") { 524 static_library("constants") {
521 sources = [ 525 sources = [
522 "chrome_constants.cc", 526 "chrome_constants.cc",
523 "chrome_constants.h", 527 "chrome_constants.h",
524 "chrome_features.cc", 528 "chrome_features.cc",
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 "shell_handler_win.mojom", 648 "shell_handler_win.mojom",
645 ] 649 ]
646 650
647 public_deps = [ 651 public_deps = [
648 "//skia/public/interfaces", 652 "//skia/public/interfaces",
649 "//url/mojo:url_mojom_gurl", 653 "//url/mojo:url_mojom_gurl",
650 ] 654 ]
651 655
652 use_new_wrapper_types = false 656 use_new_wrapper_types = false
653 } 657 }
OLDNEW
« no previous file with comments | « chrome/chrome_watcher/BUILD.gn ('k') | chrome/installer/gcapi/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698