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("//components/data_reduction_proxy/common/version.gni") |
| 6 |
5 static_library("common") { | 7 static_library("common") { |
6 sources = [ | 8 sources = [ |
7 "data_reduction_proxy_headers.cc", | 9 "data_reduction_proxy_headers.cc", |
8 "data_reduction_proxy_headers.h", | 10 "data_reduction_proxy_headers.h", |
9 "data_reduction_proxy_pref_names.cc", | 11 "data_reduction_proxy_pref_names.cc", |
10 "data_reduction_proxy_pref_names.h", | 12 "data_reduction_proxy_pref_names.h", |
11 "data_reduction_proxy_switches.cc", | 13 "data_reduction_proxy_switches.cc", |
12 "data_reduction_proxy_switches.h", | 14 "data_reduction_proxy_switches.h", |
13 ] | 15 ] |
14 | 16 |
15 deps = [ | 17 deps = [ |
| 18 ":version_header", |
16 "//base", | 19 "//base", |
17 ] | 20 ] |
18 } | 21 } |
19 | 22 |
20 source_set("unit_tests") { | 23 source_set("unit_tests") { |
21 testonly = true | 24 testonly = true |
22 sources = [ | 25 sources = [ |
23 "data_reduction_proxy_headers_unittest.cc", | 26 "data_reduction_proxy_headers_unittest.cc", |
24 ] | 27 ] |
25 | 28 |
26 deps = [ | 29 deps = [ |
27 ":common", | 30 ":common", |
28 "//testing/gtest", | 31 "//testing/gtest", |
29 ] | 32 ] |
30 } | 33 } |
| 34 |
| 35 process_version("version_header") { |
| 36 source = "version.h.in" |
| 37 output = "$target_gen_dir/version.h" |
| 38 } |
| 39 |
OLD | NEW |