| 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("//chrome/version.gni") |
| 6 | 6 |
| 7 static_library("common") { | 7 # Variables: |
| 8 sources = [ | 8 # deps: Extra dependencies. |
| 9 "data_reduction_proxy_bypass_action_list.h", | 9 template("common_tmpl") { |
| 10 "data_reduction_proxy_bypass_type_list.h", | 10 source_set(target_name) { |
| 11 "data_reduction_proxy_client_config_parser.cc", | 11 sources = [ |
| 12 "data_reduction_proxy_client_config_parser.h", | 12 "data_reduction_proxy_bypass_action_list.h", |
| 13 "data_reduction_proxy_config_values.h", | 13 "data_reduction_proxy_bypass_type_list.h", |
| 14 "data_reduction_proxy_event_creator.cc", | 14 "data_reduction_proxy_client_config_parser.cc", |
| 15 "data_reduction_proxy_event_creator.h", | 15 "data_reduction_proxy_client_config_parser.h", |
| 16 "data_reduction_proxy_event_storage_delegate.h", | 16 "data_reduction_proxy_config_values.h", |
| 17 "data_reduction_proxy_event_store.cc", | 17 "data_reduction_proxy_event_creator.cc", |
| 18 "data_reduction_proxy_event_store.h", | 18 "data_reduction_proxy_event_creator.h", |
| 19 "data_reduction_proxy_headers.cc", | 19 "data_reduction_proxy_event_storage_delegate.h", |
| 20 "data_reduction_proxy_headers.h", | 20 "data_reduction_proxy_event_store.cc", |
| 21 "data_reduction_proxy_params.cc", | 21 "data_reduction_proxy_event_store.h", |
| 22 "data_reduction_proxy_params.h", | 22 "data_reduction_proxy_headers.cc", |
| 23 "data_reduction_proxy_pref_names.cc", | 23 "data_reduction_proxy_headers.h", |
| 24 "data_reduction_proxy_pref_names.h", | 24 "data_reduction_proxy_params.cc", |
| 25 "data_reduction_proxy_switches.cc", | 25 "data_reduction_proxy_params.h", |
| 26 "data_reduction_proxy_switches.h", | 26 "data_reduction_proxy_pref_names.cc", |
| 27 ] | 27 "data_reduction_proxy_pref_names.h", |
| 28 "data_reduction_proxy_switches.cc", |
| 29 "data_reduction_proxy_switches.h", |
| 30 ] |
| 28 | 31 |
| 29 public_deps = [ | 32 public_deps = [ |
| 30 ":version_header", | 33 ":version_header", |
| 31 ] | 34 ] |
| 35 deps = [ |
| 36 "//base", |
| 37 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto", |
| 38 "//components/variations", |
| 39 ] |
| 40 |
| 41 if (defined(invoker.deps)) { |
| 42 deps += invoker.deps |
| 43 } |
| 44 } |
| 45 } |
| 46 |
| 47 if (is_android) { |
| 48 common_tmpl("common_small") { |
| 49 deps = [ |
| 50 "//net:net_small", |
| 51 "//url:url_lib_use_icu_alternatives_on_android", |
| 52 ] |
| 53 } |
| 54 } |
| 55 |
| 56 common_tmpl("common") { |
| 32 deps = [ | 57 deps = [ |
| 33 "//base", | |
| 34 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto", | |
| 35 "//components/variations", | |
| 36 "//net", | 58 "//net", |
| 37 "//url", | 59 "//url", |
| 38 ] | 60 ] |
| 39 } | 61 } |
| 40 | 62 |
| 41 source_set("test_support") { | 63 source_set("test_support") { |
| 42 testonly = true | 64 testonly = true |
| 43 sources = [ | 65 sources = [ |
| 44 "data_reduction_proxy_event_storage_delegate_test_utils.cc", | 66 "data_reduction_proxy_event_storage_delegate_test_utils.cc", |
| 45 "data_reduction_proxy_event_storage_delegate_test_utils.h", | 67 "data_reduction_proxy_event_storage_delegate_test_utils.h", |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 "//components/variations", | 105 "//components/variations", |
| 84 "//net:test_support", | 106 "//net:test_support", |
| 85 "//testing/gtest", | 107 "//testing/gtest", |
| 86 ] | 108 ] |
| 87 } | 109 } |
| 88 | 110 |
| 89 process_version("version_header") { | 111 process_version("version_header") { |
| 90 template_file = "version.h.in" | 112 template_file = "version.h.in" |
| 91 output = "$target_gen_dir/version.h" | 113 output = "$target_gen_dir/version.h" |
| 92 } | 114 } |
| OLD | NEW |