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

Side by Side Diff: components/data_reduction_proxy/core/common/BUILD.gn

Issue 2025443002: Refactoring data reduction proxy some methods to common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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("//chrome/version.gni") 5 import("//chrome/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 source_set(target_name) { 10 source_set(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_client_config_parser.cc",
15 "data_reduction_proxy_client_config_parser.h",
16 "data_reduction_proxy_config_values.h", 14 "data_reduction_proxy_config_values.h",
17 "data_reduction_proxy_event_creator.cc", 15 "data_reduction_proxy_event_creator.cc",
18 "data_reduction_proxy_event_creator.h", 16 "data_reduction_proxy_event_creator.h",
19 "data_reduction_proxy_event_storage_delegate.h", 17 "data_reduction_proxy_event_storage_delegate.h",
20 "data_reduction_proxy_event_store.cc", 18 "data_reduction_proxy_event_store.cc",
21 "data_reduction_proxy_event_store.h", 19 "data_reduction_proxy_event_store.h",
22 "data_reduction_proxy_headers.cc", 20 "data_reduction_proxy_headers.cc",
23 "data_reduction_proxy_headers.h", 21 "data_reduction_proxy_headers.h",
24 "data_reduction_proxy_params.cc", 22 "data_reduction_proxy_params.cc",
25 "data_reduction_proxy_params.h", 23 "data_reduction_proxy_params.h",
26 "data_reduction_proxy_pref_names.cc", 24 "data_reduction_proxy_pref_names.cc",
27 "data_reduction_proxy_pref_names.h", 25 "data_reduction_proxy_pref_names.h",
28 "data_reduction_proxy_switches.cc", 26 "data_reduction_proxy_switches.cc",
29 "data_reduction_proxy_switches.h", 27 "data_reduction_proxy_switches.h",
30 "data_reduction_proxy_util.cc", 28 "data_reduction_proxy_util.cc",
31 "data_reduction_proxy_util.h", 29 "data_reduction_proxy_util.h",
32 "lofi_decider.h", 30 "lofi_decider.h",
33 "lofi_ui_service.h", 31 "lofi_ui_service.h",
34 ] 32 ]
35 33
36 public_deps = [ 34 public_deps = [
37 ":version_header", 35 ":version_header",
38 ] 36 ]
39 deps = [ 37 deps = [
40 "//base", 38 "//base",
41 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto", 39 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
42 "//components/variations", 40 "//components/variations",
41 "//google_apis",
43 ] 42 ]
44 43
44 defines = [ "USE_GOOGLE_API_KEYS" ]
tbansal1 2016/05/27 23:01:58 Two questions: (1) data_reduction_proxy/core/brows
RyanSturm 2016/05/31 20:10:51 1) not needed 2) still needed in core I haven't m
45
45 if (defined(invoker.deps)) { 46 if (defined(invoker.deps)) {
46 deps += invoker.deps 47 deps += invoker.deps
47 } 48 }
48 } 49 }
49 } 50 }
50 51
51 common_tmpl("common") { 52 common_tmpl("common") {
52 deps = [ 53 deps = [
53 "//net", 54 "//net",
54 "//url", 55 "//url",
(...skipping 19 matching lines...) Expand all
74 "//net", 75 "//net",
75 "//net:test_support", 76 "//net:test_support",
76 "//testing/gmock", 77 "//testing/gmock",
77 "//testing/gtest", 78 "//testing/gtest",
78 ] 79 ]
79 } 80 }
80 81
81 source_set("unit_tests") { 82 source_set("unit_tests") {
82 testonly = true 83 testonly = true
83 sources = [ 84 sources = [
84 "data_reduction_proxy_client_config_parser_unittest.cc",
85 "data_reduction_proxy_event_store_unittest.cc", 85 "data_reduction_proxy_event_store_unittest.cc",
86 "data_reduction_proxy_headers_unittest.cc", 86 "data_reduction_proxy_headers_unittest.cc",
87 "data_reduction_proxy_params_unittest.cc", 87 "data_reduction_proxy_params_unittest.cc",
88 "data_reduction_proxy_util_unittest.cc",
88 ] 89 ]
89 90
90 deps = [ 91 deps = [
91 ":common", 92 ":common",
92 ":test_support", 93 ":test_support",
93 "//base", 94 "//base",
94 "//base/test:test_support", 95 "//base/test:test_support",
95 96
96 # TODO this dependency seems wrong, but 97 # TODO this dependency seems wrong, but
97 # data_reduction_proxy_event_store_unittest.cc includes a file from it. 98 # data_reduction_proxy_event_store_unittest.cc includes a file from it.
98 "//components/data_reduction_proxy/core/browser", 99 "//components/data_reduction_proxy/core/browser",
99 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto", 100 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
100 "//components/variations", 101 "//components/variations",
101 "//net:test_support", 102 "//net:test_support",
102 "//testing/gtest", 103 "//testing/gtest",
103 ] 104 ]
104 } 105 }
105 106
106 process_version("version_header") { 107 process_version("version_header") {
107 template_file = "version.h.in" 108 template_file = "version.h.in"
108 output = "$target_gen_dir/version.h" 109 output = "$target_gen_dir/version.h"
109 extra_args = [ 110 extra_args = [
110 "-e", 111 "-e",
111 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", 112 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)",
112 ] 113 ]
113 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698