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

Unified Diff: components/data_reduction_proxy/core/common/BUILD.gn

Issue 1483843002: Port cronet build rules to GN part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/data_reduction_proxy/core/browser/BUILD.gn ('k') | components/pref_registry/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/common/BUILD.gn
diff --git a/components/data_reduction_proxy/core/common/BUILD.gn b/components/data_reduction_proxy/core/common/BUILD.gn
index 03e941bf5aff32605af9f5a2dd9940333b26cc23..5a9abc91ad76d2777e1b018315a31c6a6abcbea5 100644
--- a/components/data_reduction_proxy/core/common/BUILD.gn
+++ b/components/data_reduction_proxy/core/common/BUILD.gn
@@ -4,35 +4,57 @@
import("//chrome/version.gni")
-static_library("common") {
- sources = [
- "data_reduction_proxy_bypass_action_list.h",
- "data_reduction_proxy_bypass_type_list.h",
- "data_reduction_proxy_client_config_parser.cc",
- "data_reduction_proxy_client_config_parser.h",
- "data_reduction_proxy_config_values.h",
- "data_reduction_proxy_event_creator.cc",
- "data_reduction_proxy_event_creator.h",
- "data_reduction_proxy_event_storage_delegate.h",
- "data_reduction_proxy_event_store.cc",
- "data_reduction_proxy_event_store.h",
- "data_reduction_proxy_headers.cc",
- "data_reduction_proxy_headers.h",
- "data_reduction_proxy_params.cc",
- "data_reduction_proxy_params.h",
- "data_reduction_proxy_pref_names.cc",
- "data_reduction_proxy_pref_names.h",
- "data_reduction_proxy_switches.cc",
- "data_reduction_proxy_switches.h",
- ]
+# Variables:
+# deps: Extra dependencies.
+template("common_tmpl") {
+ source_set(target_name) {
+ sources = [
+ "data_reduction_proxy_bypass_action_list.h",
+ "data_reduction_proxy_bypass_type_list.h",
+ "data_reduction_proxy_client_config_parser.cc",
+ "data_reduction_proxy_client_config_parser.h",
+ "data_reduction_proxy_config_values.h",
+ "data_reduction_proxy_event_creator.cc",
+ "data_reduction_proxy_event_creator.h",
+ "data_reduction_proxy_event_storage_delegate.h",
+ "data_reduction_proxy_event_store.cc",
+ "data_reduction_proxy_event_store.h",
+ "data_reduction_proxy_headers.cc",
+ "data_reduction_proxy_headers.h",
+ "data_reduction_proxy_params.cc",
+ "data_reduction_proxy_params.h",
+ "data_reduction_proxy_pref_names.cc",
+ "data_reduction_proxy_pref_names.h",
+ "data_reduction_proxy_switches.cc",
+ "data_reduction_proxy_switches.h",
+ ]
- public_deps = [
- ":version_header",
- ]
+ public_deps = [
+ ":version_header",
+ ]
+ deps = [
+ "//base",
+ "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
+ "//components/variations",
+ ]
+
+ if (defined(invoker.deps)) {
+ deps += invoker.deps
+ }
+ }
+}
+
+if (is_android) {
+ common_tmpl("common_small") {
+ deps = [
+ "//net:net_small",
+ "//url:url_lib_use_icu_alternatives_on_android",
+ ]
+ }
+}
+
+common_tmpl("common") {
deps = [
- "//base",
- "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
- "//components/variations",
"//net",
"//url",
]
« no previous file with comments | « components/data_reduction_proxy/core/browser/BUILD.gn ('k') | components/pref_registry/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698