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("//chrome/version.gni") | 5 import("//build/util/process_version.gni") |
6 | 6 |
7 # Variables: | 7 # Variables: |
8 # deps: Extra dependencies. | 8 # deps: Extra dependencies. |
9 template("common_tmpl") { | 9 template("common_tmpl") { |
10 static_library(target_name) { | 10 static_library(target_name) { |
11 sources = [ | 11 sources = [ |
12 "data_reduction_proxy_bypass_action_list.h", | 12 "data_reduction_proxy_bypass_action_list.h", |
13 "data_reduction_proxy_bypass_type_list.h", | 13 "data_reduction_proxy_bypass_type_list.h", |
14 "data_reduction_proxy_config_values.h", | 14 "data_reduction_proxy_config_values.h", |
15 "data_reduction_proxy_event_creator.cc", | 15 "data_reduction_proxy_event_creator.cc", |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 "//components/data_reduction_proxy/core/browser", | 102 "//components/data_reduction_proxy/core/browser", |
103 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto", | 103 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto", |
104 "//components/variations", | 104 "//components/variations", |
105 "//net:test_support", | 105 "//net:test_support", |
106 "//testing/gtest", | 106 "//testing/gtest", |
107 ] | 107 ] |
108 } | 108 } |
109 | 109 |
110 process_version("version_header") { | 110 process_version("version_header") { |
111 template_file = "version.h.in" | 111 template_file = "version.h.in" |
| 112 sources = [ |
| 113 "//chrome/VERSION", |
| 114 ] |
112 output = "$target_gen_dir/version.h" | 115 output = "$target_gen_dir/version.h" |
113 extra_args = [ | 116 extra_args = [ |
114 "-e", | 117 "-e", |
115 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", | 118 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", |
116 ] | 119 ] |
117 } | 120 } |
OLD | NEW |