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

Side by Side Diff: chrome/common/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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chrome_build.gni")
7 import("//build/util/process_version.gni")
6 import("//chrome/common/features.gni") 8 import("//chrome/common/features.gni")
7 import("//chrome/version.gni")
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 "resource_usage_reporter.mojom", 646 "resource_usage_reporter.mojom",
643 "shell_handler_win.mojom", 647 "shell_handler_win.mojom",
644 ] 648 ]
645 649
646 public_deps = [ 650 public_deps = [
647 "//skia/public/interfaces", 651 "//skia/public/interfaces",
648 ] 652 ]
649 653
650 use_new_wrapper_types = false 654 use_new_wrapper_types = false
651 } 655 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698