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

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

Issue 2308313003: gn: Generalize process_version() and move it to build/util (Closed)
Patch Set: Move branding_file_path to chrome/process_version_rc_template.gni 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/app/version_assembly/BUILD.gn ('k') | chrome/common/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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//chrome/version.gni") 5 import("//chrome/process_version_rc_template.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 source_set("client") { 8 source_set("client") {
9 sources = [ 9 sources = [
10 "chrome_watcher_main_api.cc", 10 "chrome_watcher_main_api.cc",
11 "chrome_watcher_main_api.h", 11 "chrome_watcher_main_api.h",
12 ] 12 ]
13 deps = [ 13 deps = [
14 "//base", 14 "//base",
15 ] 15 ]
(...skipping 24 matching lines...) Expand all
40 "//testing/gtest", 40 "//testing/gtest",
41 ] 41 ]
42 } 42 }
43 43
44 group("kasko_util") { 44 group("kasko_util") {
45 public_deps = [ 45 public_deps = [
46 "//third_party/kasko:kasko_features", 46 "//third_party/kasko:kasko_features",
47 ] 47 ]
48 } 48 }
49 49
50 process_version("chrome_watcher_resources") { 50 process_version_rc_template("chrome_watcher_resources") {
51 template_file = chrome_version_rc_template
52 sources = [ 51 sources = [
53 "chrome_watcher.ver", 52 "chrome_watcher.ver",
54 ] 53 ]
55 output = "$target_gen_dir/chrome_watcher_version.rc" 54 output = "$target_gen_dir/chrome_watcher_version.rc"
56 } 55 }
57 56
58 shared_library("chrome_watcher") { 57 shared_library("chrome_watcher") {
59 sources = [ 58 sources = [
60 "chrome_watcher_main.cc", 59 "chrome_watcher_main.cc",
61 ] 60 ]
62 inputs = [ 61 inputs = [
63 "chrome_watcher.def", 62 "chrome_watcher.def",
64 ] 63 ]
65 deps = [ 64 deps = [
66 ":chrome_watcher_resources", 65 ":chrome_watcher_resources",
67 ":client", 66 ":client",
68 ":kasko_util", 67 ":kasko_util",
69 "//base", 68 "//base",
70 "//base:base_static", 69 "//base:base_static",
71 "//build/config/sanitizers:deps", 70 "//build/config/sanitizers:deps",
72 "//chrome/common:metrics_constants_util_win", 71 "//chrome/common:metrics_constants_util_win",
73 "//chrome/installer/util:with_no_strings", 72 "//chrome/installer/util:with_no_strings",
74 "//components/browser_watcher", 73 "//components/browser_watcher",
75 ] 74 ]
76 ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ] 75 ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ]
77 configs -= [ "//build/config/win:console" ] 76 configs -= [ "//build/config/win:console" ]
78 configs += [ "//build/config/win:windowed" ] 77 configs += [ "//build/config/win:windowed" ]
79 } 78 }
OLDNEW
« no previous file with comments | « chrome/app/version_assembly/BUILD.gn ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698