Index: components/cronet/cronet_static.gypi |
diff --git a/components/cronet/cronet_static.gypi b/components/cronet/cronet_static.gypi |
index c591fffbc086c1915409ca55f102c31aabe0ceee..0004e1b2e26df0f184e733135452f5e707d312ac 100644 |
--- a/components/cronet/cronet_static.gypi |
+++ b/components/cronet/cronet_static.gypi |
@@ -21,8 +21,6 @@ |
'android/chromium_url_request_context.h', |
'android/chromium_url_request_error_list.h', |
'android/chromium_url_request_priority_list.h', |
- 'android/cronet_data_reduction_proxy.cc', |
- 'android/cronet_data_reduction_proxy.h', |
'android/cronet_histogram_manager.cc', |
'android/cronet_histogram_manager.h', |
'android/cronet_library_loader.cc', |
@@ -65,4 +63,20 @@ |
'-Wl,--gc-sections', |
'-Wl,--exclude-libs,ALL' |
], |
+ 'conditions': [ |
+ # If Data Reduction Proxy support is enabled, add the following |
+ # defines and sources. Dependencies are target-specific and are |
+ # not included here. |
+ ['enable_data_reduction_proxy_support==1', |
+ { |
+ 'defines' : [ |
+ 'DATA_REDUCTION_PROXY_SUPPORT' |
+ ], |
+ 'sources': [ |
+ 'android/cronet_data_reduction_proxy.cc', |
+ 'android/cronet_data_reduction_proxy.h', |
+ ], |
+ } |
+ ], |
+ ], |
} |